Record Class AZBlobEmitterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.azblob.AZBlobEmitterConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileExtensionrecord component.Get the prefix, stripping any trailing slash.final inthashCode()Returns a hash code value for this object.static AZBlobEmitterConfigbooleanReturns the value of theoverwriteExistingrecord component.prefix()Returns the value of theprefixrecord component.sasToken()Returns the value of thesasTokenrecord component.final StringtoString()Returns a string representation of this record class.voidvalidate()
-
Constructor Details
-
AZBlobEmitterConfig
public AZBlobEmitterConfig(String sasToken, String endpoint, String container, String prefix, String fileExtension, boolean overwriteExisting) Creates an instance of aAZBlobEmitterConfigrecord class.- Parameters:
sasToken- the value for thesasTokenrecord componentendpoint- the value for theendpointrecord componentcontainer- the value for thecontainerrecord componentprefix- the value for theprefixrecord componentfileExtension- the value for thefileExtensionrecord componentoverwriteExisting- the value for theoverwriteExistingrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
validate
- Throws:
TikaConfigException
-
getNormalizedPrefix
Get the prefix, stripping any trailing slash. -
getFileExtensionOrDefault
-
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 '=='. -
sasToken
Returns the value of thesasTokenrecord component.- Returns:
- the value of the
sasTokenrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
container
Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord 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
-
overwriteExisting
public boolean overwriteExisting()Returns the value of theoverwriteExistingrecord component.- Returns:
- the value of the
overwriteExistingrecord component
-