Class Identity
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.models.Identity
-
public class Identity extends Object
Properties to configure Identity for Bring your Own Keys.
-
-
Constructor Summary
Constructors Constructor Description Identity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
principalId()
Get the principalId property: ObjectId from the KeyVault.String
tenantId()
Get the tenantId property: TenantId from the KeyVault.ManagedServiceIdentityType
type()
Get the type property: Type of managed service identity.Map<String,Object>
userAssignedIdentities()
Get the userAssignedIdentities property: Metadata of user assigned identity.void
validate()
Validates the instance.Identity
withType(ManagedServiceIdentityType type)
Set the type property: Type of managed service identity.Identity
withUserAssignedIdentities(Map<String,Object> userAssignedIdentities)
Set the userAssignedIdentities property: Metadata of user assigned identity.
-
-
-
Method Detail
-
principalId
public String principalId()
Get the principalId property: ObjectId from the KeyVault.- Returns:
- the principalId value.
-
tenantId
public String tenantId()
Get the tenantId property: TenantId from the KeyVault.- Returns:
- the tenantId value.
-
type
public ManagedServiceIdentityType type()
Get the type property: Type of managed service identity.- Returns:
- the type value.
-
withType
public Identity withType(ManagedServiceIdentityType type)
Set the type property: Type of managed service identity.- Parameters:
type
- the type value to set.- Returns:
- the Identity object itself.
-
userAssignedIdentities
public Map<String,Object> userAssignedIdentities()
Get the userAssignedIdentities property: Metadata of user assigned identity.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public Identity withUserAssignedIdentities(Map<String,Object> userAssignedIdentities)
Set the userAssignedIdentities property: Metadata of user assigned identity.- Parameters:
userAssignedIdentities
- the userAssignedIdentities value to set.- Returns:
- the Identity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-