Interface EncryptDataRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<EncryptDataRequest.Builder,
,EncryptDataRequest> PaymentCryptographyDataRequest.Builder
,SdkBuilder<EncryptDataRequest.Builder,
,EncryptDataRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
EncryptDataRequest
public static interface EncryptDataRequest.Builder
extends PaymentCryptographyDataRequest.Builder, SdkPojo, CopyableBuilder<EncryptDataRequest.Builder,EncryptDataRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EncryptDataRequest.Builder
encryptionAttributes
(Consumer<EncryptionDecryptionAttributes.Builder> encryptionAttributes) The encryption key type and attributes for plaintext encryption.encryptionAttributes
(EncryptionDecryptionAttributes encryptionAttributes) The encryption key type and attributes for plaintext encryption.keyIdentifier
(String keyIdentifier) ThekeyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The plaintext to be encrypted.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.paymentcryptographydata.model.PaymentCryptographyDataRequest.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 Details
-
encryptionAttributes
EncryptDataRequest.Builder encryptionAttributes(EncryptionDecryptionAttributes encryptionAttributes) The encryption key type and attributes for plaintext encryption.
- Parameters:
encryptionAttributes
- The encryption key type and attributes for plaintext encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionAttributes
default EncryptDataRequest.Builder encryptionAttributes(Consumer<EncryptionDecryptionAttributes.Builder> encryptionAttributes) The encryption key type and attributes for plaintext encryption.
This is a convenience method that creates an instance of theEncryptionDecryptionAttributes.Builder
avoiding the need to create one manually viaEncryptionDecryptionAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toencryptionAttributes(EncryptionDecryptionAttributes)
.- Parameters:
encryptionAttributes
- a consumer that will call methods onEncryptionDecryptionAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyIdentifier
The
keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.- Parameters:
keyIdentifier
- ThekeyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
plainText
The plaintext to be encrypted.
- Parameters:
plainText
- The plaintext to be encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
EncryptDataRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
EncryptDataRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-