Record Class MainS3Configuration
java.lang.Object
java.lang.Record
ch.tocco.nice2.persist.s3storage.impl.config.MainS3Configuration
@ConfigurationProperties(prefix="s3.main")
public record MainS3Configuration(String endpoint, String bucketName, @Nullable String accessKeyId, @Nullable String secretAccessKey)
extends Record
Bean that contains all necessary configuration data to connect a S3 bucket.
-
Constructor Summary
ConstructorsConstructorDescriptionMainS3Configuration
(String endpoint, String bucketName, @Nullable String accessKeyId, @Nullable String secretAccessKey) Creates an instance of aMainS3Configuration
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the value of theaccessKeyId
record component.Returns the value of thebucketName
record component.endpoint()
Returns the value of theendpoint
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable String
Returns the value of thesecretAccessKey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MainS3Configuration
public MainS3Configuration(String endpoint, String bucketName, @Nullable @Nullable String accessKeyId, @Nullable @Nullable String secretAccessKey) Creates an instance of aMainS3Configuration
record class.- Parameters:
endpoint
- the value for theendpoint
record componentbucketName
- the value for thebucketName
record componentaccessKeyId
- the value for theaccessKeyId
record componentsecretAccessKey
- the value for thesecretAccessKey
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
endpoint
Returns the value of theendpoint
record component.- Returns:
- the value of the
endpoint
record component
-
bucketName
Returns the value of thebucketName
record component.- Returns:
- the value of the
bucketName
record component
-
accessKeyId
Returns the value of theaccessKeyId
record component.- Returns:
- the value of the
accessKeyId
record component
-
secretAccessKey
Returns the value of thesecretAccessKey
record component.- Returns:
- the value of the
secretAccessKey
record component
-