Class IdentityInfo


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

      • IdentityInfo

        public IdentityInfo()
    • Method Detail

      • 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.