Class Invitation

    • Method Detail

      • accountId

        public final String accountId()

        The Amazon Web Services account ID for the account that sent the invitation.

        Returns:
        The Amazon Web Services account ID for the account that sent the invitation.
      • invitationId

        public final String invitationId()

        The unique identifier for the invitation.

        Returns:
        The unique identifier for the invitation.
      • invitedAt

        public final Instant invitedAt()

        The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.

        Returns:
        The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.
      • relationshipStatus

        public final RelationshipStatus relationshipStatus()

        The status of the relationship between the account that sent the invitation and the account that received the invitation.

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

        Returns:
        The status of the relationship between the account that sent the invitation and the account that received the invitation.
        See Also:
        RelationshipStatus
      • relationshipStatusAsString

        public final String relationshipStatusAsString()

        The status of the relationship between the account that sent the invitation and the account that received the invitation.

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

        Returns:
        The status of the relationship between the account that sent the invitation and the account that received the invitation.
        See Also:
        RelationshipStatus
      • 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)