Class ResourceIdentity
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.ResourceIdentity
Azure Active Directory identity configuration for a resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The Azure Active Directory principal id.tenantId()
Get the tenantId property: The Azure Active Directory tenant id.type()
Get the type property: The identity type.void
validate()
Validates the instance.withType
(IdentityType type) Set the type property: The identity type.
-
Constructor Details
-
ResourceIdentity
public ResourceIdentity()
-
-
Method Details
-
principalId
Get the principalId property: The Azure Active Directory principal id.- Returns:
- the principalId value.
-
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
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
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.
-