다음을 통해 공유


ManagedIdentityProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.ManagedIdentityProperties

Implements

public final class ManagedIdentityProperties
implements JsonSerializable<ManagedIdentityProperties>

Managed identity properties retrieved from ARM request headers.

Constructor Summary

Constructor Description
ManagedIdentityProperties()

Creates an instance of ManagedIdentityProperties class.

Method Summary

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

Reads an instance of ManagedIdentityProperties from the JsonReader.

String principalId()

Get the principalId property: Principal Id of system-assigned managed identity.

String tenantId()

Get the tenantId property: Tenant Id of system-assigned managed identity.

JsonWriter toJson(JsonWriter jsonWriter)
ManagedIdentityType type()

Get the type property: Type of the managed identity.

Map<String,UserAssignedManagedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: Properties of user-assigned managed identities.

void validate()

Validates the instance.

ManagedIdentityProperties withPrincipalId(String principalId)

Set the principalId property: Principal Id of system-assigned managed identity.

ManagedIdentityProperties withTenantId(String tenantId)

Set the tenantId property: Tenant Id of system-assigned managed identity.

ManagedIdentityProperties withType(ManagedIdentityType type)

Set the type property: Type of the managed identity.

ManagedIdentityProperties withUserAssignedIdentities(Map<String,UserAssignedManagedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: Properties of user-assigned managed identities.

Methods inherited from java.lang.Object

Constructor Details

ManagedIdentityProperties

public ManagedIdentityProperties()

Creates an instance of ManagedIdentityProperties class.

Method Details

fromJson

public static ManagedIdentityProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedIdentityProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: Principal Id of system-assigned managed identity.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: Tenant Id of system-assigned managed identity.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ManagedIdentityType type()

Get the type property: Type of the managed identity.

Returns:

the type value.

userAssignedIdentities

public Map userAssignedIdentities()

Get the userAssignedIdentities property: Properties of user-assigned managed identities.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

withPrincipalId

public ManagedIdentityProperties withPrincipalId(String principalId)

Set the principalId property: Principal Id of system-assigned managed identity.

Parameters:

principalId - the principalId value to set.

Returns:

the ManagedIdentityProperties object itself.

withTenantId

public ManagedIdentityProperties withTenantId(String tenantId)

Set the tenantId property: Tenant Id of system-assigned managed identity.

Parameters:

tenantId - the tenantId value to set.

Returns:

the ManagedIdentityProperties object itself.

withType

public ManagedIdentityProperties withType(ManagedIdentityType type)

Set the type property: Type of the managed identity.

Parameters:

type - the type value to set.

Returns:

the ManagedIdentityProperties object itself.

withUserAssignedIdentities

public ManagedIdentityProperties withUserAssignedIdentities(Map userAssignedIdentities)

Set the userAssignedIdentities property: Properties of user-assigned managed identities.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the ManagedIdentityProperties object itself.

Applies to