Class EventHubProperties
java.lang.Object
com.azure.resourcemanager.iothub.models.EventHubProperties
The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendpoint()
Get the endpoint property: The Event Hub-compatible endpoint.Get the partitionCount property: The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint.Get the partitionIds property: The partition ids in the Event Hub-compatible endpoint.path()
Get the path property: The Event Hub-compatible name.Get the retentionTimeInDays property: The retention time for device-to-cloud messages in days.void
validate()
Validates the instance.withPartitionCount
(Integer partitionCount) Set the partitionCount property: The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint.withRetentionTimeInDays
(Long retentionTimeInDays) Set the retentionTimeInDays property: The retention time for device-to-cloud messages in days.
-
Constructor Details
-
EventHubProperties
public EventHubProperties()
-
-
Method Details
-
retentionTimeInDays
Get the retentionTimeInDays property: The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.- Returns:
- the retentionTimeInDays value.
-
withRetentionTimeInDays
Set the retentionTimeInDays property: The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.- Parameters:
retentionTimeInDays
- the retentionTimeInDays value to set.- Returns:
- the EventHubProperties object itself.
-
partitionCount
Get the partitionCount property: The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.- Returns:
- the partitionCount value.
-
withPartitionCount
Set the partitionCount property: The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.- Parameters:
partitionCount
- the partitionCount value to set.- Returns:
- the EventHubProperties object itself.
-
partitionIds
Get the partitionIds property: The partition ids in the Event Hub-compatible endpoint.- Returns:
- the partitionIds value.
-
path
Get the path property: The Event Hub-compatible name.- Returns:
- the path value.
-
endpoint
Get the endpoint property: The Event Hub-compatible endpoint.- Returns:
- the endpoint value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-