次の方法で共有


QuantumWorkspaceIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.quantum.models.QuantumWorkspaceIdentity

Implements

public final class QuantumWorkspaceIdentity
implements JsonSerializable<QuantumWorkspaceIdentity>

Managed Identity information.

Constructor Summary

Constructor Description
QuantumWorkspaceIdentity()

Creates an instance of QuantumWorkspaceIdentity class.

Method Summary

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

Reads an instance of QuantumWorkspaceIdentity from the JsonReader.

String principalId()

Get the principalId property: The principal ID of resource identity.

String tenantId()

Get the tenantId property: The tenant ID of resource.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceIdentityType type()

Get the type property: The identity type.

void validate()

Validates the instance.

QuantumWorkspaceIdentity withType(ResourceIdentityType type)

Set the type property: The identity type.

Methods inherited from java.lang.Object

Constructor Details

QuantumWorkspaceIdentity

public QuantumWorkspaceIdentity()

Creates an instance of QuantumWorkspaceIdentity class.

Method Details

fromJson

public static QuantumWorkspaceIdentity fromJson(JsonReader jsonReader)

Reads an instance of QuantumWorkspaceIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: The principal ID of resource identity.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant ID of resource.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceIdentityType type()

Get the type property: The identity type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public QuantumWorkspaceIdentity withType(ResourceIdentityType type)

Set the type property: The identity type.

Parameters:

type - the type value to set.

Returns:

the QuantumWorkspaceIdentity object itself.

Applies to