Package org.togglz.s3

Class S3StateRepository.Builder

java.lang.Object
org.togglz.s3.S3StateRepository.Builder
Enclosing class:
S3StateRepository

public static class S3StateRepository.Builder extends Object
Builder for a S3StateRepository.
  • Constructor Details

    • Builder

      public Builder(software.amazon.awssdk.services.s3.S3Client client, String bucketName)
      Creates a new builder for a S3StateRepository.
      Parameters:
      client - the client instance to use for connecting to amazon s3
      bucketName - The name of the bucket to use
  • Method Details

    • prefix

      public S3StateRepository.Builder prefix(String keyPrefix)
      Optional prefixes to prepend on to each key
      Parameters:
      keyPrefix - The prefix to use
      Returns:
      this
    • sseCustomerAlgorithm

      public S3StateRepository.Builder sseCustomerAlgorithm(String 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

      public S3StateRepository.Builder sseCustomerKey(String 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

      public S3StateRepository.Builder sseCustomerKeyMD5(String 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

      public S3StateRepository build()
      Creates a new S3StateRepository using the current settings.