Class ClusterProperties

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

public final class ClusterProperties extends Object implements com.azure.json.JsonSerializable<ClusterProperties>
Event Hubs Cluster properties supplied in responses in List or Get operations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ClusterProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the createdAt property: The UTC time when the Event Hubs Cluster was created.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ClusterProperties from the JsonReader.
    Get the metricId property: The metric ID of the cluster resource.
    Get the provisioningState property: Provisioning state of the Cluster.
    Get the status property: Status of the Cluster resource.
    Get the supportsScaling property: A value that indicates whether Scaling is Supported.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the updatedAt property: The UTC time when the Event Hubs Cluster was last updated.
    void
    Validates the instance.
    withSupportsScaling(Boolean supportsScaling)
    Set the supportsScaling property: A value that indicates whether Scaling is Supported.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ClusterProperties

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

    • createdAt

      public String createdAt()
      Get the createdAt property: The UTC time when the Event Hubs Cluster was created.
      Returns:
      the createdAt value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the Cluster.
      Returns:
      the provisioningState value.
    • updatedAt

      public String updatedAt()
      Get the updatedAt property: The UTC time when the Event Hubs Cluster was last updated.
      Returns:
      the updatedAt value.
    • metricId

      public String metricId()
      Get the metricId property: The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
      Returns:
      the metricId value.
    • status

      public String status()
      Get the status property: Status of the Cluster resource.
      Returns:
      the status value.
    • supportsScaling

      public Boolean supportsScaling()
      Get the supportsScaling property: A value that indicates whether Scaling is Supported.
      Returns:
      the supportsScaling value.
    • withSupportsScaling

      public ClusterProperties withSupportsScaling(Boolean supportsScaling)
      Set the supportsScaling property: A value that indicates whether Scaling is Supported.
      Parameters:
      supportsScaling - the supportsScaling value to set.
      Returns:
      the ClusterProperties 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<ClusterProperties>
      Throws:
      IOException
    • fromJson

      public static ClusterProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterProperties 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 ClusterProperties.