@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DisassociateResourceShareRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DisassociateResourceShareRequest() |
Modifier and Type | Method and Description |
---|---|
DisassociateResourceShareRequest |
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 one or more principals that no longer are to have access to the resources in this resource
share.
|
List<String> |
getResourceArns()
Specifies a list of Amazon
Resource Names (ARNs) for one or more resources that you want to remove from the resource share.
|
String |
getResourceShareArn()
Specifies Amazon Resource
Name (ARN) of the resource share that you want to remove resources or principals from.
|
List<String> |
getSources()
Specifies from which source accounts the service principal no longer has access to the resources in this resource
share.
|
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 one or more principals that no longer are to have access to the resources in this resource
share.
|
void |
setResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) for one or more resources that you want to remove from the resource share.
|
void |
setResourceShareArn(String resourceShareArn)
Specifies Amazon Resource
Name (ARN) of the resource share that you want to remove resources or principals from.
|
void |
setSources(Collection<String> sources)
Specifies from which source accounts the service principal no longer has access to the resources in this resource
share.
|
String |
toString()
Returns a string representation of this object.
|
DisassociateResourceShareRequest |
withClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
DisassociateResourceShareRequest |
withPrincipals(Collection<String> principals)
Specifies a list of one or more principals that no longer are to have access to the resources in this resource
share.
|
DisassociateResourceShareRequest |
withPrincipals(String... principals)
Specifies a list of one or more principals that no longer are to have access to the resources in this resource
share.
|
DisassociateResourceShareRequest |
withResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) for one or more resources that you want to remove from the resource share.
|
DisassociateResourceShareRequest |
withResourceArns(String... resourceArns)
Specifies a list of Amazon
Resource Names (ARNs) for one or more resources that you want to remove from the resource share.
|
DisassociateResourceShareRequest |
withResourceShareArn(String resourceShareArn)
Specifies Amazon Resource
Name (ARN) of the resource share that you want to remove resources or principals from.
|
DisassociateResourceShareRequest |
withSources(Collection<String> sources)
Specifies from which source accounts the service principal no longer has access to the resources in this resource
share.
|
DisassociateResourceShareRequest |
withSources(String... sources)
Specifies from which source accounts the service principal no longer has access to the resources in this resource
share.
|
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 Amazon Resource Name (ARN) of the resource share that you want to remove resources or principals from.
resourceShareArn
- Specifies Amazon
Resource Name (ARN) of the resource share that you want to remove resources or principals from.public String getResourceShareArn()
Specifies Amazon Resource Name (ARN) of the resource share that you want to remove resources or principals from.
public DisassociateResourceShareRequest withResourceShareArn(String resourceShareArn)
Specifies Amazon Resource Name (ARN) of the resource share that you want to remove resources or principals from.
resourceShareArn
- Specifies Amazon
Resource Name (ARN) of the resource share that you want to remove resources or principals from.public List<String> getResourceArns()
Specifies a list of Amazon Resource Names (ARNs) for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals associated with the resource share.
public void setResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon Resource Names (ARNs) for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals associated with the resource share.
resourceArns
- Specifies a list of Amazon Resource Names
(ARNs) for one or more resources that you want to remove from the resource share. After the operation
runs, these resources are no longer shared with principals associated with the resource share.public DisassociateResourceShareRequest withResourceArns(String... resourceArns)
Specifies a list of Amazon Resource Names (ARNs) for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals associated 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 Amazon Resource Names
(ARNs) for one or more resources that you want to remove from the resource share. After the operation
runs, these resources are no longer shared with principals associated with the resource share.public DisassociateResourceShareRequest withResourceArns(Collection<String> resourceArns)
Specifies a list of Amazon Resource Names (ARNs) for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals associated with the resource share.
resourceArns
- Specifies a list of Amazon Resource Names
(ARNs) for one or more resources that you want to remove from the resource share. After the operation
runs, these resources are no longer shared with principals associated with the resource share.public List<String> getPrincipals()
Specifies a list of one or more principals that no longer are to have access to the resources in this 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 that no longer are to have access to the resources in this 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 that no longer are to have access to the resources in this
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 DisassociateResourceShareRequest withPrincipals(String... principals)
Specifies a list of one or more principals that no longer are to have access to the resources in this 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 that no longer are to have access to the resources in this
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 DisassociateResourceShareRequest withPrincipals(Collection<String> principals)
Specifies a list of one or more principals that no longer are to have access to the resources in this 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 that no longer are to have access to the resources in this
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 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 DisassociateResourceShareRequest 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> getSources()
Specifies from which source accounts the service principal no longer has access to the resources in this resource share.
public void setSources(Collection<String> sources)
Specifies from which source accounts the service principal no longer has access to the resources in this resource share.
sources
- Specifies from which source accounts the service principal no longer has access to the resources in this
resource share.public DisassociateResourceShareRequest withSources(String... sources)
Specifies from which source accounts the service principal no longer 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 no longer has access to the resources in this
resource share.public DisassociateResourceShareRequest withSources(Collection<String> sources)
Specifies from which source accounts the service principal no longer has access to the resources in this resource share.
sources
- Specifies from which source accounts the service principal no longer has access to the resources in this
resource share.public String toString()
toString
in class Object
Object.toString()
public DisassociateResourceShareRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()