@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 Resoure
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 or add to the existing permission associated with the
resource share.
|
String |
getResourceShareArn()
Specifies the Amazon Resoure
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 or add to 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 Resoure
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 or add to the existing permission associated with the
resource share.
|
void |
setResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure
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 Resoure
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 or add to the existing permission associated with the
resource share.
|
AssociateResourceSharePermissionRequest |
withResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure
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 Resoure Name (ARN) of the resource share to which you want to add or replace permissions.
resourceShareArn
- Specifies the Amazon
Resoure Name (ARN) of the resource share to which you want to add or replace permissions.public String getResourceShareArn()
Specifies the Amazon Resoure Name (ARN) of the resource share to which you want to add or replace permissions.
public AssociateResourceSharePermissionRequest withResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure Name (ARN) of the resource share to which you want to add or replace permissions.
resourceShareArn
- Specifies the Amazon
Resoure Name (ARN) of the resource share to which you want to add or replace permissions.public void setPermissionArn(String permissionArn)
Specifies the Amazon Resoure 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
Resoure 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 Resoure 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 Resoure 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
Resoure 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 or add to the existing permission associated with the
resource share. Use true
to replace the current permissions. Use false
to add the
permission to the current 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 or add to the existing permission associated
with the resource share. Use true
to replace the current permissions. Use false
to add the permission to the current 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 or add to the existing permission associated with the
resource share. Use true
to replace the current permissions. Use false
to add the
permission to the current 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 the current 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 or add to the existing permission associated with the
resource share. Use true
to replace the current permissions. Use false
to add the
permission to the current 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 or add to the existing permission associated
with the resource share. Use true
to replace the current permissions. Use false
to add the permission to the current 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 or add to the existing permission associated with the
resource share. Use true
to replace the current permissions. Use false
to add the
permission to the current 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 the current 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.
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 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.
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 void setPermissionVersion(Integer permissionVersion)
Specifies the version of the RAM permission to associate with the resource share. If you don't specify this parameter, the operation uses the version designated as the default. You can use the ListPermissionVersions operation to discover the available versions of a permission.
permissionVersion
- Specifies the version of the RAM permission to associate with the resource share. If you don't specify
this parameter, the operation uses the version designated as the default. You can use the
ListPermissionVersions operation to discover the available versions of a permission.public Integer getPermissionVersion()
Specifies the version of the RAM permission to associate with the resource share. If you don't specify this parameter, the operation uses the version designated as the default. You can use the ListPermissionVersions operation to discover the available versions of a permission.
public AssociateResourceSharePermissionRequest withPermissionVersion(Integer permissionVersion)
Specifies the version of the RAM permission to associate with the resource share. If you don't specify this parameter, the operation uses the version designated as the default. You can use the ListPermissionVersions operation to discover the available versions of a permission.
permissionVersion
- Specifies the version of the RAM permission to associate with the resource share. If you don't specify
this parameter, the operation uses the version designated as the default. You can use the
ListPermissionVersions operation to discover the available versions of a permission.public String toString()
toString
in class Object
Object.toString()
public AssociateResourceSharePermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()