Record Class TextExtractionRequest.TextExtractionDataReference
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.watsonx.bean.TextExtractionRequest.TextExtractionDataReference
- Enclosing class:
TextExtractionRequest
public static record TextExtractionRequest.TextExtractionDataReference(String type, TextExtractionRequest.CosDataConnection connection, TextExtractionRequest.CosDataLocation location)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextExtractionDataReference
(String type, TextExtractionRequest.CosDataConnection connection, TextExtractionRequest.CosDataLocation location) Creates an instance of aTextExtractionDataReference
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnection
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.location()
Returns the value of thelocation
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
TextExtractionDataReference
public TextExtractionDataReference(String type, TextExtractionRequest.CosDataConnection connection, TextExtractionRequest.CosDataLocation location) Creates an instance of aTextExtractionDataReference
record class.- Parameters:
type
- the value for thetype
record componentconnection
- the value for theconnection
record componentlocation
- the value for thelocation
record component
-
-
Method Details
-
of
public static TextExtractionRequest.TextExtractionDataReference of(String connectionId, String fileName) -
of
public static TextExtractionRequest.TextExtractionDataReference of(String connectionId, String fileName, String bucket) -
toString
-
hashCode
-
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)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
connection
Returns the value of theconnection
record component.- Returns:
- the value of the
connection
record component
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-