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 -
Method Summary
Modifier and TypeMethodDescriptionGet the createdAt property: The UTC time when the Event Hubs Cluster was created.static ClusterPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterProperties from the JsonReader.metricId()Get the metricId property: The metric ID of the cluster resource.Get the provisioningState property: Provisioning state of the Cluster.status()Get the status property: Status of the Cluster resource.Get the supportsScaling property: A value that indicates whether Scaling is Supported.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the updatedAt property: The UTC time when the Event Hubs Cluster was last updated.voidvalidate()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, waitMethods 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
Get the createdAt property: The UTC time when the Event Hubs Cluster was created.- Returns:
- the createdAt value.
-
provisioningState
Get the provisioningState property: Provisioning state of the Cluster.- Returns:
- the provisioningState value.
-
updatedAt
Get the updatedAt property: The UTC time when the Event Hubs Cluster was last updated.- Returns:
- the updatedAt value.
-
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
Get the status property: Status of the Cluster resource.- Returns:
- the status value.
-
supportsScaling
Get the supportsScaling property: A value that indicates whether Scaling is Supported.- Returns:
- the supportsScaling value.
-
withSupportsScaling
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterProperties>- Throws:
IOException
-
fromJson
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.
-