Class CloudToDeviceProperties
java.lang.Object
com.azure.resourcemanager.iothub.models.CloudToDeviceProperties
The IoT hub cloud-to-device messaging properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the defaultTtlAsIso8601 property: The default time to live for cloud-to-device messages in the device queue.feedback()
Get the feedback property: The properties of the feedback queue for cloud-to-device messages.Get the maxDeliveryCount property: The max delivery count for cloud-to-device messages in the device queue.void
validate()
Validates the instance.withDefaultTtlAsIso8601
(Duration defaultTtlAsIso8601) Set the defaultTtlAsIso8601 property: The default time to live for cloud-to-device messages in the device queue.withFeedback
(FeedbackProperties feedback) Set the feedback property: The properties of the feedback queue for cloud-to-device messages.withMaxDeliveryCount
(Integer maxDeliveryCount) Set the maxDeliveryCount property: The max delivery count for cloud-to-device messages in the device queue.
-
Constructor Details
-
CloudToDeviceProperties
public CloudToDeviceProperties()
-
-
Method Details
-
maxDeliveryCount
Get the maxDeliveryCount property: The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Returns:
- the maxDeliveryCount value.
-
withMaxDeliveryCount
Set the maxDeliveryCount property: The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Parameters:
maxDeliveryCount
- the maxDeliveryCount value to set.- Returns:
- the CloudToDeviceProperties object itself.
-
defaultTtlAsIso8601
Get the defaultTtlAsIso8601 property: The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Returns:
- the defaultTtlAsIso8601 value.
-
withDefaultTtlAsIso8601
Set the defaultTtlAsIso8601 property: The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Parameters:
defaultTtlAsIso8601
- the defaultTtlAsIso8601 value to set.- Returns:
- the CloudToDeviceProperties object itself.
-
feedback
Get the feedback property: The properties of the feedback queue for cloud-to-device messages.- Returns:
- the feedback value.
-
withFeedback
Set the feedback property: The properties of the feedback queue for cloud-to-device messages.- Parameters:
feedback
- the feedback value to set.- Returns:
- the CloudToDeviceProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-