java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo

public final class IdentityInfo extends Object
Encapsulates Managed Identity related information.
  • Constructor Details

    • IdentityInfo

      public IdentityInfo()
      Creates an instance of IdentityInfo class.
  • Method Details

    • isSystemAssignedIdentity

      public Boolean isSystemAssignedIdentity()
      Get the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.
      Returns:
      the isSystemAssignedIdentity value.
    • withIsSystemAssignedIdentity

      public IdentityInfo withIsSystemAssignedIdentity(Boolean isSystemAssignedIdentity)
      Set the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.
      Parameters:
      isSystemAssignedIdentity - the isSystemAssignedIdentity value to set.
      Returns:
      the IdentityInfo object itself.
    • managedIdentityResourceId

      public String managedIdentityResourceId()
      Get the managedIdentityResourceId property: Managed Identity Resource Id Optional: Might not be required in the case of system assigned managed identity.
      Returns:
      the managedIdentityResourceId value.
    • withManagedIdentityResourceId

      public IdentityInfo withManagedIdentityResourceId(String managedIdentityResourceId)
      Set the managedIdentityResourceId property: Managed Identity Resource Id Optional: Might not be required in the case of system assigned managed identity.
      Parameters:
      managedIdentityResourceId - the managedIdentityResourceId value to set.
      Returns:
      the IdentityInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.