Class Invitation
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.Invitation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Invitation.Builder,Invitation>
@Generated("software.amazon.awssdk:codegen") public final class Invitation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Invitation.Builder,Invitation>
Provides information about an Amazon Macie membership invitation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInvitation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The Amazon Web Services account ID for the account that sent the invitation.static Invitation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinvitationId()The unique identifier for the invitation.InstantinvitedAt()The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.RelationshipStatusrelationshipStatus()The status of the relationship between the account that sent the invitation and the account that received the invitation.StringrelationshipStatusAsString()The status of the relationship between the account that sent the invitation and the account that received the invitation.List<SdkField<?>>sdkFields()static Class<? extends Invitation.Builder>serializableBuilderClass()Invitation.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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,
relationshipStatuswill returnRelationshipStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelationshipStatusAsString().- 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,
relationshipStatuswill returnRelationshipStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelationshipStatusAsString().- Returns:
- The status of the relationship between the account that sent the invitation and the account that received the invitation.
- See Also:
RelationshipStatus
-
toBuilder
public Invitation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Invitation.Builder,Invitation>
-
builder
public static Invitation.Builder builder()
-
serializableBuilderClass
public static Class<? extends Invitation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-