ManagedIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.ManagedIdentity

Implements

public final class ManagedIdentity
implements JsonSerializable<ManagedIdentity>

The workspace managed identity.

Constructor Summary

Constructor Description
ManagedIdentity()

Creates an instance of ManagedIdentity class.

Method Summary

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

Reads an instance of ManagedIdentity from the JsonReader.

String principalId()

Get the principalId property: The principal ID of the workspace managed identity.

UUID tenantId()

Get the tenantId property: The tenant ID of the workspace managed identity.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceIdentityType type()

Get the type property: The type of managed identity for the workspace.

void validate()

Validates the instance.

ManagedIdentity withType(ResourceIdentityType type)

Set the type property: The type of managed identity for the workspace.

Methods inherited from java.lang.Object

Constructor Details

ManagedIdentity

public ManagedIdentity()

Creates an instance of ManagedIdentity class.

Method Details

fromJson

public static ManagedIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: The principal ID of the workspace managed identity.

Returns:

the principalId value.

tenantId

public UUID tenantId()

Get the tenantId property: The tenant ID of the workspace managed 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 for the workspace.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public ManagedIdentity withType(ResourceIdentityType type)

Set the type property: The type of managed identity for the workspace.

Parameters:

type - the type value to set.

Returns:

the ManagedIdentity object itself.

Applies to