ManagedIdentityProperties Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. ManagedIdentityProperties
- com.
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 Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
principalId()
Get the principal |
String |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
Managed |
type()
Get the type property: Type of the managed identity. |
Map<String,User |
userAssignedIdentities()
Get the user |
void |
validate()
Validates the instance. |
Managed |
withPrincipalId(String principalId)
Set the principal |
Managed |
withTenantId(String tenantId)
Set the tenant |
Managed |
withType(ManagedIdentityType type)
Set the type property: Type of the managed identity. |
Managed |
withUserAssignedIdentities(Map<String,UserAssignedManagedIdentity> userAssignedIdentities)
Set the user |
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:
Returns:
Throws:
principalId
public String principalId()
Get the principalId property: Principal Id of system-assigned managed identity.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Tenant Id of system-assigned managed identity.
Returns:
toJson
type
public ManagedIdentityType type()
Get the type property: Type of the managed identity.
Returns:
userAssignedIdentities
public Map
Get the userAssignedIdentities property: Properties of user-assigned managed identities.
Returns:
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:
Returns:
withTenantId
public ManagedIdentityProperties withTenantId(String tenantId)
Set the tenantId property: Tenant Id of system-assigned managed identity.
Parameters:
Returns:
withType
public ManagedIdentityProperties withType(ManagedIdentityType type)
Set the type property: Type of the managed identity.
Parameters:
Returns:
withUserAssignedIdentities
public ManagedIdentityProperties withUserAssignedIdentities(Map
Set the userAssignedIdentities property: Properties of user-assigned managed identities.
Parameters:
Returns:
Applies to
Azure SDK for Java