Package io.camunda.zeebe.backup.s3
Record Class S3BackupConfig
java.lang.Object
java.lang.Record
io.camunda.zeebe.backup.s3.S3BackupConfig
- Record Components:
bucketName- Name of the bucket that will be used for storing backups.endpoint- URL for the S3 endpoint to connect to.region- Name of the S3 region to use, will be parsed byRegion.of(String). If no value is provided, the AWS SDK will try to discover an appropriate value from the environment.credentials- If no value is provided, the AWS SDK will try to discover appropriate values from the environment.apiCallTimeout- Used as the overall api call timeout for the AWS SDK. API calls that exceed the timeout may fail and result in failed backups.forcePathStyleAccess- Forces the AWS SDK to always use paths for accessing the bucket. Off by default, which allows the AWS SDK to choose virtual-hosted-style bucket access.compressionAlgorithm- Algorithm to use (if any) for compressing backup contents.basePath- Prefix to use for all objects in this bucket. Must be non-empty and not start or end with '/'.
public record S3BackupConfig(String bucketName, Optional<String> endpoint, Optional<String> region, Optional<io.camunda.zeebe.backup.s3.S3BackupConfig.Credentials> credentials, Optional<Duration> apiCallTimeout, boolean forcePathStyleAccess, Optional<String> compressionAlgorithm, Optional<String> basePath)
extends Record
Holds configuration for the
S3 Backup Store.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionS3BackupConfig(String bucketName, Optional<String> endpoint, Optional<String> region, Optional<io.camunda.zeebe.backup.s3.S3BackupConfig.Credentials> credentials, Optional<Duration> apiCallTimeout, boolean forcePathStyleAccess, Optional<String> compressionAlgorithm, Optional<String> basePath) Creates an instance of aS3BackupConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiCallTimeoutrecord component.basePath()Returns the value of thebasePathrecord component.Returns the value of thebucketNamerecord component.Returns the value of thecompressionAlgorithmrecord component.Optional<io.camunda.zeebe.backup.s3.S3BackupConfig.Credentials>Returns the value of thecredentialsrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforcePathStyleAccessrecord component.final inthashCode()Returns a hash code value for this object.region()Returns the value of theregionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
S3BackupConfig
public S3BackupConfig(String bucketName, Optional<String> endpoint, Optional<String> region, Optional<io.camunda.zeebe.backup.s3.S3BackupConfig.Credentials> credentials, Optional<Duration> apiCallTimeout, boolean forcePathStyleAccess, Optional<String> compressionAlgorithm, Optional<String> basePath) Creates an instance of aS3BackupConfigrecord class.- Parameters:
bucketName- the value for thebucketNamerecord componentendpoint- the value for theendpointrecord componentregion- the value for theregionrecord componentcredentials- the value for thecredentialsrecord componentapiCallTimeout- the value for theapiCallTimeoutrecord componentforcePathStyleAccess- the value for theforcePathStyleAccessrecord componentcompressionAlgorithm- the value for thecompressionAlgorithmrecord componentbasePath- the value for thebasePathrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
bucketName
Returns the value of thebucketNamerecord component.- Returns:
- the value of the
bucketNamerecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
credentials
Returns the value of thecredentialsrecord component.- Returns:
- the value of the
credentialsrecord component
-
apiCallTimeout
Returns the value of theapiCallTimeoutrecord component.- Returns:
- the value of the
apiCallTimeoutrecord component
-
forcePathStyleAccess
public boolean forcePathStyleAccess()Returns the value of theforcePathStyleAccessrecord component.- Returns:
- the value of the
forcePathStyleAccessrecord component
-
compressionAlgorithm
Returns the value of thecompressionAlgorithmrecord component.- Returns:
- the value of the
compressionAlgorithmrecord component
-
basePath
Returns the value of thebasePathrecord component.- Returns:
- the value of the
basePathrecord component
-