Class CloudToDeviceProperties
- java.lang.Object
-
- com.azure.resourcemanager.iothub.models.CloudToDeviceProperties
-
public final class CloudToDeviceProperties extends Object
The IoT hub cloud-to-device messaging properties.
-
-
Constructor Summary
Constructors Constructor Description CloudToDeviceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
defaultTtlAsIso8601()
Get the defaultTtlAsIso8601 property: The default time to live for cloud-to-device messages in the device queue.FeedbackProperties
feedback()
Get the feedback property: The properties of the feedback queue for cloud-to-device messages.Integer
maxDeliveryCount()
Get the maxDeliveryCount property: The max delivery count for cloud-to-device messages in the device queue.void
validate()
Validates the instance.CloudToDeviceProperties
withDefaultTtlAsIso8601(Duration defaultTtlAsIso8601)
Set the defaultTtlAsIso8601 property: The default time to live for cloud-to-device messages in the device queue.CloudToDeviceProperties
withFeedback(FeedbackProperties feedback)
Set the feedback property: The properties of the feedback queue for cloud-to-device messages.CloudToDeviceProperties
withMaxDeliveryCount(Integer maxDeliveryCount)
Set the maxDeliveryCount property: The max delivery count for cloud-to-device messages in the device queue.
-
-
-
Method Detail
-
maxDeliveryCount
public Integer 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
public CloudToDeviceProperties withMaxDeliveryCount(Integer maxDeliveryCount)
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
public Duration 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
public CloudToDeviceProperties withDefaultTtlAsIso8601(Duration defaultTtlAsIso8601)
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
public FeedbackProperties feedback()
Get the feedback property: The properties of the feedback queue for cloud-to-device messages.- Returns:
- the feedback value.
-
withFeedback
public CloudToDeviceProperties withFeedback(FeedbackProperties feedback)
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.
-
-