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 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

      public static S3EmitterConfig load(String json) throws TikaConfigException
      Throws:
      TikaConfigException
    • validate

      public void validate() throws TikaConfigException
      Throws:
      TikaConfigException
    • normalizedPrefix

      public String normalizedPrefix()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • bucket

      public String bucket()
      Returns the value of the bucket record component.
      Returns:
      the value of the bucket record component
    • credentialsProvider

      public String credentialsProvider()
      Returns the value of the credentialsProvider record component.
      Returns:
      the value of the credentialsProvider record component
    • profile

      public String profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • accessKey

      public String accessKey()
      Returns the value of the accessKey record component.
      Returns:
      the value of the accessKey record component
    • secretKey

      public String secretKey()
      Returns the value of the secretKey record component.
      Returns:
      the value of the secretKey record component
    • endpointConfigurationService

      public String endpointConfigurationService()
      Returns the value of the endpointConfigurationService record component.
      Returns:
      the value of the endpointConfigurationService record component
    • prefix

      public String prefix()
      Returns the value of the prefix record component.
      Returns:
      the value of the prefix record component
    • fileExtension

      public String fileExtension()
      Returns the value of the fileExtension record component.
      Returns:
      the value of the fileExtension record component
    • spoolToTemp

      public Boolean spoolToTemp()
      Returns the value of the spoolToTemp record component.
      Returns:
      the value of the spoolToTemp record component
    • maxConnections

      public Integer maxConnections()
      Returns the value of the maxConnections record component.
      Returns:
      the value of the maxConnections record component
    • pathStyleAccessEnabled

      public boolean pathStyleAccessEnabled()
      Returns the value of the pathStyleAccessEnabled record component.
      Returns:
      the value of the pathStyleAccessEnabled record component