@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociateResourceShareRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AssociateResourceShareRequest() |
Modifier and Type | Method and Description |
---|---|
AssociateResourceShareRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
List<String> |
getPrincipals()
Specifies a list of principals to whom you want to the resource share.
|
List<String> |
getResourceArns()
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share.
|
String |
getResourceShareArn()
Specifies the Amazon Resoure
Name (ARN) of the resource share that you want to add principals or resources to.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setPrincipals(Collection<String> principals)
Specifies a list of principals to whom you want to the resource share.
|
void |
setResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share.
|
void |
setResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure
Name (ARN) of the resource share that you want to add principals or resources to.
|
String |
toString()
Returns a string representation of this object.
|
AssociateResourceShareRequest |
withClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
AssociateResourceShareRequest |
withPrincipals(Collection<String> principals)
Specifies a list of principals to whom you want to the resource share.
|
AssociateResourceShareRequest |
withPrincipals(String... principals)
Specifies a list of principals to whom you want to the resource share.
|
AssociateResourceShareRequest |
withResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share.
|
AssociateResourceShareRequest |
withResourceArns(String... resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share.
|
AssociateResourceShareRequest |
withResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure
Name (ARN) of the resource share that you want to add principals or resources to.
|
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 setResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add principals or resources to.
resourceShareArn
- Specifies the Amazon
Resoure Name (ARN) of the resource share that you want to add principals or resources to.public String getResourceShareArn()
Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add principals or resources to.
public AssociateResourceShareRequest withResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add principals or resources to.
resourceShareArn
- Specifies the Amazon
Resoure Name (ARN) of the resource share that you want to add principals or resources to.public List<String> getResourceArns()
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share. This can be null
if you want to
add only principals.
null
if you want to add only
principals.public void setResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share. This can be null
if you want to
add only principals.
resourceArns
- Specifies a list of Amazon Resource Names
(ARNs) of the resources that you want to share. This can be null
if you want to add only
principals.public AssociateResourceShareRequest withResourceArns(String... resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share. This can be null
if you want to
add only principals.
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 Amazon Resource Names
(ARNs) of the resources that you want to share. This can be null
if you want to add only
principals.public AssociateResourceShareRequest withResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) of the resources that you want to share. This can be null
if you want to
add only principals.
resourceArns
- Specifies a list of Amazon Resource Names
(ARNs) of the resources that you want to share. This can be null
if you want to add only
principals.public List<String> getPrincipals()
Specifies a list of principals to whom you want to the resource share. This can be null
if you want
to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure 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.
null
if
you want to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure
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 principals to whom you want to the resource share. This can be null
if you want
to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure 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 principals to whom you want to the resource share. This can be null
if
you want to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure
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 AssociateResourceShareRequest withPrincipals(String... principals)
Specifies a list of principals to whom you want to the resource share. This can be null
if you want
to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure 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 principals to whom you want to the resource share. This can be null
if
you want to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure
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 AssociateResourceShareRequest withPrincipals(Collection<String> principals)
Specifies a list of principals to whom you want to the resource share. This can be null
if you want
to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure 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 principals to whom you want to the resource share. This can be null
if
you want to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
An Amazon Web Services account ID, for example: 123456789012
An Amazon Resoure
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 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.
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.
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 don't provide this value, then Amazon Web Services generates a random one for you.
public AssociateResourceShareRequest 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.
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.
public String toString()
toString
in class Object
Object.toString()
public AssociateResourceShareRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()