CloudToDeviceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. iothub. models. CloudToDeviceProperties
- com.
Implements
public final class CloudToDeviceProperties
implements JsonSerializable<CloudToDeviceProperties>
The IoT hub cloud-to-device messaging properties.
Constructor Summary
| Constructor | Description |
|---|---|
| CloudToDeviceProperties() |
Creates an instance of Cloud |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Duration |
defaultTtlAsIso8601()
Get the default |
|
Feedback |
feedback()
Get the feedback property: The properties of the feedback queue for cloud-to-device messages. |
|
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
| Integer |
maxDeliveryCount()
Get the max |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Cloud |
withDefaultTtlAsIso8601(Duration defaultTtlAsIso8601)
Set the default |
|
Cloud |
withFeedback(FeedbackProperties feedback)
Set the feedback property: The properties of the feedback queue for cloud-to-device messages. |
|
Cloud |
withMaxDeliveryCount(Integer maxDeliveryCount)
Set the max |
Methods inherited from java.lang.Object
Constructor Details
CloudToDeviceProperties
public CloudToDeviceProperties()
Creates an instance of CloudToDeviceProperties class.
Method Details
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:
feedback
public FeedbackProperties feedback()
Get the feedback property: The properties of the feedback queue for cloud-to-device messages.
Returns:
fromJson
public static CloudToDeviceProperties fromJson(JsonReader jsonReader)
Reads an instance of CloudToDeviceProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withFeedback
public CloudToDeviceProperties withFeedback(FeedbackProperties feedback)
Set the feedback property: The properties of the feedback queue for cloud-to-device messages.
Parameters:
Returns:
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:
Returns: