@Generated(value="software.amazon.awssdk:codegen") public final class RetireGrantRequest extends KmsRequest implements ToCopyableBuilder<RetireGrantRequest.Builder,RetireGrantRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetireGrantRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RetireGrantRequest.Builder |
builder() |
Boolean |
dryRun()
Checks if your request will succeed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
grantId()
Identifies the grant to retire.
|
String |
grantToken()
Identifies the grant to be retired.
|
int |
hashCode() |
String |
keyId()
The key ARN KMS key associated with the grant.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RetireGrantRequest.Builder> |
serializableBuilderClass() |
RetireGrantRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
Only the CreateGrant operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
public final 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
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
public final String grantId()
Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or ListRetirableGrants.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
public final 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 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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RetireGrantRequest.Builder,RetireGrantRequest>toBuilder in class KmsRequestpublic static RetireGrantRequest.Builder builder()
public static Class<? extends RetireGrantRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.