ClusterResourceInner Class

public final class ClusterResourceInner
extends ManagedCassandraArmResourceProperties

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.

String name()

Get the name property: The name of the resource.

ClusterResourceProperties properties()

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

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)
ClusterResourceInner withProperties(ClusterResourceProperties properties)

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

ClusterResourceInner withTags(Map<String,String> tags)

Methods inherited from Resource

Methods inherited from ManagedCassandraArmResourceProperties

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.

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.

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.

Overrides:

ClusterResourceInner.validate()

withIdentity

public ClusterResourceInner withIdentity(ManagedCassandraManagedServiceIdentity identity)

Set the identity property: Identity for the resource.

Overrides:

ClusterResourceInner.withIdentity(ManagedCassandraManagedServiceIdentity identity)

Parameters:

identity

withLocation

public ClusterResourceInner withLocation(String location)

Overrides:

ClusterResourceInner.withLocation(String location)

Parameters:

location

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 tags)

Overrides:

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

Parameters:

tags

Applies to