Package ch.so.agi.gretl.internal.s3
Record Class S3ConnectionSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.s3.S3ConnectionSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessKeyrecord 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.region()Returns the value of theregionrecord component.Returns the value of thesecretKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
S3ConnectionSpec
public S3ConnectionSpec(String accessKey, String secretKey, String bucketName, String endpoint, String region) Creates an instance of aS3ConnectionSpecrecord class.- Parameters:
accessKey- the value for theaccessKeyrecord componentsecretKey- the value for thesecretKeyrecord componentbucketName- the value for thebucketNamerecord componentendpoint- the value for theendpointrecord componentregion- the value for theregionrecord 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). -
accessKey
Returns the value of theaccessKeyrecord component.- Returns:
- the value of the
accessKeyrecord component
-
secretKey
Returns the value of thesecretKeyrecord component.- Returns:
- the value of the
secretKeyrecord component
-
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
-