Class UserIdentity

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

public class UserIdentity extends Object
Identity attributes of a lab user.
  • Constructor Details

    • UserIdentity

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

    • principalName

      public String principalName()
      Get the principalName property: Set to the principal name / UPN of the client JWT making the request.
      Returns:
      the principalName value.
    • withPrincipalName

      public UserIdentity withPrincipalName(String principalName)
      Set the principalName property: Set to the principal name / UPN of the client JWT making the request.
      Parameters:
      principalName - the principalName value to set.
      Returns:
      the UserIdentity object itself.
    • principalId

      public String principalId()
      Get the principalId property: Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
      Returns:
      the principalId value.
    • withPrincipalId

      public UserIdentity withPrincipalId(String principalId)
      Set the principalId property: Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
      Parameters:
      principalId - the principalId value to set.
      Returns:
      the UserIdentity object itself.
    • tenantId

      public String tenantId()
      Get the tenantId property: Set to the tenant ID of the client JWT making the request.
      Returns:
      the tenantId value.
    • withTenantId

      public UserIdentity withTenantId(String tenantId)
      Set the tenantId property: Set to the tenant ID of the client JWT making the request.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the UserIdentity object itself.
    • objectId

      public String objectId()
      Get the objectId property: Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
      Returns:
      the objectId value.
    • withObjectId

      public UserIdentity withObjectId(String objectId)
      Set the objectId property: Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
      Parameters:
      objectId - the objectId value to set.
      Returns:
      the UserIdentity object itself.
    • appId

      public String appId()
      Get the appId property: Set to the app Id of the client JWT making the request.
      Returns:
      the appId value.
    • withAppId

      public UserIdentity withAppId(String appId)
      Set the appId property: Set to the app Id of the client JWT making the request.
      Parameters:
      appId - the appId value to set.
      Returns:
      the UserIdentity object itself.
    • validate

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