Class EventHubProperties


  • public final class EventHubProperties
    extends Object
    The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.
    • Constructor Detail

      • EventHubProperties

        public EventHubProperties()
    • Method Detail

      • 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:
        the retentionTimeInDays value.
      • 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:
        retentionTimeInDays - the retentionTimeInDays value to set.
        Returns:
        the EventHubProperties object itself.
      • 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:
        the partitionCount value.
      • 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:
        partitionCount - the partitionCount value to set.
        Returns:
        the EventHubProperties object itself.
      • partitionIds

        public List<String> partitionIds()
        Get the partitionIds property: The partition ids in the Event Hub-compatible endpoint.
        Returns:
        the partitionIds value.
      • path

        public String path()
        Get the path property: The Event Hub-compatible name.
        Returns:
        the path value.
      • endpoint

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