Class FeedbackProperties

java.lang.Object
com.azure.resourcemanager.iothub.models.FeedbackProperties

public final class FeedbackProperties extends Object
The properties of the feedback queue for cloud-to-device messages.
  • Constructor Details

    • FeedbackProperties

      public FeedbackProperties()
  • Method Details

    • lockDurationAsIso8601

      public Duration 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

      public FeedbackProperties withLockDurationAsIso8601(Duration lockDurationAsIso8601)
      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

      public Duration 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

      public FeedbackProperties 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. 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

      public Integer 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

      public FeedbackProperties withMaxDeliveryCount(Integer maxDeliveryCount)
      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.