ClusterResourceInner Class

public final class ClusterResourceInner
extends ProxyResource

Representation of a managed Cassandra cluster.

Constructor Summary

Constructor Description
ClusterResourceInner()

Creates an instance of ClusterResourceInner class.

Method Summary

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

Reads an instance of ClusterResourceInner from the JsonReader.

String id()

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

ManagedCassandraManagedServiceIdentity identity()

Get the identity property: Identity for the resource.

String location()

Get the location property: The location of the resource group to which the resource belongs.

String name()

Get the name property: The name of the resource.

ClusterResourceProperties properties()

Get the properties property: Properties of a managed Cassandra cluster.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Tags are a list of key-value pairs that describe the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ClusterResourceInner withIdentity(ManagedCassandraManagedServiceIdentity identity)

Set the identity property: Identity for the resource.

ClusterResourceInner withLocation(String location)

Set the location property: The location of the resource group to which the resource belongs.

ClusterResourceInner withProperties(ClusterResourceProperties properties)

Set the properties property: Properties of a managed Cassandra cluster.

ClusterResourceInner withTags(Map<String,String> tags)

Set the tags property: Tags are a list of key-value pairs that describe the resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ClusterResourceInner

public ClusterResourceInner()

Creates an instance of ClusterResourceInner class.

Method Details

fromJson

public static ClusterResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ClusterResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClusterResourceInner 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:

ClusterResourceInner.id()

Returns:

the id value.

identity

public ManagedCassandraManagedServiceIdentity identity()

Get the identity property: Identity for the resource.

Returns:

the identity value.

location

public String location()

Get the location property: The location of the resource group to which the resource belongs.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ClusterResourceInner.name()

Returns:

the name value.

properties

public ClusterResourceProperties properties()

Get the properties property: Properties of a managed Cassandra cluster.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\".

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ClusterResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ClusterResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIdentity

public ClusterResourceInner withIdentity(ManagedCassandraManagedServiceIdentity identity)

Set the identity property: Identity for the resource.

Parameters:

identity - the identity value to set.

Returns:

the ClusterResourceInner object itself.

withLocation

public ClusterResourceInner withLocation(String location)

Set the location property: The location of the resource group to which the resource belongs.

Parameters:

location - the location value to set.

Returns:

the ClusterResourceInner object itself.

withProperties

public ClusterResourceInner withProperties(ClusterResourceProperties properties)

Set the properties property: Properties of a managed Cassandra cluster.

Parameters:

properties - the properties value to set.

Returns:

the ClusterResourceInner object itself.

withTags

public ClusterResourceInner withTags(Map<String,String> tags)

Set the tags property: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\".

Parameters:

tags - the tags value to set.

Returns:

the ClusterResourceInner object itself.

Applies to