@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociateResourceSharePermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AssociateResourceSharePermissionRequest() |
Modifier and Type | Method and Description |
---|---|
AssociateResourceSharePermissionRequest |
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.
|
String |
getPermissionArn()
Specifies the Amazon
Resource Name (ARN) of the RAM permission to associate with the resource share.
|
Integer |
getPermissionVersion()
Specifies the version of the RAM permission to associate with the resource share.
|
Boolean |
getReplace()
Specifies whether the specified permission should replace the existing permission associated with the resource
share.
|
String |
getResourceShareArn()
Specifies the Amazon
Resource Name (ARN) of the resource share to which you want to add or replace permissions.
|
int |
hashCode() |
Boolean |
isReplace()
Specifies whether the specified permission should replace the existing permission associated with the resource
share.
|
void |
setClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setPermissionArn(String permissionArn)
Specifies the Amazon
Resource Name (ARN) of the RAM permission to associate with the resource share.
|
void |
setPermissionVersion(Integer permissionVersion)
Specifies the version of the RAM permission to associate with the resource share.
|
void |
setReplace(Boolean replace)
Specifies whether the specified permission should replace the existing permission associated with the resource
share.
|
void |
setResourceShareArn(String resourceShareArn)
Specifies the Amazon
Resource Name (ARN) of the resource share to which you want to add or replace permissions.
|
String |
toString()
Returns a string representation of this object.
|
AssociateResourceSharePermissionRequest |
withClientToken(String clientToken)
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
AssociateResourceSharePermissionRequest |
withPermissionArn(String permissionArn)
Specifies the Amazon
Resource Name (ARN) of the RAM permission to associate with the resource share.
|
AssociateResourceSharePermissionRequest |
withPermissionVersion(Integer permissionVersion)
Specifies the version of the RAM permission to associate with the resource share.
|
AssociateResourceSharePermissionRequest |
withReplace(Boolean replace)
Specifies whether the specified permission should replace the existing permission associated with the resource
share.
|
AssociateResourceSharePermissionRequest |
withResourceShareArn(String resourceShareArn)
Specifies the Amazon
Resource Name (ARN) of the resource share to which you want to add or replace permissions.
|
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 AssociateResourceSharePermissionRequest()
public void setResourceShareArn(String resourceShareArn)
Specifies the Amazon Resource Name (ARN) of the resource share to which you want to add or replace permissions.
resourceShareArn
- Specifies the Amazon
Resource Name (ARN) of the resource share to which you want to add or replace permissions.public String getResourceShareArn()
Specifies the Amazon Resource Name (ARN) of the resource share to which you want to add or replace permissions.
public AssociateResourceSharePermissionRequest withResourceShareArn(String resourceShareArn)
Specifies the Amazon Resource Name (ARN) of the resource share to which you want to add or replace permissions.
resourceShareArn
- Specifies the Amazon
Resource Name (ARN) of the resource share to which you want to add or replace permissions.public void setPermissionArn(String permissionArn)
Specifies the Amazon Resource Name (ARN) of the RAM permission to associate with the resource share. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.
permissionArn
- Specifies the Amazon
Resource Name (ARN) of the RAM permission to associate with the resource share. To find the ARN for a
permission, use either the ListPermissions operation or go to the Permissions library page in the RAM
console and then choose the name of the permission. The ARN is displayed on the detail page.public String getPermissionArn()
Specifies the Amazon Resource Name (ARN) of the RAM permission to associate with the resource share. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.
public AssociateResourceSharePermissionRequest withPermissionArn(String permissionArn)
Specifies the Amazon Resource Name (ARN) of the RAM permission to associate with the resource share. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.
permissionArn
- Specifies the Amazon
Resource Name (ARN) of the RAM permission to associate with the resource share. To find the ARN for a
permission, use either the ListPermissions operation or go to the Permissions library page in the RAM
console and then choose the name of the permission. The ARN is displayed on the detail page.public void setReplace(Boolean replace)
Specifies whether the specified permission should replace the existing permission associated with the resource
share. Use true
to replace the current permissions. Use false
to add the permission to
a resource share that currently doesn't have a permission. The default value is false
.
A resource share can have only one permission per resource type. If a resource share already has a permission for
the specified resource type and you don't set replace
to true
then the operation
returns an error. This helps prevent accidental overwriting of a permission.
replace
- Specifies whether the specified permission should replace the existing permission associated with the
resource share. Use true
to replace the current permissions. Use false
to add
the permission to a resource share that currently doesn't have a permission. The default value is
false
.
A resource share can have only one permission per resource type. If a resource share already has a
permission for the specified resource type and you don't set replace
to true
then the operation returns an error. This helps prevent accidental overwriting of a permission.
public Boolean getReplace()
Specifies whether the specified permission should replace the existing permission associated with the resource
share. Use true
to replace the current permissions. Use false
to add the permission to
a resource share that currently doesn't have a permission. The default value is false
.
A resource share can have only one permission per resource type. If a resource share already has a permission for
the specified resource type and you don't set replace
to true
then the operation
returns an error. This helps prevent accidental overwriting of a permission.
true
to replace the current permissions. Use false
to add
the permission to a resource share that currently doesn't have a permission. The default value is
false
.
A resource share can have only one permission per resource type. If a resource share already has a
permission for the specified resource type and you don't set replace
to true
then the operation returns an error. This helps prevent accidental overwriting of a permission.
public AssociateResourceSharePermissionRequest withReplace(Boolean replace)
Specifies whether the specified permission should replace the existing permission associated with the resource
share. Use true
to replace the current permissions. Use false
to add the permission to
a resource share that currently doesn't have a permission. The default value is false
.
A resource share can have only one permission per resource type. If a resource share already has a permission for
the specified resource type and you don't set replace
to true
then the operation
returns an error. This helps prevent accidental overwriting of a permission.
replace
- Specifies whether the specified permission should replace the existing permission associated with the
resource share. Use true
to replace the current permissions. Use false
to add
the permission to a resource share that currently doesn't have a permission. The default value is
false
.
A resource share can have only one permission per resource type. If a resource share already has a
permission for the specified resource type and you don't set replace
to true
then the operation returns an error. This helps prevent accidental overwriting of a permission.
public Boolean isReplace()
Specifies whether the specified permission should replace the existing permission associated with the resource
share. Use true
to replace the current permissions. Use false
to add the permission to
a resource share that currently doesn't have a permission. The default value is false
.
A resource share can have only one permission per resource type. If a resource share already has a permission for
the specified resource type and you don't set replace
to true
then the operation
returns an error. This helps prevent accidental overwriting of a permission.
true
to replace the current permissions. Use false
to add
the permission to a resource share that currently doesn't have a permission. The default value is
false
.
A resource share can have only one permission per resource type. If a resource share already has a
permission for the specified resource type and you don't set replace
to true
then the operation returns an error. This helps prevent accidental overwriting of a permission.
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 AssociateResourceSharePermissionRequest 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 void setPermissionVersion(Integer permissionVersion)
Specifies the version of the RAM permission to associate with the resource share. You can specify only the
version that is currently set as the default version for the permission. If you also set the replace
pararameter to true
, then this operation updates an outdated version of the permission to the
current default version.
You don't need to specify this parameter because the default behavior is to use the version that is currently set as the default version for the permission. This parameter is supported for backwards compatibility.
permissionVersion
- Specifies the version of the RAM permission to associate with the resource share. You can specify
only the version that is currently set as the default version for the permission. If you also set
the replace
pararameter to true
, then this operation updates an outdated version
of the permission to the current default version. You don't need to specify this parameter because the default behavior is to use the version that is currently set as the default version for the permission. This parameter is supported for backwards compatibility.
public Integer getPermissionVersion()
Specifies the version of the RAM permission to associate with the resource share. You can specify only the
version that is currently set as the default version for the permission. If you also set the replace
pararameter to true
, then this operation updates an outdated version of the permission to the
current default version.
You don't need to specify this parameter because the default behavior is to use the version that is currently set as the default version for the permission. This parameter is supported for backwards compatibility.
replace
pararameter to true
, then this operation updates an outdated
version of the permission to the current default version. You don't need to specify this parameter because the default behavior is to use the version that is currently set as the default version for the permission. This parameter is supported for backwards compatibility.
public AssociateResourceSharePermissionRequest withPermissionVersion(Integer permissionVersion)
Specifies the version of the RAM permission to associate with the resource share. You can specify only the
version that is currently set as the default version for the permission. If you also set the replace
pararameter to true
, then this operation updates an outdated version of the permission to the
current default version.
You don't need to specify this parameter because the default behavior is to use the version that is currently set as the default version for the permission. This parameter is supported for backwards compatibility.
permissionVersion
- Specifies the version of the RAM permission to associate with the resource share. You can specify
only the version that is currently set as the default version for the permission. If you also set
the replace
pararameter to true
, then this operation updates an outdated version
of the permission to the current default version. You don't need to specify this parameter because the default behavior is to use the version that is currently set as the default version for the permission. This parameter is supported for backwards compatibility.
public String toString()
toString
in class Object
Object.toString()
public AssociateResourceSharePermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()