Class ResourceShareInvitation
- java.lang.Object
-
- software.amazon.awssdk.services.ram.model.ResourceShareInvitation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceShareInvitation.Builder,ResourceShareInvitation>
@Generated("software.amazon.awssdk:codegen") public final class ResourceShareInvitation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceShareInvitation.Builder,ResourceShareInvitation>
Describes an invitation for an Amazon Web Services account to join a resource share.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceShareInvitation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ResourceShareInvitation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasResourceShareAssociations()Deprecated.This member has been deprecated.InstantinvitationTimestamp()The date and time when the invitation was sent.StringreceiverAccountId()The ID of the Amazon Web Services account that received the invitation.StringreceiverArn()The Amazon Resource Name (ARN) of the IAM user or role that received the invitation.StringresourceShareArn()The Amazon Resource Name (ARN) of the resource shareList<ResourceShareAssociation>resourceShareAssociations()Deprecated.This member has been deprecated.StringresourceShareInvitationArn()The Amazon Resource Name (ARN) of the invitation.StringresourceShareName()The name of the resource share.List<SdkField<?>>sdkFields()StringsenderAccountId()The ID of the Amazon Web Services account that sent the invitation.static Class<? extends ResourceShareInvitation.Builder>serializableBuilderClass()ResourceShareInvitationStatusstatus()The current status of the invitation.StringstatusAsString()The current status of the invitation.ResourceShareInvitation.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
-
resourceShareInvitationArn
public final String resourceShareInvitationArn()
The Amazon Resource Name (ARN) of the invitation.
- Returns:
- The Amazon Resource Name (ARN) of the invitation.
-
resourceShareName
public final String resourceShareName()
The name of the resource share.
- Returns:
- The name of the resource share.
-
resourceShareArn
public final String resourceShareArn()
The Amazon Resource Name (ARN) of the resource share
- Returns:
- The Amazon Resource Name (ARN) of the resource share
-
senderAccountId
public final String senderAccountId()
The ID of the Amazon Web Services account that sent the invitation.
- Returns:
- The ID of the Amazon Web Services account that sent the invitation.
-
receiverAccountId
public final String receiverAccountId()
The ID of the Amazon Web Services account that received the invitation.
- Returns:
- The ID of the Amazon Web Services account that received the invitation.
-
invitationTimestamp
public final Instant invitationTimestamp()
The date and time when the invitation was sent.
- Returns:
- The date and time when the invitation was sent.
-
status
public final ResourceShareInvitationStatus status()
The current status of the invitation.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnResourceShareInvitationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the invitation.
- See Also:
ResourceShareInvitationStatus
-
statusAsString
public final String statusAsString()
The current status of the invitation.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnResourceShareInvitationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the invitation.
- See Also:
ResourceShareInvitationStatus
-
hasResourceShareAssociations
@Deprecated public final boolean hasResourceShareAssociations()
Deprecated.This member has been deprecated. Use ListPendingInvitationResources.For responses, this returns true if the service returned a value for the ResourceShareAssociations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
resourceShareAssociations
@Deprecated public final List<ResourceShareAssociation> resourceShareAssociations()
Deprecated.This member has been deprecated. Use ListPendingInvitationResources.To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasResourceShareAssociations()method.- Returns:
- To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
-
receiverArn
public final String receiverArn()
The Amazon Resource Name (ARN) of the IAM user or role that received the invitation.
- Returns:
- The Amazon Resource Name (ARN) of the IAM user or role that received the invitation.
-
toBuilder
public ResourceShareInvitation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceShareInvitation.Builder,ResourceShareInvitation>
-
builder
public static ResourceShareInvitation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceShareInvitation.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.
-
-