java.lang.Object
com.azure.resourcemanager.recoveryservices.models.CmkKekIdentity

public class CmkKekIdentity extends Object
The details of the identity used for CMK.
  • Constructor Details

    • CmkKekIdentity

      public CmkKekIdentity()
  • Method Details

    • useSystemAssignedIdentity

      public Boolean useSystemAssignedIdentity()
      Get the useSystemAssignedIdentity property: Indicate that system assigned identity should be used. Mutually exclusive with 'userAssignedIdentity' field.
      Returns:
      the useSystemAssignedIdentity value.
    • withUseSystemAssignedIdentity

      public CmkKekIdentity withUseSystemAssignedIdentity(Boolean useSystemAssignedIdentity)
      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

      public String 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

      public CmkKekIdentity 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.
      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.