Package org.togglz.s3
Class S3StateRepository.Builder
java.lang.Object
org.togglz.s3.S3StateRepository.Builder
- Enclosing class:
- S3StateRepository
Builder for a
S3StateRepository.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newS3StateRepositoryusing the current settings.Optional prefixes to prepend on to each keysseCustomerAlgorithm(String sseCustomerAlgorithm) Specifies the algorithm to use to when encrypting the object (for example, AES256).sseCustomerKey(String sseCustomerKey) Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data.sseCustomerKeyMD5(String sseCustomerKeyMD5) Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
-
Constructor Details
-
Builder
Creates a new builder for aS3StateRepository.- Parameters:
client- the client instance to use for connecting to amazon s3bucketName- The name of the bucket to use
-
-
Method Details
-
prefix
Optional prefixes to prepend on to each key- Parameters:
keyPrefix- The prefix to use- Returns:
- this
-
sseCustomerAlgorithm
Specifies the algorithm to use to when encrypting the object (for example, AES256).- Parameters:
sseCustomerAlgorithm- – Specifies the algorithm to use to when encrypting the object (for example, AES256).- Returns:
- this
-
sseCustomerKey
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data.- Parameters:
sseCustomerKey- – Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data.- Returns:
- this
-
sseCustomerKeyMD5
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.- Parameters:
sseCustomerKeyMD5- – Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.- Returns:
- this
-
build
Creates a newS3StateRepositoryusing the current settings.
-