EventHubProperties Class
- java.
lang. Object - com.
azure. resourcemanager. iothub. models. EventHubProperties
- com.
public final class EventHubProperties
The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.
Constructor Summary
Constructor | Description |
---|---|
EventHubProperties() |
Creates an instance of Event |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
endpoint()
Get the endpoint property: The Event Hub-compatible endpoint. |
Integer |
partitionCount()
Get the partition |
List<String> |
partitionIds()
Get the partition |
String |
path()
Get the path property: The Event Hub-compatible name. |
Long |
retentionTimeInDays()
Get the retention |
void |
validate()
Validates the instance. |
Event |
withPartitionCount(Integer partitionCount)
Set the partition |
Event |
withRetentionTimeInDays(Long retentionTimeInDays)
Set the retention |
Methods inherited from java.lang.Object
Constructor Details
EventHubProperties
public EventHubProperties()
Creates an instance of EventHubProperties class.
Method Details
endpoint
public String endpoint()
Get the endpoint property: The Event Hub-compatible endpoint.
Returns:
partitionCount
public Integer 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:
partitionIds
public List
Get the partitionIds property: The partition ids in the Event Hub-compatible endpoint.
Returns:
path
public String path()
Get the path property: The Event Hub-compatible name.
Returns:
retentionTimeInDays
public Long 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:
validate
public void validate()
Validates the instance.
withPartitionCount
public EventHubProperties withPartitionCount(Integer partitionCount)
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:
Returns:
withRetentionTimeInDays
public EventHubProperties withRetentionTimeInDays(Long retentionTimeInDays)
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for