Interface KmsGrantConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KmsGrantConfiguration.Builder,
,KmsGrantConfiguration> SdkBuilder<KmsGrantConfiguration.Builder,
,KmsGrantConfiguration> SdkPojo
- Enclosing class:
KmsGrantConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault KmsGrantConfiguration.Builder
constraints
(Consumer<KmsGrantConstraints.Builder> constraints) Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.constraints
(KmsGrantConstraints constraints) Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.granteePrincipal
(String granteePrincipal) The principal that is given permission to perform the operations that the grant permits.issuingAccount
(String issuingAccount) The Amazon Web Services account under which the grant was issued.operations
(Collection<KmsGrantOperation> operations) A list of operations that the grant permits.operations
(KmsGrantOperation... operations) A list of operations that the grant permits.operationsWithStrings
(String... operations) A list of operations that the grant permits.operationsWithStrings
(Collection<String> operations) A list of operations that the grant permits.retiringPrincipal
(String retiringPrincipal) The principal that is given permission to retire the grant by using RetireGrant operation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
operationsWithStrings
A list of operations that the grant permits.
- Parameters:
operations
- A list of operations that the grant permits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operationsWithStrings
A list of operations that the grant permits.
- Parameters:
operations
- A list of operations that the grant permits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operations
A list of operations that the grant permits.
- Parameters:
operations
- A list of operations that the grant permits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operations
A list of operations that the grant permits.
- Parameters:
operations
- A list of operations that the grant permits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
granteePrincipal
The principal that is given permission to perform the operations that the grant permits.
- Parameters:
granteePrincipal
- The principal that is given permission to perform the operations that the grant permits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retiringPrincipal
The principal that is given permission to retire the grant by using RetireGrant operation.
- Parameters:
retiringPrincipal
- The principal that is given permission to retire the grant by using RetireGrant operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraints
Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.
- Parameters:
constraints
- Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraints
default KmsGrantConfiguration.Builder constraints(Consumer<KmsGrantConstraints.Builder> constraints) Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.
This is a convenience method that creates an instance of theKmsGrantConstraints.Builder
avoiding the need to create one manually viaKmsGrantConstraints.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconstraints(KmsGrantConstraints)
.- Parameters:
constraints
- a consumer that will call methods onKmsGrantConstraints.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
issuingAccount
The Amazon Web Services account under which the grant was issued. The account is used to propose KMS grants issued by accounts other than the owner of the key.
- Parameters:
issuingAccount
- The Amazon Web Services account under which the grant was issued. The account is used to propose KMS grants issued by accounts other than the owner of the key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-