Class Principal

    • Method Detail

      • id

        public final String id()

        The ID of the principal that can be associated with a resource share.

        Returns:
        The ID of the principal that can be associated with a resource share.
      • creationTime

        public final Instant creationTime()

        The date and time when the principal was associated with the resource share.

        Returns:
        The date and time when the principal was associated with the resource share.
      • lastUpdatedTime

        public final Instant lastUpdatedTime()

        The date and time when the association between the resource share and the principal was last updated.

        Returns:
        The date and time when the association between the resource share and the principal was last updated.
      • external

        public final Boolean external()

        Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:

        • True – The two accounts belong to same organization.

        • False – The two accounts do not belong to the same organization.

        Returns:
        Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:

        • True – The two accounts belong to same organization.

        • False – The two accounts do not belong to the same organization.

      • 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)