Class FeedbackProperties
java.lang.Object
com.azure.resourcemanager.iothub.models.FeedbackProperties
The properties of the feedback queue for cloud-to-device messages.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the lockDurationAsIso8601 property: The lock duration for the feedback queue.Get the maxDeliveryCount property: The number of times the IoT hub attempts to deliver a message on the feedback queue.Get the ttlAsIso8601 property: The period of time for which a message is available to consume before it is expired by the IoT hub.void
validate()
Validates the instance.withLockDurationAsIso8601
(Duration lockDurationAsIso8601) Set the lockDurationAsIso8601 property: The lock duration for the feedback queue.withMaxDeliveryCount
(Integer maxDeliveryCount) Set the maxDeliveryCount property: The number of times the IoT hub attempts to deliver a message on the feedback queue.withTtlAsIso8601
(Duration ttlAsIso8601) Set the ttlAsIso8601 property: The period of time for which a message is available to consume before it is expired by the IoT hub.
-
Constructor Details
-
FeedbackProperties
public FeedbackProperties()
-
-
Method Details
-
lockDurationAsIso8601
Get the lockDurationAsIso8601 property: The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Returns:
- the lockDurationAsIso8601 value.
-
withLockDurationAsIso8601
Set the lockDurationAsIso8601 property: The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Parameters:
lockDurationAsIso8601
- the lockDurationAsIso8601 value to set.- Returns:
- the FeedbackProperties object itself.
-
ttlAsIso8601
Get the ttlAsIso8601 property: The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Returns:
- the ttlAsIso8601 value.
-
withTtlAsIso8601
Set the ttlAsIso8601 property: The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.- Parameters:
ttlAsIso8601
- the ttlAsIso8601 value to set.- Returns:
- the FeedbackProperties object itself.
-
maxDeliveryCount
Get the maxDeliveryCount property: The number of times the IoT hub attempts to deliver a message on the feedback 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 number of times the IoT hub attempts to deliver a message on the feedback 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 FeedbackProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-