Interface User.Builder

All Superinterfaces:
Buildable, CopyableBuilder<User.Builder,User>, SdkBuilder<User.Builder,User>, SdkPojo
Enclosing class:
User

@Mutable @NotThreadSafe public static interface User.Builder extends SdkPojo, CopyableBuilder<User.Builder,User>
  • Method Details

    • id

      The identifier of the user.

      Parameters:
      id - The identifier of the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • email

      User.Builder email(String email)

      The email of the user.

      Parameters:
      email - The email of the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      User.Builder name(String name)

      The name of the user.

      Parameters:
      name - The name of the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • displayName

      User.Builder displayName(String displayName)

      The display name of the user.

      Parameters:
      displayName - The display name of the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      User.Builder state(String state)

      The state of the user, which can be ENABLED, DISABLED, or DELETED.

      Parameters:
      state - The state of the user, which can be ENABLED, DISABLED, or DELETED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      User.Builder state(EntityState state)

      The state of the user, which can be ENABLED, DISABLED, or DELETED.

      Parameters:
      state - The state of the user, which can be ENABLED, DISABLED, or DELETED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userRole

      User.Builder userRole(String userRole)

      The role of the user.

      Parameters:
      userRole - The role of the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userRole

      User.Builder userRole(UserRole userRole)

      The role of the user.

      Parameters:
      userRole - The role of the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • enabledDate

      User.Builder enabledDate(Instant enabledDate)

      The date indicating when the user was enabled for WorkMail use.

      Parameters:
      enabledDate - The date indicating when the user was enabled for WorkMail use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • disabledDate

      User.Builder disabledDate(Instant disabledDate)

      The date indicating when the user was disabled from WorkMail use.

      Parameters:
      disabledDate - The date indicating when the user was disabled from WorkMail use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identityProviderUserId

      User.Builder identityProviderUserId(String identityProviderUserId)

      User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.

      Parameters:
      identityProviderUserId - User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identityProviderIdentityStoreId

      User.Builder identityProviderIdentityStoreId(String identityProviderIdentityStoreId)

      Identity store ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.

      Parameters:
      identityProviderIdentityStoreId - Identity store ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.