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 thecompletionWindowrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputFileIdrecord component.metadata()Returns the value of themetadatarecord component.static CreateBatchRequest.Builderfinal StringtoString()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 aCreateBatchRequestrecord class.- Parameters:
inputFileId- the value for theinputFileIdrecord componentendpoint- the value for theendpointrecord componentcompletionWindow- the value for thecompletionWindowrecord componentmetadata- the value for themetadatarecord 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 theinputFileIdrecord component.- Returns:
- the value of the
inputFileIdrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
completionWindow
Returns the value of thecompletionWindowrecord component.- Returns:
- the value of the
completionWindowrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-