@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceShareAssociation extends Object implements Serializable, Cloneable, StructuredPojo
Describes an association between a resource share and either a principal or a resource.
Constructor and Description |
---|
ResourceShareAssociation() |
Modifier and Type | Method and Description |
---|---|
ResourceShareAssociation |
clone() |
boolean |
equals(Object obj) |
String |
getAssociatedEntity()
The associated entity.
|
String |
getAssociationType()
The type of entity included in this association.
|
Date |
getCreationTime()
The date and time when the association was created.
|
Boolean |
getExternal()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
Date |
getLastUpdatedTime()
The date and time when the association was last updated.
|
String |
getResourceShareArn()
The Amazon Resource Name
(ARN) of the resource share.
|
String |
getResourceShareName()
The name of the resource share.
|
String |
getStatus()
The current status of the association.
|
String |
getStatusMessage()
A message about the status of the association.
|
int |
hashCode() |
Boolean |
isExternal()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssociatedEntity(String associatedEntity)
The associated entity.
|
void |
setAssociationType(String associationType)
The type of entity included in this association.
|
void |
setCreationTime(Date creationTime)
The date and time when the association was created.
|
void |
setExternal(Boolean external)
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association was last updated.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of the resource share.
|
void |
setResourceShareName(String resourceShareName)
The name of the resource share.
|
void |
setStatus(String status)
The current status of the association.
|
void |
setStatusMessage(String statusMessage)
A message about the status of the association.
|
String |
toString()
Returns a string representation of this object.
|
ResourceShareAssociation |
withAssociatedEntity(String associatedEntity)
The associated entity.
|
ResourceShareAssociation |
withAssociationType(ResourceShareAssociationType associationType)
The type of entity included in this association.
|
ResourceShareAssociation |
withAssociationType(String associationType)
The type of entity included in this association.
|
ResourceShareAssociation |
withCreationTime(Date creationTime)
The date and time when the association was created.
|
ResourceShareAssociation |
withExternal(Boolean external)
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
ResourceShareAssociation |
withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association was last updated.
|
ResourceShareAssociation |
withResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of the resource share.
|
ResourceShareAssociation |
withResourceShareName(String resourceShareName)
The name of the resource share.
|
ResourceShareAssociation |
withStatus(ResourceShareAssociationStatus status)
The current status of the association.
|
ResourceShareAssociation |
withStatus(String status)
The current status of the association.
|
ResourceShareAssociation |
withStatusMessage(String statusMessage)
A message about the status of the association.
|
public void setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
resourceShareArn
- The Amazon Resource
Name (ARN) of the resource share.public String getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
public ResourceShareAssociation withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
resourceShareArn
- The Amazon Resource
Name (ARN) of the resource share.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 ResourceShareAssociation withResourceShareName(String resourceShareName)
The name of the resource share.
resourceShareName
- The name of the resource share.public void setAssociatedEntity(String associatedEntity)
The associated entity. This can be either of the following:
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
associatedEntity
- The associated entity. This can be either of the following:
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
public String getAssociatedEntity()
The associated entity. This can be either of the following:
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
public ResourceShareAssociation withAssociatedEntity(String associatedEntity)
The associated entity. This can be either of the following:
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
associatedEntity
- The associated entity. This can be either of the following:
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
For principal associations, this is one of the following:
The ID of an Amazon Web Services account
The Amazon Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The ARN of an IAM role
The ARN of an IAM user
public void setAssociationType(String associationType)
The type of entity included in this association.
associationType
- The type of entity included in this association.ResourceShareAssociationType
public String getAssociationType()
The type of entity included in this association.
ResourceShareAssociationType
public ResourceShareAssociation withAssociationType(String associationType)
The type of entity included in this association.
associationType
- The type of entity included in this association.ResourceShareAssociationType
public ResourceShareAssociation withAssociationType(ResourceShareAssociationType associationType)
The type of entity included in this association.
associationType
- The type of entity included in this association.ResourceShareAssociationType
public void setStatus(String status)
The current status of the association.
status
- The current status of the association.ResourceShareAssociationStatus
public String getStatus()
The current status of the association.
ResourceShareAssociationStatus
public ResourceShareAssociation withStatus(String status)
The current status of the association.
status
- The current status of the association.ResourceShareAssociationStatus
public ResourceShareAssociation withStatus(ResourceShareAssociationStatus status)
The current status of the association.
status
- The current status of the association.ResourceShareAssociationStatus
public void setStatusMessage(String statusMessage)
A message about the status of the association.
statusMessage
- A message about the status of the association.public String getStatusMessage()
A message about the status of the association.
public ResourceShareAssociation withStatusMessage(String statusMessage)
A message about the status of the association.
statusMessage
- A message about the status of the association.public void setCreationTime(Date creationTime)
The date and time when the association was created.
creationTime
- The date and time when the association was created.public Date getCreationTime()
The date and time when the association was created.
public ResourceShareAssociation withCreationTime(Date creationTime)
The date and time when the association was created.
creationTime
- The date and time when the association was created.public void setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association was last updated.
lastUpdatedTime
- The date and time when the association was last updated.public Date getLastUpdatedTime()
The date and time when the association was last updated.
public ResourceShareAssociation withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association was last updated.
lastUpdatedTime
- The date and time when the association was last updated.public void setExternal(Boolean external)
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
external
- Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web
Services account that owns the resource share.public Boolean getExternal()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
public ResourceShareAssociation withExternal(Boolean external)
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
external
- Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web
Services account that owns the resource share.public Boolean isExternal()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
public String toString()
toString
in class Object
Object.toString()
public ResourceShareAssociation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.