Class MessagingEndpointProperties
java.lang.Object
com.azure.resourcemanager.iothub.models.MessagingEndpointProperties
The properties of the messaging endpoints used by this IoT hub.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the lockDurationAsIso8601 property: The lock duration.Get the maxDeliveryCount property: The number of times the IoT hub attempts to deliver a message.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.withMaxDeliveryCount
(Integer maxDeliveryCount) Set the maxDeliveryCount property: The number of times the IoT hub attempts to deliver a message.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
-
MessagingEndpointProperties
public MessagingEndpointProperties()
-
-
Method Details
-
lockDurationAsIso8601
Get the lockDurationAsIso8601 property: The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.- Returns:
- the lockDurationAsIso8601 value.
-
withLockDurationAsIso8601
Set the lockDurationAsIso8601 property: The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.- Parameters:
lockDurationAsIso8601
- the lockDurationAsIso8601 value to set.- Returns:
- the MessagingEndpointProperties 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-file-upload.- 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-file-upload.- Parameters:
ttlAsIso8601
- the ttlAsIso8601 value to set.- Returns:
- the MessagingEndpointProperties object itself.
-
maxDeliveryCount
Get the maxDeliveryCount property: The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.- Returns:
- the maxDeliveryCount value.
-
withMaxDeliveryCount
Set the maxDeliveryCount property: The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.- Parameters:
maxDeliveryCount
- the maxDeliveryCount value to set.- Returns:
- the MessagingEndpointProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-