Interface RetireGrantRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RetireGrantRequest.Builder,RetireGrantRequest>
,KmsRequest.Builder
,SdkBuilder<RetireGrantRequest.Builder,RetireGrantRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- RetireGrantRequest
public static interface RetireGrantRequest.Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<RetireGrantRequest.Builder,RetireGrantRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RetireGrantRequest.Builder
dryRun(Boolean dryRun)
Checks if your request will succeed.RetireGrantRequest.Builder
grantId(String grantId)
Identifies the grant to retire.RetireGrantRequest.Builder
grantToken(String grantToken)
Identifies the grant to be retired.RetireGrantRequest.Builder
keyId(String keyId)
The key ARN KMS key associated with the grant.RetireGrantRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
RetireGrantRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kms.model.KmsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
grantToken
RetireGrantRequest.Builder grantToken(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyId
RetireGrantRequest.Builder keyId(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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantId
RetireGrantRequest.Builder grantId(String grantId)
Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or ListRetirableGrants.
-
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
- Parameters:
grantId
- Identifies the grant to retire. To get the grant ID, use CreateGrant, ListGrants, or ListRetirableGrants.-
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
dryRun
RetireGrantRequest.Builder dryRun(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RetireGrantRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
RetireGrantRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-