@Generated(value="software.amazon.awssdk:codegen") public final class CreateGrantResponse extends KmsResponse implements ToCopyableBuilder<CreateGrantResponse.Builder,CreateGrantResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateGrantResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateGrantResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
grantId()
The unique identifier for the grant.
|
String |
grantToken()
The grant token.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateGrantResponse.Builder> |
serializableBuilderClass() |
CreateGrantResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String grantToken()
The grant token.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
public final String grantId()
The unique identifier for the grant.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant operation.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant
operation.
public CreateGrantResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CreateGrantResponse.Builder,CreateGrantResponse>
toBuilder
in class AwsResponse
public static CreateGrantResponse.Builder builder()
public static Class<? extends CreateGrantResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsResponse
public final boolean equals(Object obj)
equals
in class AwsResponse
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2022. All rights reserved.