@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateResourceShareRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateResourceShareRequest() |
Modifier and Type | Method and Description |
---|---|
CreateResourceShareRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getAllowExternalPrincipals()
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
|
String |
getClientToken()
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getName()
Specifies the name of the resource share.
|
List<String> |
getPermissionArns()
Specifies the Amazon
Resource Names (ARNs) of the RAM permission to associate with the resource share.
|
List<String> |
getPrincipals()
Specifies a list of one or more principals to associate with the resource share.
|
List<String> |
getResourceArns()
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
List<String> |
getSources()
Specifies from which source accounts the service principal has access to the resources in this resource share.
|
List<Tag> |
getTags()
Specifies one or more tags to attach to the resource share itself.
|
int |
hashCode() |
Boolean |
isAllowExternalPrincipals()
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
|
void |
setAllowExternalPrincipals(Boolean allowExternalPrincipals)
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
|
void |
setClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setName(String name)
Specifies the name of the resource share.
|
void |
setPermissionArns(Collection<String> permissionArns)
Specifies the Amazon
Resource Names (ARNs) of the RAM permission to associate with the resource share.
|
void |
setPrincipals(Collection<String> principals)
Specifies a list of one or more principals to associate with the resource share.
|
void |
setResourceArns(Collection<String> resourceArns)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
void |
setSources(Collection<String> sources)
Specifies from which source accounts the service principal has access to the resources in this resource share.
|
void |
setTags(Collection<Tag> tags)
Specifies one or more tags to attach to the resource share itself.
|
String |
toString()
Returns a string representation of this object.
|
CreateResourceShareRequest |
withAllowExternalPrincipals(Boolean allowExternalPrincipals)
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
|
CreateResourceShareRequest |
withClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateResourceShareRequest |
withName(String name)
Specifies the name of the resource share.
|
CreateResourceShareRequest |
withPermissionArns(Collection<String> permissionArns)
Specifies the Amazon
Resource Names (ARNs) of the RAM permission to associate with the resource share.
|
CreateResourceShareRequest |
withPermissionArns(String... permissionArns)
Specifies the Amazon
Resource Names (ARNs) of the RAM permission to associate with the resource share.
|
CreateResourceShareRequest |
withPrincipals(Collection<String> principals)
Specifies a list of one or more principals to associate with the resource share.
|
CreateResourceShareRequest |
withPrincipals(String... principals)
Specifies a list of one or more principals to associate with the resource share.
|
CreateResourceShareRequest |
withResourceArns(Collection<String> resourceArns)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
CreateResourceShareRequest |
withResourceArns(String... resourceArns)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
CreateResourceShareRequest |
withSources(Collection<String> sources)
Specifies from which source accounts the service principal has access to the resources in this resource share.
|
CreateResourceShareRequest |
withSources(String... sources)
Specifies from which source accounts the service principal has access to the resources in this resource share.
|
CreateResourceShareRequest |
withTags(Collection<Tag> tags)
Specifies one or more tags to attach to the resource share itself.
|
CreateResourceShareRequest |
withTags(Tag... tags)
Specifies one or more tags to attach to the resource share itself.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
Specifies the name of the resource share.
name
- Specifies the name of the resource share.public String getName()
Specifies the name of the resource share.
public CreateResourceShareRequest withName(String name)
Specifies the name of the resource share.
name
- Specifies the name of the resource share.public List<String> getResourceArns()
Specifies a list of one or more ARNs of the resources to associate with the resource share.
public void setResourceArns(Collection<String> resourceArns)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
resourceArns
- Specifies a list of one or more ARNs of the resources to associate with the resource share.public CreateResourceShareRequest withResourceArns(String... resourceArns)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
NOTE: This method appends the values to the existing list (if any). Use
setResourceArns(java.util.Collection)
or withResourceArns(java.util.Collection)
if you want to
override the existing values.
resourceArns
- Specifies a list of one or more ARNs of the resources to associate with the resource share.public CreateResourceShareRequest withResourceArns(Collection<String> resourceArns)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
resourceArns
- Specifies a list of one or more ARNs of the resources to associate with the resource share.public List<String> getPrincipals()
Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource Name
(ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource
Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
public void setPrincipals(Collection<String> principals)
Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource Name
(ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
principals
- Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource
Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
public CreateResourceShareRequest withPrincipals(String... principals)
Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource Name
(ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipals(java.util.Collection)
or withPrincipals(java.util.Collection)
if you want to
override the existing values.
principals
- Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource
Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
public CreateResourceShareRequest withPrincipals(Collection<String> principals)
Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource Name
(ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
principals
- Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resource
Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
An ARN of an IAM role, for example: iam::123456789012:role/rolename
An ARN of an IAM user, for example: iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
public List<Tag> getTags()
Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with the resource share.
public void setTags(Collection<Tag> tags)
Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with the resource share.
tags
- Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the
resources associated with the resource share.public CreateResourceShareRequest withTags(Tag... tags)
Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with 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
- Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the
resources associated with the resource share.public CreateResourceShareRequest withTags(Collection<Tag> tags)
Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with the resource share.
tags
- Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the
resources associated with the resource share.public void setAllowExternalPrincipals(Boolean allowExternalPrincipals)
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
A value of true
lets you share with individual Amazon Web Services accounts that are not in
your organization. A value of false
only has meaning if your account is a member of an Amazon Web
Services Organization. The default value is true
.
allowExternalPrincipals
- Specifies whether principals outside your organization in Organizations can be associated with a resource
share. A value of true
lets you share with individual Amazon Web Services accounts that are
not in your organization. A value of false
only has meaning if your account is a
member of an Amazon Web Services Organization. The default value is true
.public Boolean getAllowExternalPrincipals()
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
A value of true
lets you share with individual Amazon Web Services accounts that are not in
your organization. A value of false
only has meaning if your account is a member of an Amazon Web
Services Organization. The default value is true
.
true
lets you share with individual Amazon Web Services accounts that are
not in your organization. A value of false
only has meaning if your account is a
member of an Amazon Web Services Organization. The default value is true
.public CreateResourceShareRequest withAllowExternalPrincipals(Boolean allowExternalPrincipals)
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
A value of true
lets you share with individual Amazon Web Services accounts that are not in
your organization. A value of false
only has meaning if your account is a member of an Amazon Web
Services Organization. The default value is true
.
allowExternalPrincipals
- Specifies whether principals outside your organization in Organizations can be associated with a resource
share. A value of true
lets you share with individual Amazon Web Services accounts that are
not in your organization. A value of false
only has meaning if your account is a
member of an Amazon Web Services Organization. The default value is true
.public Boolean isAllowExternalPrincipals()
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
A value of true
lets you share with individual Amazon Web Services accounts that are not in
your organization. A value of false
only has meaning if your account is a member of an Amazon Web
Services Organization. The default value is true
.
true
lets you share with individual Amazon Web Services accounts that are
not in your organization. A value of false
only has meaning if your account is a
member of an Amazon Web Services Organization. The default value is true
.public void setClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails
with an IdempotentParameterMismatch
error.
clientToken
- Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This lets you safely retry the request without accidentally performing the same operation a second time.
Passing the same value to a later call to an operation requires that you also pass the same value for all
other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the
retry fails with an IdempotentParameterMismatch
error.
public String getClientToken()
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails
with an IdempotentParameterMismatch
error.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the
retry fails with an IdempotentParameterMismatch
error.
public CreateResourceShareRequest withClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails
with an IdempotentParameterMismatch
error.
clientToken
- Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This lets you safely retry the request without accidentally performing the same operation a second time.
Passing the same value to a later call to an operation requires that you also pass the same value for all
other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the
retry fails with an IdempotentParameterMismatch
error.
public List<String> getPermissionArns()
Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.
public void setPermissionArns(Collection<String> permissionArns)
Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.
permissionArns
- Specifies the Amazon
Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not
specify an ARN for the permission, RAM automatically attaches the default version of the permission for
each resource type. You can associate only one permission with each resource type included in the resource
share.public CreateResourceShareRequest withPermissionArns(String... permissionArns)
Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.
NOTE: This method appends the values to the existing list (if any). Use
setPermissionArns(java.util.Collection)
or withPermissionArns(java.util.Collection)
if you want
to override the existing values.
permissionArns
- Specifies the Amazon
Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not
specify an ARN for the permission, RAM automatically attaches the default version of the permission for
each resource type. You can associate only one permission with each resource type included in the resource
share.public CreateResourceShareRequest withPermissionArns(Collection<String> permissionArns)
Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.
permissionArns
- Specifies the Amazon
Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not
specify an ARN for the permission, RAM automatically attaches the default version of the permission for
each resource type. You can associate only one permission with each resource type included in the resource
share.public List<String> getSources()
Specifies from which source accounts the service principal has access to the resources in this resource share.
public void setSources(Collection<String> sources)
Specifies from which source accounts the service principal has access to the resources in this resource share.
sources
- Specifies from which source accounts the service principal has access to the resources in this resource
share.public CreateResourceShareRequest withSources(String... sources)
Specifies from which source accounts the service principal has access to the resources in this resource share.
NOTE: This method appends the values to the existing list (if any). Use
setSources(java.util.Collection)
or withSources(java.util.Collection)
if you want to override
the existing values.
sources
- Specifies from which source accounts the service principal has access to the resources in this resource
share.public CreateResourceShareRequest withSources(Collection<String> sources)
Specifies from which source accounts the service principal has access to the resources in this resource share.
sources
- Specifies from which source accounts the service principal has access to the resources in this resource
share.public String toString()
toString
in class Object
Object.toString()
public CreateResourceShareRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()