@Generated(value="software.amazon.awssdk:codegen") public 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 |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
String |
grantId()
Unique identifier of the grant to retire.
|
String |
grantToken()
Token that identifies the grant to be retired.
|
int |
hashCode() |
String |
keyId()
The Amazon Resource Name (ARN) of the CMK associated with the grant.
|
static Class<? extends RetireGrantRequest.Builder> |
serializableBuilderClass() |
RetireGrantRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String grantToken()
Token that identifies the grant to be retired.
public String keyId()
The Amazon Resource Name (ARN) of the CMK associated with the grant.
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 String grantId()
Unique identifier of the grant to retire. The grant ID is returned in the response to a CreateGrant
operation.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
CreateGrant
operation.
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
public RetireGrantRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RetireGrantRequest.Builder,RetireGrantRequest>
toBuilder
in class KMSRequest
public static RetireGrantRequest.Builder builder()
public static Class<? extends RetireGrantRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.