Record Class CreateBatchRequest
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.CreateBatchRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompletionWindow
record component.endpoint()
Returns the value of theendpoint
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.Returns the value of theinputFileId
record component.metadata()
Returns the value of themetadata
record component.static CreateBatchRequest.Builder
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CreateBatchRequest
public CreateBatchRequest(String inputFileId, String endpoint, String completionWindow, Optional<Map<String, String>> metadata) Creates an instance of aCreateBatchRequest
record class.- Parameters:
inputFileId
- the value for theinputFileId
record componentendpoint
- the value for theendpoint
record componentcompletionWindow
- the value for thecompletionWindow
record componentmetadata
- the value for themetadata
record component
-
-
Method Details
-
newBuilder
-
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)
. -
inputFileId
Returns the value of theinputFileId
record component.- Returns:
- the value of the
inputFileId
record component
-
endpoint
Returns the value of theendpoint
record component.- Returns:
- the value of the
endpoint
record component
-
completionWindow
Returns the value of thecompletionWindow
record component.- Returns:
- the value of the
completionWindow
record component
-
metadata
Returns the value of themetadata
record component.- Returns:
- the value of the
metadata
record component
-