@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetireGrantRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RetireGrantRequest() |
Modifier and Type | Method and Description |
---|---|
RetireGrantRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getDryRun()
Checks if your request will succeed.
|
String |
getGrantId()
Identifies the grant to retire.
|
String |
getGrantToken()
Identifies the grant to be retired.
|
String |
getKeyId()
The key ARN KMS key associated with the grant.
|
int |
hashCode() |
Boolean |
isDryRun()
Checks if your request will succeed.
|
void |
setDryRun(Boolean dryRun)
Checks if your request will succeed.
|
void |
setGrantId(String grantId)
Identifies the grant to retire.
|
void |
setGrantToken(String grantToken)
Identifies the grant to be retired.
|
void |
setKeyId(String keyId)
The key ARN KMS key associated with the grant.
|
String |
toString()
Returns a string representation of this object.
|
RetireGrantRequest |
withDryRun(Boolean dryRun)
Checks if your request will succeed.
|
RetireGrantRequest |
withGrantId(String grantId)
Identifies the grant to retire.
|
RetireGrantRequest |
withGrantToken(String grantToken)
Identifies the grant to be retired.
|
RetireGrantRequest |
withKeyId(String keyId)
The key ARN KMS key associated with the grant.
|
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 setGrantToken(String grantToken)
Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has achieved eventual consistency.
Only the CreateGrant operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
grantToken
- Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has
achieved eventual consistency.
Only the CreateGrant operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
public String getGrantToken()
Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has achieved eventual consistency.
Only the CreateGrant operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
Only the CreateGrant operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
public RetireGrantRequest withGrantToken(String grantToken)
Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has achieved eventual consistency.
Only the CreateGrant operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
grantToken
- Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has
achieved eventual consistency.
Only the CreateGrant operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
public void setKeyId(String keyId)
The key ARN KMS key associated with the grant. To find the key ARN, use the ListKeys operation.
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
keyId
- The key ARN KMS key associated with the grant. To find the key ARN, use the ListKeys operation.
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
public String getKeyId()
The key ARN KMS key associated with the grant. To find the key ARN, use the ListKeys operation.
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
public RetireGrantRequest withKeyId(String keyId)
The key ARN KMS key associated with the grant. To find the key ARN, use the ListKeys operation.
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
keyId
- The key ARN KMS key associated with the grant. To find the key ARN, use the ListKeys operation.
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
public void setGrantId(String grantId)
Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or ListRetirableGrants.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
grantId
- Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or
ListRetirableGrants.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
public String getGrantId()
Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or ListRetirableGrants.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
public RetireGrantRequest withGrantId(String grantId)
Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or ListRetirableGrants.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
grantId
- Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or
ListRetirableGrants.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
public void setDryRun(Boolean dryRun)
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
dryRun
- Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public Boolean getDryRun()
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public RetireGrantRequest withDryRun(Boolean dryRun)
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
dryRun
- Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public Boolean isDryRun()
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public RetireGrantRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()