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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EncryptDataRequest.BuilderencryptionAttributes(Consumer<EncryptionDecryptionAttributes.Builder> encryptionAttributes)The encryption key type and attributes for plaintext encryption.EncryptDataRequest.BuilderencryptionAttributes(EncryptionDecryptionAttributes encryptionAttributes)The encryption key type and attributes for plaintext encryption.EncryptDataRequest.BuilderkeyIdentifier(String keyIdentifier)ThekeyARNof the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.EncryptDataRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)EncryptDataRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)EncryptDataRequest.BuilderplainText(String plainText)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 Detail
-
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.Builderavoiding the need to create one manually viaEncryptionDecryptionAttributes.builder().When the
Consumercompletes,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:
encryptionAttributes(EncryptionDecryptionAttributes)
-
keyIdentifier
EncryptDataRequest.Builder keyIdentifier(String keyIdentifier)
The
keyARNof the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.- Parameters:
keyIdentifier- ThekeyARNof 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
EncryptDataRequest.Builder plainText(String plainText)
The plaintext to be encrypted.
For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in
KeyAlgorithmand padding type that you define inAsymmetricEncryptionAttributes. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.- Parameters:
plainText- The plaintext to be encrypted.For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in
KeyAlgorithmand padding type that you define inAsymmetricEncryptionAttributes. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
EncryptDataRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
EncryptDataRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-