Class CmkKekIdentity
java.lang.Object
com.azure.resourcemanager.recoveryservices.models.CmkKekIdentity
The details of the identity used for CMK.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the userAssignedIdentity property: The user assigned identity to be used to grant permissions in case the type of identity used is UserAssigned.Get the useSystemAssignedIdentity property: Indicate that system assigned identity should be used.void
validate()
Validates the instance.withUserAssignedIdentity
(String userAssignedIdentity) Set the userAssignedIdentity property: The user assigned identity to be used to grant permissions in case the type of identity used is UserAssigned.withUseSystemAssignedIdentity
(Boolean useSystemAssignedIdentity) Set the useSystemAssignedIdentity property: Indicate that system assigned identity should be used.
-
Constructor Details
-
CmkKekIdentity
public CmkKekIdentity()
-
-
Method Details
-
useSystemAssignedIdentity
Get the useSystemAssignedIdentity property: Indicate that system assigned identity should be used. Mutually exclusive with 'userAssignedIdentity' field.- Returns:
- the useSystemAssignedIdentity value.
-
withUseSystemAssignedIdentity
Set the useSystemAssignedIdentity property: Indicate that system assigned identity should be used. Mutually exclusive with 'userAssignedIdentity' field.- Parameters:
useSystemAssignedIdentity
- the useSystemAssignedIdentity value to set.- Returns:
- the CmkKekIdentity object itself.
-
userAssignedIdentity
Get the userAssignedIdentity property: The user assigned identity to be used to grant permissions in case the type of identity used is UserAssigned.- Returns:
- the userAssignedIdentity value.
-
withUserAssignedIdentity
Set the userAssignedIdentity property: The user assigned identity to be used to grant permissions in case the type of identity used is UserAssigned.- Parameters:
userAssignedIdentity
- the userAssignedIdentity value to set.- Returns:
- the CmkKekIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-