ManagedCassandraManagedServiceIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.ManagedCassandraManagedServiceIdentity

Implements

public final class ManagedCassandraManagedServiceIdentity
implements JsonSerializable<ManagedCassandraManagedServiceIdentity>

Identity for the resource.

Constructor Summary

Constructor Description
ManagedCassandraManagedServiceIdentity()

Creates an instance of ManagedCassandraManagedServiceIdentity class.

Method Summary

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

Reads an instance of ManagedCassandraManagedServiceIdentity from the JsonReader.

String principalId()

Get the principalId property: The object id of the identity resource.

String tenantId()

Get the tenantId property: The tenant id of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
ManagedCassandraResourceIdentityType type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ManagedCassandraManagedServiceIdentity withType(ManagedCassandraResourceIdentityType type)

Set the type property: The type of the resource.

Methods inherited from java.lang.Object

Constructor Details

ManagedCassandraManagedServiceIdentity

public ManagedCassandraManagedServiceIdentity()

Creates an instance of ManagedCassandraManagedServiceIdentity class.

Method Details

fromJson

public static ManagedCassandraManagedServiceIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedCassandraManagedServiceIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedCassandraManagedServiceIdentity 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 ManagedCassandraManagedServiceIdentity.

principalId

public String principalId()

Get the principalId property: The object id of the identity resource.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant id of the resource.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ManagedCassandraResourceIdentityType type()

Get the type property: The type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public ManagedCassandraManagedServiceIdentity withType(ManagedCassandraResourceIdentityType type)

Set the type property: The type of the resource.

Parameters:

type - the type value to set.

Returns:

the ManagedCassandraManagedServiceIdentity object itself.

Applies to