@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceSharePermissionSummary extends Object implements Serializable, Cloneable, StructuredPojo
Information about an RAM permission.
Constructor and Description |
---|
ResourceSharePermissionSummary() |
Modifier and Type | Method and Description |
---|---|
ResourceSharePermissionSummary |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name
(ARN) of the permission you want information about.
|
Date |
getCreationTime()
The date and time when the permission was created.
|
Boolean |
getDefaultVersion()
Specifies whether the version of the managed permission used by this resource share is the default version for
this managed permission.
|
String |
getFeatureSet()
Indicates what features are available for this resource share.
|
Boolean |
getIsResourceTypeDefault()
Specifies whether the managed permission associated with this resource share is the default managed permission
for all resources of this resource type.
|
Date |
getLastUpdatedTime()
The date and time when the permission was last updated.
|
String |
getName()
The name of this managed permission.
|
String |
getPermissionType()
The type of managed permission.
|
String |
getResourceType()
The type of resource to which this permission applies.
|
String |
getStatus()
The current status of the permission.
|
List<Tag> |
getTags()
A list of the tag key value pairs currently attached to the permission.
|
String |
getVersion()
The version of the permission associated with this resource share.
|
int |
hashCode() |
Boolean |
isDefaultVersion()
Specifies whether the version of the managed permission used by this resource share is the default version for
this managed permission.
|
Boolean |
isResourceTypeDefault()
Specifies whether the managed permission associated with this resource share is the default managed permission
for all resources of this resource type.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name
(ARN) of the permission you want information about.
|
void |
setCreationTime(Date creationTime)
The date and time when the permission was created.
|
void |
setDefaultVersion(Boolean defaultVersion)
Specifies whether the version of the managed permission used by this resource share is the default version for
this managed permission.
|
void |
setFeatureSet(String featureSet)
Indicates what features are available for this resource share.
|
void |
setIsResourceTypeDefault(Boolean isResourceTypeDefault)
Specifies whether the managed permission associated with this resource share is the default managed permission
for all resources of this resource type.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the permission was last updated.
|
void |
setName(String name)
The name of this managed permission.
|
void |
setPermissionType(String permissionType)
The type of managed permission.
|
void |
setResourceType(String resourceType)
The type of resource to which this permission applies.
|
void |
setStatus(String status)
The current status of the permission.
|
void |
setTags(Collection<Tag> tags)
A list of the tag key value pairs currently attached to the permission.
|
void |
setVersion(String version)
The version of the permission associated with this resource share.
|
String |
toString()
Returns a string representation of this object.
|
ResourceSharePermissionSummary |
withArn(String arn)
The Amazon Resource Name
(ARN) of the permission you want information about.
|
ResourceSharePermissionSummary |
withCreationTime(Date creationTime)
The date and time when the permission was created.
|
ResourceSharePermissionSummary |
withDefaultVersion(Boolean defaultVersion)
Specifies whether the version of the managed permission used by this resource share is the default version for
this managed permission.
|
ResourceSharePermissionSummary |
withFeatureSet(PermissionFeatureSet featureSet)
Indicates what features are available for this resource share.
|
ResourceSharePermissionSummary |
withFeatureSet(String featureSet)
Indicates what features are available for this resource share.
|
ResourceSharePermissionSummary |
withIsResourceTypeDefault(Boolean isResourceTypeDefault)
Specifies whether the managed permission associated with this resource share is the default managed permission
for all resources of this resource type.
|
ResourceSharePermissionSummary |
withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the permission was last updated.
|
ResourceSharePermissionSummary |
withName(String name)
The name of this managed permission.
|
ResourceSharePermissionSummary |
withPermissionType(PermissionType permissionType)
The type of managed permission.
|
ResourceSharePermissionSummary |
withPermissionType(String permissionType)
The type of managed permission.
|
ResourceSharePermissionSummary |
withResourceType(String resourceType)
The type of resource to which this permission applies.
|
ResourceSharePermissionSummary |
withStatus(String status)
The current status of the permission.
|
ResourceSharePermissionSummary |
withTags(Collection<Tag> tags)
A list of the tag key value pairs currently attached to the permission.
|
ResourceSharePermissionSummary |
withTags(Tag... tags)
A list of the tag key value pairs currently attached to the permission.
|
ResourceSharePermissionSummary |
withVersion(String version)
The version of the permission associated with this resource share.
|
public void setArn(String arn)
The Amazon Resource Name (ARN) of the permission you want information about.
arn
- The Amazon Resource
Name (ARN) of the permission you want information about.public String getArn()
The Amazon Resource Name (ARN) of the permission you want information about.
public ResourceSharePermissionSummary withArn(String arn)
The Amazon Resource Name (ARN) of the permission you want information about.
arn
- The Amazon Resource
Name (ARN) of the permission you want information about.public void setVersion(String version)
The version of the permission associated with this resource share.
version
- The version of the permission associated with this resource share.public String getVersion()
The version of the permission associated with this resource share.
public ResourceSharePermissionSummary withVersion(String version)
The version of the permission associated with this resource share.
version
- The version of the permission associated with this resource share.public void setDefaultVersion(Boolean defaultVersion)
Specifies whether the version of the managed permission used by this resource share is the default version for this managed permission.
defaultVersion
- Specifies whether the version of the managed permission used by this resource share is the default version
for this managed permission.public Boolean getDefaultVersion()
Specifies whether the version of the managed permission used by this resource share is the default version for this managed permission.
public ResourceSharePermissionSummary withDefaultVersion(Boolean defaultVersion)
Specifies whether the version of the managed permission used by this resource share is the default version for this managed permission.
defaultVersion
- Specifies whether the version of the managed permission used by this resource share is the default version
for this managed permission.public Boolean isDefaultVersion()
Specifies whether the version of the managed permission used by this resource share is the default version for this managed permission.
public void setName(String name)
The name of this managed permission.
name
- The name of this managed permission.public String getName()
The name of this managed permission.
public ResourceSharePermissionSummary withName(String name)
The name of this managed permission.
name
- The name of this managed permission.public void setResourceType(String resourceType)
The type of resource to which this permission applies. This takes the form of: service-code
:
resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by
the string ec2:subnet
.
resourceType
- The type of resource to which this permission applies. This takes the form of: service-code
:
resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be
represented by the string ec2:subnet
.public String getResourceType()
The type of resource to which this permission applies. This takes the form of: service-code
:
resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by
the string ec2:subnet
.
service-code
:
resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be
represented by the string ec2:subnet
.public ResourceSharePermissionSummary withResourceType(String resourceType)
The type of resource to which this permission applies. This takes the form of: service-code
:
resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by
the string ec2:subnet
.
resourceType
- The type of resource to which this permission applies. This takes the form of: service-code
:
resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be
represented by the string ec2:subnet
.public void setStatus(String status)
The current status of the permission.
status
- The current status of the permission.public String getStatus()
The current status of the permission.
public ResourceSharePermissionSummary withStatus(String status)
The current status of the permission.
status
- The current status of the permission.public void setCreationTime(Date creationTime)
The date and time when the permission was created.
creationTime
- The date and time when the permission was created.public Date getCreationTime()
The date and time when the permission was created.
public ResourceSharePermissionSummary withCreationTime(Date creationTime)
The date and time when the permission was created.
creationTime
- The date and time when the permission was created.public void setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the permission was last updated.
lastUpdatedTime
- The date and time when the permission was last updated.public Date getLastUpdatedTime()
The date and time when the permission was last updated.
public ResourceSharePermissionSummary withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the permission was last updated.
lastUpdatedTime
- The date and time when the permission was last updated.public void setIsResourceTypeDefault(Boolean isResourceTypeDefault)
Specifies whether the managed permission associated with this resource share is the default managed permission for all resources of this resource type.
isResourceTypeDefault
- Specifies whether the managed permission associated with this resource share is the default managed
permission for all resources of this resource type.public Boolean getIsResourceTypeDefault()
Specifies whether the managed permission associated with this resource share is the default managed permission for all resources of this resource type.
public ResourceSharePermissionSummary withIsResourceTypeDefault(Boolean isResourceTypeDefault)
Specifies whether the managed permission associated with this resource share is the default managed permission for all resources of this resource type.
isResourceTypeDefault
- Specifies whether the managed permission associated with this resource share is the default managed
permission for all resources of this resource type.public Boolean isResourceTypeDefault()
Specifies whether the managed permission associated with this resource share is the default managed permission for all resources of this resource type.
public void setPermissionType(String permissionType)
The type of managed permission. This can be one of the following values:
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can associate it
with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission. You
can associate it with your resource shares and create new versions that have different permissions.
permissionType
- The type of managed permission. This can be one of the following values:
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can
associate it with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission.
You can associate it with your resource shares and create new versions that have different permissions.
PermissionType
public String getPermissionType()
The type of managed permission. This can be one of the following values:
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can associate it
with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission. You
can associate it with your resource shares and create new versions that have different permissions.
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can
associate it with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed
permission. You can associate it with your resource shares and create new versions that have different
permissions.
PermissionType
public ResourceSharePermissionSummary withPermissionType(String permissionType)
The type of managed permission. This can be one of the following values:
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can associate it
with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission. You
can associate it with your resource shares and create new versions that have different permissions.
permissionType
- The type of managed permission. This can be one of the following values:
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can
associate it with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission.
You can associate it with your resource shares and create new versions that have different permissions.
PermissionType
public ResourceSharePermissionSummary withPermissionType(PermissionType permissionType)
The type of managed permission. This can be one of the following values:
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can associate it
with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission. You
can associate it with your resource shares and create new versions that have different permissions.
permissionType
- The type of managed permission. This can be one of the following values:
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can
associate it with your resource shares, but you can't modify it.
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission.
You can associate it with your resource shares and create new versions that have different permissions.
PermissionType
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.
PermissionFeatureSet
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.
PermissionFeatureSet
public ResourceSharePermissionSummary 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.
PermissionFeatureSet
public ResourceSharePermissionSummary withFeatureSet(PermissionFeatureSet 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.
PermissionFeatureSet
public List<Tag> getTags()
A list of the tag key value pairs currently attached to the permission.
public void setTags(Collection<Tag> tags)
A list of the tag key value pairs currently attached to the permission.
tags
- A list of the tag key value pairs currently attached to the permission.public ResourceSharePermissionSummary withTags(Tag... tags)
A list of the tag key value pairs currently attached to the permission.
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
- A list of the tag key value pairs currently attached to the permission.public ResourceSharePermissionSummary withTags(Collection<Tag> tags)
A list of the tag key value pairs currently attached to the permission.
tags
- A list of the tag key value pairs currently attached to the permission.public String toString()
toString
in class Object
Object.toString()
public ResourceSharePermissionSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.