@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceShare extends Object implements Serializable, Cloneable, StructuredPojo
Describes a resource share in RAM.
Constructor and Description |
---|
ResourceShare() |
Modifier and Type | Method and Description |
---|---|
ResourceShare |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowExternalPrincipals()
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
|
Date |
getCreationTime()
The date and time when the resource share was created.
|
String |
getFeatureSet()
Indicates how the resource share was created.
|
Date |
getLastUpdatedTime()
The date and time when the resource share was last updated.
|
String |
getName()
The name of the resource share.
|
String |
getOwningAccountId()
The ID of the Amazon Web Services account that owns the resource share.
|
String |
getResourceShareArn()
The Amazon Resoure Name
(ARN) of the resource share
|
String |
getStatus()
The current status of the resource share.
|
String |
getStatusMessage()
A message about the status of the resource share.
|
List<Tag> |
getTags()
The tag key and value pairs attached to the resource share.
|
int |
hashCode() |
Boolean |
isAllowExternalPrincipals()
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowExternalPrincipals(Boolean allowExternalPrincipals)
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
|
void |
setCreationTime(Date creationTime)
The date and time when the resource share was created.
|
void |
setFeatureSet(String featureSet)
Indicates how the resource share was created.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the resource share was last updated.
|
void |
setName(String name)
The name of the resource share.
|
void |
setOwningAccountId(String owningAccountId)
The ID of the Amazon Web Services account that owns the resource share.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resoure Name
(ARN) of the resource share
|
void |
setStatus(String status)
The current status of the resource share.
|
void |
setStatusMessage(String statusMessage)
A message about the status of the resource share.
|
void |
setTags(Collection<Tag> tags)
The tag key and value pairs attached to the resource share.
|
String |
toString()
Returns a string representation of this object.
|
ResourceShare |
withAllowExternalPrincipals(Boolean allowExternalPrincipals)
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
|
ResourceShare |
withCreationTime(Date creationTime)
The date and time when the resource share was created.
|
ResourceShare |
withFeatureSet(ResourceShareFeatureSet featureSet)
Indicates how the resource share was created.
|
ResourceShare |
withFeatureSet(String featureSet)
Indicates how the resource share was created.
|
ResourceShare |
withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the resource share was last updated.
|
ResourceShare |
withName(String name)
The name of the resource share.
|
ResourceShare |
withOwningAccountId(String owningAccountId)
The ID of the Amazon Web Services account that owns the resource share.
|
ResourceShare |
withResourceShareArn(String resourceShareArn)
The Amazon Resoure Name
(ARN) of the resource share
|
ResourceShare |
withStatus(ResourceShareStatus status)
The current status of the resource share.
|
ResourceShare |
withStatus(String status)
The current status of the resource share.
|
ResourceShare |
withStatusMessage(String statusMessage)
A message about the status of the resource share.
|
ResourceShare |
withTags(Collection<Tag> tags)
The tag key and value pairs attached to the resource share.
|
ResourceShare |
withTags(Tag... tags)
The tag key and value pairs attached to the resource share.
|
public void setResourceShareArn(String resourceShareArn)
The Amazon Resoure Name (ARN) of the resource share
resourceShareArn
- The Amazon Resoure
Name (ARN) of the resource sharepublic String getResourceShareArn()
The Amazon Resoure Name (ARN) of the resource share
public ResourceShare withResourceShareArn(String resourceShareArn)
The Amazon Resoure Name (ARN) of the resource share
resourceShareArn
- The Amazon Resoure
Name (ARN) of the resource sharepublic void setName(String name)
The name of the resource share.
name
- The name of the resource share.public String getName()
The name of the resource share.
public ResourceShare withName(String name)
The name of the resource share.
name
- The name of the resource share.public void setOwningAccountId(String owningAccountId)
The ID of the Amazon Web Services account that owns the resource share.
owningAccountId
- The ID of the Amazon Web Services account that owns the resource share.public String getOwningAccountId()
The ID of the Amazon Web Services account that owns the resource share.
public ResourceShare withOwningAccountId(String owningAccountId)
The ID of the Amazon Web Services account that owns the resource share.
owningAccountId
- The ID of the Amazon Web Services account that owns the resource share.public void setAllowExternalPrincipals(Boolean allowExternalPrincipals)
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
allowExternalPrincipals
- Indicates whether principals outside your organization in Organizations can be associated with a resource
share.public Boolean getAllowExternalPrincipals()
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
public ResourceShare withAllowExternalPrincipals(Boolean allowExternalPrincipals)
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
allowExternalPrincipals
- Indicates whether principals outside your organization in Organizations can be associated with a resource
share.public Boolean isAllowExternalPrincipals()
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
public void setStatus(String status)
The current status of the resource share.
status
- The current status of the resource share.ResourceShareStatus
public String getStatus()
The current status of the resource share.
ResourceShareStatus
public ResourceShare withStatus(String status)
The current status of the resource share.
status
- The current status of the resource share.ResourceShareStatus
public ResourceShare withStatus(ResourceShareStatus status)
The current status of the resource share.
status
- The current status of the resource share.ResourceShareStatus
public void setStatusMessage(String statusMessage)
A message about the status of the resource share.
statusMessage
- A message about the status of the resource share.public String getStatusMessage()
A message about the status of the resource share.
public ResourceShare withStatusMessage(String statusMessage)
A message about the status of the resource share.
statusMessage
- A message about the status of the resource share.public List<Tag> getTags()
The tag key and value pairs attached to the resource share.
public void setTags(Collection<Tag> tags)
The tag key and value pairs attached to the resource share.
tags
- The tag key and value pairs attached to the resource share.public ResourceShare withTags(Tag... tags)
The tag key and value pairs attached to the resource share.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tag key and value pairs attached to the resource share.public ResourceShare withTags(Collection<Tag> tags)
The tag key and value pairs attached to the resource share.
tags
- The tag key and value pairs attached to the resource share.public void setCreationTime(Date creationTime)
The date and time when the resource share was created.
creationTime
- The date and time when the resource share was created.public Date getCreationTime()
The date and time when the resource share was created.
public ResourceShare withCreationTime(Date creationTime)
The date and time when the resource share was created.
creationTime
- The date and time when the resource share was created.public void setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the resource share was last updated.
lastUpdatedTime
- The date and time when the resource share was last updated.public Date getLastUpdatedTime()
The date and time when the resource share was last updated.
public ResourceShare withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the resource share was last updated.
lastUpdatedTime
- The date and time when the resource share was last updated.public void setFeatureSet(String featureSet)
Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and Access
Management (IAM) resource-based permission policy attached to the resource. This type of resource share is
visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote
it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs. These
resource shares are visible to all principals you share the resource share with. You can modify these resource
shares in RAM using the console or APIs.
featureSet
- Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and
Access Management (IAM) resource-based permission policy attached to the resource. This type of resource
share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM
unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs.
These resource shares are visible to all principals you share the resource share with. You can modify
these resource shares in RAM using the console or APIs.
ResourceShareFeatureSet
public String getFeatureSet()
Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and Access
Management (IAM) resource-based permission policy attached to the resource. This type of resource share is
visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote
it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs. These
resource shares are visible to all principals you share the resource share with. You can modify these resource
shares in RAM using the console or APIs.
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and
Access Management (IAM) resource-based permission policy attached to the resource. This type of resource
share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM
unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs.
These resource shares are visible to all principals you share the resource share with. You can modify
these resource shares in RAM using the console or APIs.
ResourceShareFeatureSet
public ResourceShare withFeatureSet(String featureSet)
Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and Access
Management (IAM) resource-based permission policy attached to the resource. This type of resource share is
visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote
it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs. These
resource shares are visible to all principals you share the resource share with. You can modify these resource
shares in RAM using the console or APIs.
featureSet
- Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and
Access Management (IAM) resource-based permission policy attached to the resource. This type of resource
share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM
unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs.
These resource shares are visible to all principals you share the resource share with. You can modify
these resource shares in RAM using the console or APIs.
ResourceShareFeatureSet
public ResourceShare withFeatureSet(ResourceShareFeatureSet featureSet)
Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and Access
Management (IAM) resource-based permission policy attached to the resource. This type of resource share is
visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote
it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs. These
resource shares are visible to all principals you share the resource share with. You can modify these resource
shares in RAM using the console or APIs.
featureSet
- Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY
- Indicates that the resource share was created from an Identity and
Access Management (IAM) resource-based permission policy attached to the resource. This type of resource
share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM
unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD
- The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD
- Indicates that the resource share was created in RAM using the console or APIs.
These resource shares are visible to all principals you share the resource share with. You can modify
these resource shares in RAM using the console or APIs.
ResourceShareFeatureSet
public String toString()
toString
in class Object
Object.toString()
public ResourceShare clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.