DataCenterResourceInner Class

public final class DataCenterResourceInner
extends ArmProxyResource

A managed Cassandra data center.

Constructor Summary

Constructor Description
DataCenterResourceInner()

Creates an instance of DataCenterResourceInner class.

Method Summary

Modifier and Type Method and Description
static DataCenterResourceInner fromJson(JsonReader jsonReader)

Reads an instance of DataCenterResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

DataCenterResourceProperties properties()

Get the properties property: Properties of a managed Cassandra data center.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DataCenterResourceInner withProperties(DataCenterResourceProperties properties)

Set the properties property: Properties of a managed Cassandra data center.

Methods inherited from ArmProxyResource

Methods inherited from java.lang.Object

Constructor Details

DataCenterResourceInner

public DataCenterResourceInner()

Creates an instance of DataCenterResourceInner class.

Method Details

fromJson

public static DataCenterResourceInner fromJson(JsonReader jsonReader)

Reads an instance of DataCenterResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataCenterResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DataCenterResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DataCenterResourceInner.name()

Returns:

the name value.

properties

public DataCenterResourceProperties properties()

Get the properties property: Properties of a managed Cassandra data center.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataCenterResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DataCenterResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

DataCenterResourceInner.validate()

withProperties

public DataCenterResourceInner withProperties(DataCenterResourceProperties properties)

Set the properties property: Properties of a managed Cassandra data center.

Parameters:

properties - the properties value to set.

Returns:

the DataCenterResourceInner object itself.

Applies to