Partager via


CassandraClusterPublicStatusInner Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.CassandraClusterPublicStatusInner

Implements

public final class CassandraClusterPublicStatusInner
implements JsonSerializable<CassandraClusterPublicStatusInner>

Properties of a managed Cassandra cluster public status.

Constructor Summary

Constructor Description
CassandraClusterPublicStatusInner()

Creates an instance of CassandraClusterPublicStatusInner class.

Method Summary

Modifier and Type Method and Description
List<ConnectionError> connectionErrors()

Get the connectionErrors property: List relevant information about any connection errors to the Datacenters.

List<CassandraClusterPublicStatusDataCentersItem> dataCenters()

Get the dataCenters property: List of the status of each datacenter in this cluster.

List<CassandraError> errors()

Get the errors property: List relevant information about any errors about cluster, data center and connection error.

String etag()

Get the etag property: The eTag property.

static CassandraClusterPublicStatusInner fromJson(JsonReader jsonReader)

Reads an instance of CassandraClusterPublicStatusInner from the JsonReader.

ManagedCassandraReaperStatus reaperStatus()

Get the reaperStatus property: The reaperStatus property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CassandraClusterPublicStatusInner withConnectionErrors(List<ConnectionError> connectionErrors)

Set the connectionErrors property: List relevant information about any connection errors to the Datacenters.

CassandraClusterPublicStatusInner withDataCenters(List<CassandraClusterPublicStatusDataCentersItem> dataCenters)

Set the dataCenters property: List of the status of each datacenter in this cluster.

CassandraClusterPublicStatusInner withErrors(List<CassandraError> errors)

Set the errors property: List relevant information about any errors about cluster, data center and connection error.

CassandraClusterPublicStatusInner withEtag(String etag)

Set the etag property: The eTag property.

CassandraClusterPublicStatusInner withReaperStatus(ManagedCassandraReaperStatus reaperStatus)

Set the reaperStatus property: The reaperStatus property.

Methods inherited from java.lang.Object

Constructor Details

CassandraClusterPublicStatusInner

public CassandraClusterPublicStatusInner()

Creates an instance of CassandraClusterPublicStatusInner class.

Method Details

connectionErrors

public List connectionErrors()

Get the connectionErrors property: List relevant information about any connection errors to the Datacenters.

Returns:

the connectionErrors value.

dataCenters

public List dataCenters()

Get the dataCenters property: List of the status of each datacenter in this cluster.

Returns:

the dataCenters value.

errors

public List errors()

Get the errors property: List relevant information about any errors about cluster, data center and connection error.

Returns:

the errors value.

etag

public String etag()

Get the etag property: The eTag property.

Returns:

the etag value.

fromJson

public static CassandraClusterPublicStatusInner fromJson(JsonReader jsonReader)

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.

reaperStatus

public ManagedCassandraReaperStatus reaperStatus()

Get the reaperStatus property: The reaperStatus property.

Returns:

the reaperStatus value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConnectionErrors

public CassandraClusterPublicStatusInner withConnectionErrors(List 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.

withDataCenters

public CassandraClusterPublicStatusInner withDataCenters(List 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.

withErrors

public CassandraClusterPublicStatusInner withErrors(List errors)

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.

withEtag

public CassandraClusterPublicStatusInner withEtag(String etag)

Set the etag property: The eTag property.

Parameters:

etag - the etag value to set.

Returns:

the CassandraClusterPublicStatusInner object itself.

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.

Applies to