Class UserIdentity

    • Method Detail

      • userType

        public final UserType userType()

        The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.

        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 role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
        See Also:
        UserType
      • userTypeAsString

        public final String userTypeAsString()

        The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.

        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 role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
        See Also:
        UserType
      • principalId

        public final String principalId()

        The ID of the Amazon CodeCatalyst service principal.

        Returns:
        The ID of the Amazon CodeCatalyst service principal.
      • userName

        public final String userName()

        The display name of the user in Amazon CodeCatalyst.

        Returns:
        The display name of the user in Amazon CodeCatalyst.
      • awsAccountId

        public final String awsAccountId()

        The Amazon Web Services account number of the user in Amazon Web Services, if any.

        Returns:
        The Amazon Web Services account number of the user in Amazon Web Services, if any.
      • 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)