Record Class Batch
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.Batch
public record Batch(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String,String> metadata)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionBatch
(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String, String> metadata) Creates an instance of aBatch
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelledAt
record component.Returns the value of thecancellingAt
record component.Returns the value of thecompletedAt
record component.Returns the value of thecompletionWindow
record component.long
Returns the value of thecreatedAt
record component.endpoint()
Returns the value of theendpoint
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorFileId
record component.errors()
Returns the value of theerrors
record component.Returns the value of theexpiredAt
record component.Returns the value of theexpiresAt
record component.failedAt()
Returns the value of thefailedAt
record component.Returns the value of thefinalizingAt
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of theinProgressAt
record component.Returns the value of theinputFileId
record component.metadata()
Returns the value of themetadata
record component.Returns the value of theoutputFileId
record component.Returns the value of therequestCounts
record component.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Batch
public Batch(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String, String> metadata) Creates an instance of aBatch
record class.- Parameters:
id
- the value for theid
record componentendpoint
- the value for theendpoint
record componenterrors
- the value for theerrors
record componentinputFileId
- the value for theinputFileId
record componentcompletionWindow
- the value for thecompletionWindow
record componentstatus
- the value for thestatus
record componentoutputFileId
- the value for theoutputFileId
record componenterrorFileId
- the value for theerrorFileId
record componentcreatedAt
- the value for thecreatedAt
record componentinProgressAt
- the value for theinProgressAt
record componentexpiresAt
- the value for theexpiresAt
record componentfinalizingAt
- the value for thefinalizingAt
record componentcompletedAt
- the value for thecompletedAt
record componentfailedAt
- the value for thefailedAt
record componentexpiredAt
- the value for theexpiredAt
record componentcancellingAt
- the value for thecancellingAt
record componentcancelledAt
- the value for thecancelledAt
record componentrequestCounts
- the value for therequestCounts
record componentmetadata
- the value for themetadata
record component
-
-
Method Details
-
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 '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
endpoint
Returns the value of theendpoint
record component.- Returns:
- the value of the
endpoint
record component
-
errors
Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-
inputFileId
Returns the value of theinputFileId
record component.- Returns:
- the value of the
inputFileId
record component
-
completionWindow
Returns the value of thecompletionWindow
record component.- Returns:
- the value of the
completionWindow
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
outputFileId
Returns the value of theoutputFileId
record component.- Returns:
- the value of the
outputFileId
record component
-
errorFileId
Returns the value of theerrorFileId
record component.- Returns:
- the value of the
errorFileId
record component
-
createdAt
public long createdAt()Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
inProgressAt
Returns the value of theinProgressAt
record component.- Returns:
- the value of the
inProgressAt
record component
-
expiresAt
Returns the value of theexpiresAt
record component.- Returns:
- the value of the
expiresAt
record component
-
finalizingAt
Returns the value of thefinalizingAt
record component.- Returns:
- the value of the
finalizingAt
record component
-
completedAt
Returns the value of thecompletedAt
record component.- Returns:
- the value of the
completedAt
record component
-
failedAt
Returns the value of thefailedAt
record component.- Returns:
- the value of the
failedAt
record component
-
expiredAt
Returns the value of theexpiredAt
record component.- Returns:
- the value of the
expiredAt
record component
-
cancellingAt
Returns the value of thecancellingAt
record component.- Returns:
- the value of the
cancellingAt
record component
-
cancelledAt
Returns the value of thecancelledAt
record component.- Returns:
- the value of the
cancelledAt
record component
-
requestCounts
Returns the value of therequestCounts
record component.- Returns:
- the value of the
requestCounts
record component
-
metadata
Returns the value of themetadata
record component.- Returns:
- the value of the
metadata
record component
-