@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 what features are available for this resource share.
|
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 Resource 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 what features are available for this resource share.
|
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 Resource 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 what features are available for this resource share.
|
ResourceShare |
withFeatureSet(String featureSet)
Indicates what features are available for this resource share.
|
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 Resource 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 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 ResourceShare withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share
resourceShareArn
- The Amazon Resource
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.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the account
that owns the resource share.
allowExternalPrincipals
- Indicates whether principals outside your organization in Organizations can be associated with a resource
share.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the
account that owns the resource share.
public Boolean getAllowExternalPrincipals()
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the account
that owns the resource share.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the
account that owns the resource share.
public ResourceShare withAllowExternalPrincipals(Boolean allowExternalPrincipals)
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the account
that owns the resource share.
allowExternalPrincipals
- Indicates whether principals outside your organization in Organizations can be associated with a resource
share.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the
account that owns the resource share.
public Boolean isAllowExternalPrincipals()
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the account
that owns the resource share.
True
– the resource share can be shared with any Amazon Web Services account.
False
– the resource share can be shared with only accounts in the same organization as the
account that owns the 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 what features are available for this resource share. This parameter can have one of the following values:
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but the
customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value
changes to STANDARD
when complete.
featureSet
- Indicates what features are available for this resource share. This parameter can have one of the
following values:
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but
the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress.
This value changes to STANDARD
when complete.
ResourceShareFeatureSet
public String getFeatureSet()
Indicates what features are available for this resource share. This parameter can have one of the following values:
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but the
customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value
changes to STANDARD
when complete.
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but
the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in
progress. This value changes to STANDARD
when complete.
ResourceShareFeatureSet
public ResourceShare withFeatureSet(String featureSet)
Indicates what features are available for this resource share. This parameter can have one of the following values:
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but the
customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value
changes to STANDARD
when complete.
featureSet
- Indicates what features are available for this resource share. This parameter can have one of the
following values:
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but
the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress.
This value changes to STANDARD
when complete.
ResourceShareFeatureSet
public ResourceShare withFeatureSet(ResourceShareFeatureSet featureSet)
Indicates what features are available for this resource share. This parameter can have one of the following values:
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but the
customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value
changes to STANDARD
when complete.
featureSet
- Indicates what features are available for this resource share. This parameter can have one of the
following values:
STANDARD – A resource share that supports all functionality. 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. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. 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 – This resource share was originally CREATED_FROM_POLICY
, but
the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress.
This value changes to STANDARD
when complete.
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.