Class CassandraClusterPublicStatusInner
java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.CassandraClusterPublicStatusInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CassandraClusterPublicStatusInner>
public final class CassandraClusterPublicStatusInner
extends Object
implements com.azure.json.JsonSerializable<CassandraClusterPublicStatusInner>
Properties of a managed Cassandra cluster public status.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CassandraClusterPublicStatusInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionErrors property: List relevant information about any connection errors to the Datacenters.Get the dataCenters property: List of the status of each datacenter in this cluster.errors()
Get the errors property: List relevant information about any errors about cluster, data center and connection error.etag()
Get the etag property: The eTag property.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CassandraClusterPublicStatusInner from the JsonReader.Get the reaperStatus property: The reaperStatus property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConnectionErrors
(List<ConnectionError> connectionErrors) Set the connectionErrors property: List relevant information about any connection errors to the Datacenters.withDataCenters
(List<CassandraClusterPublicStatusDataCentersItem> dataCenters) Set the dataCenters property: List of the status of each datacenter in this cluster.withErrors
(List<CassandraError> errors) Set the errors property: List relevant information about any errors about cluster, data center and connection error.Set the etag property: The eTag property.withReaperStatus
(ManagedCassandraReaperStatus reaperStatus) Set the reaperStatus property: The reaperStatus property.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
-
CassandraClusterPublicStatusInner
public CassandraClusterPublicStatusInner()Creates an instance of CassandraClusterPublicStatusInner class.
-
-
Method Details
-
etag
Get the etag property: The eTag property.- Returns:
- the etag value.
-
withEtag
Set the etag property: The eTag property.- Parameters:
etag
- the etag value to set.- Returns:
- the CassandraClusterPublicStatusInner object itself.
-
reaperStatus
Get the reaperStatus property: The reaperStatus property.- Returns:
- the reaperStatus value.
-
withReaperStatus
public CassandraClusterPublicStatusInner withReaperStatus(ManagedCassandraReaperStatus reaperStatus) Set the reaperStatus property: The reaperStatus property.- Parameters:
reaperStatus
- the reaperStatus value to set.- Returns:
- the CassandraClusterPublicStatusInner object itself.
-
connectionErrors
Get the connectionErrors property: List relevant information about any connection errors to the Datacenters.- Returns:
- the connectionErrors value.
-
withConnectionErrors
public CassandraClusterPublicStatusInner withConnectionErrors(List<ConnectionError> connectionErrors) Set the connectionErrors property: List relevant information about any connection errors to the Datacenters.- Parameters:
connectionErrors
- the connectionErrors value to set.- Returns:
- the CassandraClusterPublicStatusInner object itself.
-
errors
Get the errors property: List relevant information about any errors about cluster, data center and connection error.- Returns:
- the errors value.
-
withErrors
Set the errors property: List relevant information about any errors about cluster, data center and connection error.- Parameters:
errors
- the errors value to set.- Returns:
- the CassandraClusterPublicStatusInner object itself.
-
dataCenters
Get the dataCenters property: List of the status of each datacenter in this cluster.- Returns:
- the dataCenters value.
-
withDataCenters
public CassandraClusterPublicStatusInner withDataCenters(List<CassandraClusterPublicStatusDataCentersItem> dataCenters) Set the dataCenters property: List of the status of each datacenter in this cluster.- Parameters:
dataCenters
- the dataCenters value to set.- Returns:
- the CassandraClusterPublicStatusInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CassandraClusterPublicStatusInner>
- Throws:
IOException
-
fromJson
public static CassandraClusterPublicStatusInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CassandraClusterPublicStatusInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CassandraClusterPublicStatusInner 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 CassandraClusterPublicStatusInner.
-