@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceShareInvitation extends Object implements Serializable, Cloneable, StructuredPojo
Describes an invitation for an Amazon Web Services account to join a resource share.
Constructor and Description |
---|
ResourceShareInvitation() |
Modifier and Type | Method and Description |
---|---|
ResourceShareInvitation |
clone() |
boolean |
equals(Object obj) |
Date |
getInvitationTimestamp()
The date and time when the invitation was sent.
|
String |
getReceiverAccountId()
The ID of the Amazon Web Services account that received the invitation.
|
String |
getReceiverArn()
The Amazon Resource Name
(ARN) of the IAM user or role that received the invitation.
|
String |
getResourceShareArn()
The Amazon Resource Name
(ARN) of the resource share
|
List<ResourceShareAssociation> |
getResourceShareAssociations()
Deprecated.
|
String |
getResourceShareInvitationArn()
The Amazon Resource Name
(ARN) of the invitation.
|
String |
getResourceShareName()
The name of the resource share.
|
String |
getSenderAccountId()
The ID of the Amazon Web Services account that sent the invitation.
|
String |
getStatus()
The current status of the invitation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInvitationTimestamp(Date invitationTimestamp)
The date and time when the invitation was sent.
|
void |
setReceiverAccountId(String receiverAccountId)
The ID of the Amazon Web Services account that received the invitation.
|
void |
setReceiverArn(String receiverArn)
The Amazon Resource Name
(ARN) of the IAM user or role that received the invitation.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of the resource share
|
void |
setResourceShareAssociations(Collection<ResourceShareAssociation> resourceShareAssociations)
Deprecated.
|
void |
setResourceShareInvitationArn(String resourceShareInvitationArn)
The Amazon Resource Name
(ARN) of the invitation.
|
void |
setResourceShareName(String resourceShareName)
The name of the resource share.
|
void |
setSenderAccountId(String senderAccountId)
The ID of the Amazon Web Services account that sent the invitation.
|
void |
setStatus(String status)
The current status of the invitation.
|
String |
toString()
Returns a string representation of this object.
|
ResourceShareInvitation |
withInvitationTimestamp(Date invitationTimestamp)
The date and time when the invitation was sent.
|
ResourceShareInvitation |
withReceiverAccountId(String receiverAccountId)
The ID of the Amazon Web Services account that received the invitation.
|
ResourceShareInvitation |
withReceiverArn(String receiverArn)
The Amazon Resource Name
(ARN) of the IAM user or role that received the invitation.
|
ResourceShareInvitation |
withResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of the resource share
|
ResourceShareInvitation |
withResourceShareAssociations(Collection<ResourceShareAssociation> resourceShareAssociations)
Deprecated.
|
ResourceShareInvitation |
withResourceShareAssociations(ResourceShareAssociation... resourceShareAssociations)
Deprecated.
|
ResourceShareInvitation |
withResourceShareInvitationArn(String resourceShareInvitationArn)
The Amazon Resource Name
(ARN) of the invitation.
|
ResourceShareInvitation |
withResourceShareName(String resourceShareName)
The name of the resource share.
|
ResourceShareInvitation |
withSenderAccountId(String senderAccountId)
The ID of the Amazon Web Services account that sent the invitation.
|
ResourceShareInvitation |
withStatus(ResourceShareInvitationStatus status)
The current status of the invitation.
|
ResourceShareInvitation |
withStatus(String status)
The current status of the invitation.
|
public void setResourceShareInvitationArn(String resourceShareInvitationArn)
The Amazon Resource Name (ARN) of the invitation.
resourceShareInvitationArn
- The Amazon Resource
Name (ARN) of the invitation.public String getResourceShareInvitationArn()
The Amazon Resource Name (ARN) of the invitation.
public ResourceShareInvitation withResourceShareInvitationArn(String resourceShareInvitationArn)
The Amazon Resource Name (ARN) of the invitation.
resourceShareInvitationArn
- The Amazon Resource
Name (ARN) of the invitation.public void setResourceShareName(String resourceShareName)
The name of the resource share.
resourceShareName
- The name of the resource share.public String getResourceShareName()
The name of the resource share.
public ResourceShareInvitation withResourceShareName(String resourceShareName)
The name of the resource share.
resourceShareName
- The name of the resource share.public void setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share
resourceShareArn
- The Amazon Resource
Name (ARN) of the resource sharepublic String getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share
public ResourceShareInvitation withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share
resourceShareArn
- The Amazon Resource
Name (ARN) of the resource sharepublic void setSenderAccountId(String senderAccountId)
The ID of the Amazon Web Services account that sent the invitation.
senderAccountId
- The ID of the Amazon Web Services account that sent the invitation.public String getSenderAccountId()
The ID of the Amazon Web Services account that sent the invitation.
public ResourceShareInvitation withSenderAccountId(String senderAccountId)
The ID of the Amazon Web Services account that sent the invitation.
senderAccountId
- The ID of the Amazon Web Services account that sent the invitation.public void setReceiverAccountId(String receiverAccountId)
The ID of the Amazon Web Services account that received the invitation.
receiverAccountId
- The ID of the Amazon Web Services account that received the invitation.public String getReceiverAccountId()
The ID of the Amazon Web Services account that received the invitation.
public ResourceShareInvitation withReceiverAccountId(String receiverAccountId)
The ID of the Amazon Web Services account that received the invitation.
receiverAccountId
- The ID of the Amazon Web Services account that received the invitation.public void setInvitationTimestamp(Date invitationTimestamp)
The date and time when the invitation was sent.
invitationTimestamp
- The date and time when the invitation was sent.public Date getInvitationTimestamp()
The date and time when the invitation was sent.
public ResourceShareInvitation withInvitationTimestamp(Date invitationTimestamp)
The date and time when the invitation was sent.
invitationTimestamp
- The date and time when the invitation was sent.public void setStatus(String status)
The current status of the invitation.
status
- The current status of the invitation.ResourceShareInvitationStatus
public String getStatus()
The current status of the invitation.
ResourceShareInvitationStatus
public ResourceShareInvitation withStatus(String status)
The current status of the invitation.
status
- The current status of the invitation.ResourceShareInvitationStatus
public ResourceShareInvitation withStatus(ResourceShareInvitationStatus status)
The current status of the invitation.
status
- The current status of the invitation.ResourceShareInvitationStatus
@Deprecated public List<ResourceShareAssociation> getResourceShareAssociations()
To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
@Deprecated public void setResourceShareAssociations(Collection<ResourceShareAssociation> resourceShareAssociations)
To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
resourceShareAssociations
- To view the resources associated with a pending resource share invitation, use
ListPendingInvitationResources.@Deprecated public ResourceShareInvitation withResourceShareAssociations(ResourceShareAssociation... resourceShareAssociations)
To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
NOTE: This method appends the values to the existing list (if any). Use
setResourceShareAssociations(java.util.Collection)
or
withResourceShareAssociations(java.util.Collection)
if you want to override the existing values.
resourceShareAssociations
- To view the resources associated with a pending resource share invitation, use
ListPendingInvitationResources.@Deprecated public ResourceShareInvitation withResourceShareAssociations(Collection<ResourceShareAssociation> resourceShareAssociations)
To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
resourceShareAssociations
- To view the resources associated with a pending resource share invitation, use
ListPendingInvitationResources.public void setReceiverArn(String receiverArn)
The Amazon Resource Name (ARN) of the IAM user or role that received the invitation.
receiverArn
- The Amazon Resource
Name (ARN) of the IAM user or role that received the invitation.public String getReceiverArn()
The Amazon Resource Name (ARN) of the IAM user or role that received the invitation.
public ResourceShareInvitation withReceiverArn(String receiverArn)
The Amazon Resource Name (ARN) of the IAM user or role that received the invitation.
receiverArn
- The Amazon Resource
Name (ARN) of the IAM user or role that received the invitation.public String toString()
toString
in class Object
Object.toString()
public ResourceShareInvitation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.