Package org.apache.tika.pipes.emitter.s3
Record Class S3EmitterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.s3.S3EmitterConfig
public record S3EmitterConfig(String region, String bucket, String credentialsProvider, String profile, String accessKey, String secretKey, String endpointConfigurationService, String prefix, String fileExtension, Boolean spoolToTemp, Integer maxConnections, boolean pathStyleAccessEnabled)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionS3EmitterConfig(String region, String bucket, String credentialsProvider, String profile, String accessKey, String secretKey, String endpointConfigurationService, String prefix, String fileExtension, Boolean spoolToTemp, Integer maxConnections, boolean pathStyleAccessEnabled) Boxed so an absent value is distinguishable from an explicit one. maxConnections in particular reaches ApacheHttpClient, which rejects zero. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessKeyrecord component.bucket()Returns the value of thebucketrecord component.Returns the value of thecredentialsProviderrecord component.Returns the value of theendpointConfigurationServicerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileExtensionrecord component.final inthashCode()Returns a hash code value for this object.static S3EmitterConfigReturns the value of themaxConnectionsrecord component.booleanReturns the value of thepathStyleAccessEnabledrecord component.prefix()Returns the value of theprefixrecord component.profile()Returns the value of theprofilerecord component.region()Returns the value of theregionrecord component.Returns the value of thesecretKeyrecord component.Returns the value of thespoolToTemprecord component.final StringtoString()Returns a string representation of this record class.voidvalidate()
-
Constructor Details
-
S3EmitterConfig
public S3EmitterConfig(String region, String bucket, String credentialsProvider, String profile, String accessKey, String secretKey, String endpointConfigurationService, String prefix, String fileExtension, Boolean spoolToTemp, Integer maxConnections, boolean pathStyleAccessEnabled) Boxed so an absent value is distinguishable from an explicit one. maxConnections in particular reaches ApacheHttpClient, which rejects zero.
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
validate
- Throws:
TikaConfigException
-
normalizedPrefix
-
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 '=='. -
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
bucket
Returns the value of thebucketrecord component.- Returns:
- the value of the
bucketrecord component
-
credentialsProvider
Returns the value of thecredentialsProviderrecord component.- Returns:
- the value of the
credentialsProviderrecord component
-
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
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
-
endpointConfigurationService
Returns the value of theendpointConfigurationServicerecord component.- Returns:
- the value of the
endpointConfigurationServicerecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
fileExtension
Returns the value of thefileExtensionrecord component.- Returns:
- the value of the
fileExtensionrecord component
-
spoolToTemp
Returns the value of thespoolToTemprecord component.- Returns:
- the value of the
spoolToTemprecord component
-
maxConnections
Returns the value of themaxConnectionsrecord component.- Returns:
- the value of the
maxConnectionsrecord component
-
pathStyleAccessEnabled
public boolean pathStyleAccessEnabled()Returns the value of thepathStyleAccessEnabledrecord component.- Returns:
- the value of the
pathStyleAccessEnabledrecord component
-