次の方法で共有


PrivateCloudIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.avs.models.PrivateCloudIdentity

Implements

public final class PrivateCloudIdentity
implements JsonSerializable<PrivateCloudIdentity>

Managed service identity (either system assigned, or none).

Constructor Summary

Constructor Description
PrivateCloudIdentity()

Creates an instance of PrivateCloudIdentity class.

Method Summary

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

Reads an instance of PrivateCloudIdentity from the JsonReader.

String principalId()

Get the principalId property: The service principal ID of the system assigned identity.

String tenantId()

Get the tenantId property: The tenant ID of the system assigned identity.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceIdentityType type()

Get the type property: The type of managed identity assigned to this resource.

void validate()

Validates the instance.

PrivateCloudIdentity withType(ResourceIdentityType type)

Set the type property: The type of managed identity assigned to this resource.

Methods inherited from java.lang.Object

Constructor Details

PrivateCloudIdentity

public PrivateCloudIdentity()

Creates an instance of PrivateCloudIdentity class.

Method Details

fromJson

public static PrivateCloudIdentity fromJson(JsonReader jsonReader)

Reads an instance of PrivateCloudIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceIdentityType type()

Get the type property: The type of managed identity assigned to this resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public PrivateCloudIdentity withType(ResourceIdentityType type)

Set the type property: The type of managed identity assigned to this resource.

Parameters:

type - the type value to set.

Returns:

the PrivateCloudIdentity object itself.

Applies to