Interface EncryptDataRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<EncryptDataRequest.Builder,,- EncryptDataRequest> - PaymentCryptographyDataRequest.Builder,- SdkBuilder<EncryptDataRequest.Builder,,- EncryptDataRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- EncryptDataRequest
- 
Method SummaryModifier and TypeMethodDescriptiondefault EncryptDataRequest.BuilderencryptionAttributes(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) ThekeyARNof 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.default EncryptDataRequest.BuilderwrappedKey(Consumer<WrappedKey.Builder> wrappedKey) The WrappedKeyBlock containing the encryption key for plaintext encryption.wrappedKey(WrappedKey wrappedKey) The WrappedKeyBlock containing the encryption key for plaintext encryption.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.paymentcryptographydata.model.PaymentCryptographyDataRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
keyIdentifierThe keyARNof the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation. - Parameters:
- keyIdentifier- The- keyARNof the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.- When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
plainTextThe 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 in- AsymmetricEncryptionAttributes. 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.
 
- 
encryptionAttributesEncryptDataRequest.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.
 
- 
encryptionAttributesdefault 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 on- EncryptionDecryptionAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
wrappedKeyThe WrappedKeyBlock containing the encryption key for plaintext encryption. - Parameters:
- wrappedKey- The WrappedKeyBlock containing the encryption key for plaintext encryption.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
wrappedKeyThe WrappedKeyBlock containing the encryption key for plaintext encryption. This is a convenience method that creates an instance of theWrappedKey.Builderavoiding the need to create one manually viaWrappedKey.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towrappedKey(WrappedKey).- Parameters:
- wrappedKey- a consumer that will call methods on- WrappedKey.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
overrideConfigurationEncryptDataRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationEncryptDataRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-