Class User

    • Method Detail

      • userId

        public final String userId()

        The user ID.

        Returns:
        The user ID.
      • accountId

        public final String accountId()

        The Amazon Chime account ID.

        Returns:
        The Amazon Chime account ID.
      • primaryEmail

        public final String primaryEmail()

        The primary email address of the user.

        Returns:
        The primary email address of the user.
      • primaryProvisionedNumber

        public final String primaryProvisionedNumber()

        The primary phone number associated with the user.

        Returns:
        The primary phone number associated with the user.
      • displayName

        public final String displayName()

        The display name of the user.

        Returns:
        The display name of the user.
      • licenseType

        public final License licenseType()

        The license type for the user.

        If the service returns an enum value that is not available in the current SDK version, licenseType will return License.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from licenseTypeAsString().

        Returns:
        The license type for the user.
        See Also:
        License
      • licenseTypeAsString

        public final String licenseTypeAsString()

        The license type for the user.

        If the service returns an enum value that is not available in the current SDK version, licenseType will return License.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from licenseTypeAsString().

        Returns:
        The license type for the user.
        See Also:
        License
      • userTypeAsString

        public final String userTypeAsString()

        The user type.

        If the service returns an enum value that is not available in the current SDK version, userType will return UserType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from userTypeAsString().

        Returns:
        The user type.
        See Also:
        UserType
      • registeredOn

        public final Instant registeredOn()

        Date and time when the user is registered, in ISO 8601 format.

        Returns:
        Date and time when the user is registered, in ISO 8601 format.
      • invitedOn

        public final Instant invitedOn()

        Date and time when the user is invited to the Amazon Chime account, in ISO 8601 format.

        Returns:
        Date and time when the user is invited to the Amazon Chime account, in ISO 8601 format.
      • alexaForBusinessMetadata

        public final AlexaForBusinessMetadata alexaForBusinessMetadata()

        The Alexa for Business metadata.

        Returns:
        The Alexa for Business metadata.
      • personalPIN

        public final String personalPIN()

        The user's personal meeting PIN.

        Returns:
        The user's personal meeting PIN.
      • serializableBuilderClass

        public static Class<? extends User.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)