Class ResourceIdentity
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.ResourceIdentity
-
public class ResourceIdentity extends Object
Azure Active Directory identity configuration for a resource.
-
-
Constructor Summary
Constructors Constructor Description ResourceIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDprincipalId()Get the principalId property: The Azure Active Directory principal id.UUIDtenantId()Get the tenantId property: The Azure Active Directory tenant id.IdentityTypetype()Get the type property: The identity type.voidvalidate()Validates the instance.ResourceIdentitywithType(IdentityType type)Set the type property: The identity type.
-
-
-
Method Detail
-
principalId
public UUID principalId()
Get the principalId property: The Azure Active Directory principal id.- Returns:
- the principalId value.
-
type
public IdentityType type()
Get the type property: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource.- Returns:
- the type value.
-
withType
public ResourceIdentity withType(IdentityType type)
Set the type property: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource.- Parameters:
type- the type value to set.- Returns:
- the ResourceIdentity object itself.
-
tenantId
public UUID tenantId()
Get the tenantId property: The Azure Active Directory tenant id.- Returns:
- the tenantId value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-