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 aMainS3Configurationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theaccessKeyIdrecord component.Returns the value of thebucketNamerecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thesecretAccessKeyrecord component.final StringtoString()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 aMainS3Configurationrecord class.- Parameters:
endpoint- the value for theendpointrecord componentbucketName- the value for thebucketNamerecord componentaccessKeyId- the value for theaccessKeyIdrecord componentsecretAccessKey- the value for thesecretAccessKeyrecord 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 theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
bucketName
Returns the value of thebucketNamerecord component.- Returns:
- the value of the
bucketNamerecord component
-
accessKeyId
Returns the value of theaccessKeyIdrecord component.- Returns:
- the value of the
accessKeyIdrecord component
-
secretAccessKey
Returns the value of thesecretAccessKeyrecord component.- Returns:
- the value of the
secretAccessKeyrecord component
-