Class EventhubProperties

java.lang.Object
com.azure.resourcemanager.eventhubs.fluent.models.EventhubProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<EventhubProperties>

public final class EventhubProperties extends Object implements com.azure.json.JsonSerializable<EventhubProperties>
Properties supplied to the Create Or Update Event Hub operation.
  • Constructor Details

    • EventhubProperties

      public EventhubProperties()
      Creates an instance of EventhubProperties class.
  • Method Details

    • partitionIds

      public List<String> partitionIds()
      Get the partitionIds property: Current number of shards on the Event Hub.
      Returns:
      the partitionIds value.
    • createdAt

      public OffsetDateTime createdAt()
      Get the createdAt property: Exact time the Event Hub was created.
      Returns:
      the createdAt value.
    • updatedAt

      public OffsetDateTime updatedAt()
      Get the updatedAt property: The exact time the message was updated.
      Returns:
      the updatedAt value.
    • messageRetentionInDays

      public Long messageRetentionInDays()
      Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.
      Returns:
      the messageRetentionInDays value.
    • withMessageRetentionInDays

      public EventhubProperties withMessageRetentionInDays(Long messageRetentionInDays)
      Set the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.
      Parameters:
      messageRetentionInDays - the messageRetentionInDays value to set.
      Returns:
      the EventhubProperties object itself.
    • partitionCount

      public Long partitionCount()
      Get the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
      Returns:
      the partitionCount value.
    • withPartitionCount

      public EventhubProperties withPartitionCount(Long partitionCount)
      Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
      Parameters:
      partitionCount - the partitionCount value to set.
      Returns:
      the EventhubProperties object itself.
    • status

      public EntityStatus status()
      Get the status property: Enumerates the possible values for the status of the Event Hub.
      Returns:
      the status value.
    • withStatus

      public EventhubProperties withStatus(EntityStatus status)
      Set the status property: Enumerates the possible values for the status of the Event Hub.
      Parameters:
      status - the status value to set.
      Returns:
      the EventhubProperties object itself.
    • userMetadata

      public String userMetadata()
      Get the userMetadata property: Gets and Sets Metadata of User.
      Returns:
      the userMetadata value.
    • withUserMetadata

      public EventhubProperties withUserMetadata(String userMetadata)
      Set the userMetadata property: Gets and Sets Metadata of User.
      Parameters:
      userMetadata - the userMetadata value to set.
      Returns:
      the EventhubProperties object itself.
    • captureDescription

      public CaptureDescription captureDescription()
      Get the captureDescription property: Properties of capture description.
      Returns:
      the captureDescription value.
    • withCaptureDescription

      public EventhubProperties withCaptureDescription(CaptureDescription captureDescription)
      Set the captureDescription property: Properties of capture description.
      Parameters:
      captureDescription - the captureDescription value to set.
      Returns:
      the EventhubProperties object itself.
    • retentionDescription

      public RetentionDescription retentionDescription()
      Get the retentionDescription property: Event Hub retention settings.
      Returns:
      the retentionDescription value.
    • withRetentionDescription

      public EventhubProperties withRetentionDescription(RetentionDescription retentionDescription)
      Set the retentionDescription property: Event Hub retention settings.
      Parameters:
      retentionDescription - the retentionDescription value to set.
      Returns:
      the EventhubProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EventhubProperties>
      Throws:
      IOException
    • fromJson

      public static EventhubProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EventhubProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EventhubProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the EventhubProperties.