Class ReEncryptInstructionFileRequest.Builder
- java.lang.Object
- 
- software.amazon.encryption.s3.internal.ReEncryptInstructionFileRequest.Builder
 
- 
- Enclosing class:
- ReEncryptInstructionFileRequest
 
 public static class ReEncryptInstructionFileRequest.Builder extends Object Builder for ReEncryptInstructionFileRequest.
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ReEncryptInstructionFileRequest.Builderbucket(String bucket)Sets the S3 bucket name for the re-encryption of instruction file.ReEncryptInstructionFileRequestbuild()Validates and builds the ReEncryptInstructionFileRequest according to the configuration options passed to the Builder object.ReEncryptInstructionFileRequest.BuilderenforceRotation(boolean enforceRotation)Sets whether to enforce rotation for the re-encrypted instruction file.ReEncryptInstructionFileRequest.BuilderinstructionFileSuffix(String instructionFileSuffix)Sets a custom instruction file suffix for the re-encrypted instruction file.ReEncryptInstructionFileRequest.Builderkey(String key)Sets the S3 object key for the re-encryption of instruction file.ReEncryptInstructionFileRequest.BuildernewKeyring(RawKeyring newKeyring)Sets the new keyring for re-encryption of instruction file.
 
- 
- 
- 
Method Detail- 
bucketpublic ReEncryptInstructionFileRequest.Builder bucket(String bucket) Sets the S3 bucket name for the re-encryption of instruction file.- Parameters:
- bucket- the S3 bucket name
- Returns:
- a reference to this object so that method calls can be chained together.
 
 - 
keypublic ReEncryptInstructionFileRequest.Builder key(String key) Sets the S3 object key for the re-encryption of instruction file.- Parameters:
- key- the S3 object key
- Returns:
- a reference to this object so that method calls can be chained together.
 
 - 
newKeyringpublic ReEncryptInstructionFileRequest.Builder newKeyring(RawKeyring newKeyring) Sets the new keyring for re-encryption of instruction file.- Parameters:
- newKeyring- the new keyring for re-encryption
- Returns:
- a reference to this object so that method calls can be chained together.
 
 - 
instructionFileSuffixpublic ReEncryptInstructionFileRequest.Builder instructionFileSuffix(String instructionFileSuffix) Sets a custom instruction file suffix for the re-encrypted instruction file. For AES keyrings, only the default instruction file suffix is allowed. For RSA keyrings, both the default and custom instruction file suffixes are allowed. Note: The "." prefix is automatically added to the suffix- Parameters:
- instructionFileSuffix- the instruction file suffix
- Returns:
- a reference to this object so that method calls can be chained together.
 
 - 
enforceRotationpublic ReEncryptInstructionFileRequest.Builder enforceRotation(boolean enforceRotation) Sets whether to enforce rotation for the re-encrypted instruction file. When enabled, the client will attempt to decrypt the re-encrypted instruction file with the old key material and throw an exception when decryption succeeds. This is a stronger level of validation that the wrapping key has been rotated than the standard assertion that the materials descriptions are different.- Parameters:
- enforceRotation- whether to enforce rotation
- Returns:
- a reference to this object so that method calls can be chained together.
 
 - 
buildpublic ReEncryptInstructionFileRequest build() Validates and builds the ReEncryptInstructionFileRequest according to the configuration options passed to the Builder object.- Returns:
- an instance of the ReEncryptInstructionFileRequest
 
 
- 
 
-