java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.UserIdentity

public class UserIdentity extends Object
Describes a single user-assigned identity associated with the application.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of UserIdentity class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the clientId property: the client identifier of the Service Principal which this identity represents.
    Get the principalId property: the object identifier of the Service Principal which this identity represents.
    void
    Validates the instance.
    withClientId(String clientId)
    Set the clientId property: the client identifier of the Service Principal which this identity represents.
    withPrincipalId(String principalId)
    Set the principalId property: the object identifier of the Service Principal which this identity represents.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UserIdentity

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

    • principalId

      public String principalId()
      Get the principalId property: the object identifier of the Service Principal which this identity represents.
      Returns:
      the principalId value.
    • withPrincipalId

      public UserIdentity withPrincipalId(String principalId)
      Set the principalId property: the object identifier of the Service Principal which this identity represents.
      Parameters:
      principalId - the principalId value to set.
      Returns:
      the UserIdentity object itself.
    • clientId

      public String clientId()
      Get the clientId property: the client identifier of the Service Principal which this identity represents.
      Returns:
      the clientId value.
    • withClientId

      public UserIdentity withClientId(String clientId)
      Set the clientId property: the client identifier of the Service Principal which this identity represents.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the UserIdentity object itself.
    • validate

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