Class Batch.Builder
-
- All Implemented Interfaces:
public final class Batch.Builder
-
-
Constructor Summary
Constructors Constructor Description Batch.Builder()
-
Method Summary
Modifier and Type Method Description final Batch.Builderid(String id)final Batch.Builderid(JsonField<String> id)final Batch.BuildercompletionWindow(String completionWindow)The time frame within which the batch should be processed. final Batch.BuildercompletionWindow(JsonField<String> completionWindow)The time frame within which the batch should be processed. final Batch.BuildercreatedAt(Long createdAt)The Unix timestamp (in seconds) for when the batch was created. final Batch.BuildercreatedAt(JsonField<Long> createdAt)The Unix timestamp (in seconds) for when the batch was created. final Batch.Builderendpoint(String endpoint)The OpenAI API endpoint used by the batch. final Batch.Builderendpoint(JsonField<String> endpoint)The OpenAI API endpoint used by the batch. final Batch.BuilderinputFileId(String inputFileId)The ID of the input file for the batch. final Batch.BuilderinputFileId(JsonField<String> inputFileId)The ID of the input file for the batch. final Batch.Builderobject_(JsonValue object_)The object type, which is always batch.final Batch.Builderstatus(Batch.Status status)The current status of the batch. final Batch.Builderstatus(JsonField<Batch.Status> status)The current status of the batch. final Batch.BuildercancelledAt(Long cancelledAt)The Unix timestamp (in seconds) for when the batch was cancelled. final Batch.BuildercancelledAt(JsonField<Long> cancelledAt)The Unix timestamp (in seconds) for when the batch was cancelled. final Batch.BuildercancellingAt(Long cancellingAt)The Unix timestamp (in seconds) for when the batch started cancelling. final Batch.BuildercancellingAt(JsonField<Long> cancellingAt)The Unix timestamp (in seconds) for when the batch started cancelling. final Batch.BuildercompletedAt(Long completedAt)The Unix timestamp (in seconds) for when the batch was completed. final Batch.BuildercompletedAt(JsonField<Long> completedAt)The Unix timestamp (in seconds) for when the batch was completed. final Batch.BuildererrorFileId(String errorFileId)The ID of the file containing the outputs of requests with errors. final Batch.BuildererrorFileId(JsonField<String> errorFileId)The ID of the file containing the outputs of requests with errors. final Batch.Buildererrors(Batch.Errors errors)final Batch.Buildererrors(JsonField<Batch.Errors> errors)final Batch.BuilderexpiredAt(Long expiredAt)The Unix timestamp (in seconds) for when the batch expired. final Batch.BuilderexpiredAt(JsonField<Long> expiredAt)The Unix timestamp (in seconds) for when the batch expired. final Batch.BuilderexpiresAt(Long expiresAt)The Unix timestamp (in seconds) for when the batch will expire. final Batch.BuilderexpiresAt(JsonField<Long> expiresAt)The Unix timestamp (in seconds) for when the batch will expire. final Batch.BuilderfailedAt(Long failedAt)The Unix timestamp (in seconds) for when the batch failed. final Batch.BuilderfailedAt(JsonField<Long> failedAt)The Unix timestamp (in seconds) for when the batch failed. final Batch.BuilderfinalizingAt(Long finalizingAt)The Unix timestamp (in seconds) for when the batch started finalizing. final Batch.BuilderfinalizingAt(JsonField<Long> finalizingAt)The Unix timestamp (in seconds) for when the batch started finalizing. final Batch.BuilderinProgressAt(Long inProgressAt)The Unix timestamp (in seconds) for when the batch started processing. final Batch.BuilderinProgressAt(JsonField<Long> inProgressAt)The Unix timestamp (in seconds) for when the batch started processing. final Batch.Buildermetadata(JsonValue metadata)Set of 16 key-value pairs that can be attached to an object. final Batch.BuilderoutputFileId(String outputFileId)The ID of the file containing the outputs of successfully executed requests. final Batch.BuilderoutputFileId(JsonField<String> outputFileId)The ID of the file containing the outputs of successfully executed requests. final Batch.BuilderrequestCounts(BatchRequestCounts requestCounts)The request counts for different statuses within the batch. final Batch.BuilderrequestCounts(JsonField<BatchRequestCounts> requestCounts)The request counts for different statuses within the batch. final Batch.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Batch.BuilderputAdditionalProperty(String key, JsonValue value)final Batch.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Batch.BuilderremoveAdditionalProperty(String key)final Batch.BuilderremoveAllAdditionalProperties(Set<String> keys)final Batchbuild()-
-
Method Detail
-
id
final Batch.Builder id(String id)
-
id
final Batch.Builder id(JsonField<String> id)
-
completionWindow
final Batch.Builder completionWindow(String completionWindow)
The time frame within which the batch should be processed.
-
completionWindow
final Batch.Builder completionWindow(JsonField<String> completionWindow)
The time frame within which the batch should be processed.
-
createdAt
final Batch.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the batch was created.
-
createdAt
final Batch.Builder createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the batch was created.
-
endpoint
final Batch.Builder endpoint(String endpoint)
The OpenAI API endpoint used by the batch.
-
endpoint
final Batch.Builder endpoint(JsonField<String> endpoint)
The OpenAI API endpoint used by the batch.
-
inputFileId
final Batch.Builder inputFileId(String inputFileId)
The ID of the input file for the batch.
-
inputFileId
final Batch.Builder inputFileId(JsonField<String> inputFileId)
The ID of the input file for the batch.
-
object_
final Batch.Builder object_(JsonValue object_)
The object type, which is always
batch.
-
status
final Batch.Builder status(Batch.Status status)
The current status of the batch.
-
status
final Batch.Builder status(JsonField<Batch.Status> status)
The current status of the batch.
-
cancelledAt
final Batch.Builder cancelledAt(Long cancelledAt)
The Unix timestamp (in seconds) for when the batch was cancelled.
-
cancelledAt
final Batch.Builder cancelledAt(JsonField<Long> cancelledAt)
The Unix timestamp (in seconds) for when the batch was cancelled.
-
cancellingAt
final Batch.Builder cancellingAt(Long cancellingAt)
The Unix timestamp (in seconds) for when the batch started cancelling.
-
cancellingAt
final Batch.Builder cancellingAt(JsonField<Long> cancellingAt)
The Unix timestamp (in seconds) for when the batch started cancelling.
-
completedAt
final Batch.Builder completedAt(Long completedAt)
The Unix timestamp (in seconds) for when the batch was completed.
-
completedAt
final Batch.Builder completedAt(JsonField<Long> completedAt)
The Unix timestamp (in seconds) for when the batch was completed.
-
errorFileId
final Batch.Builder errorFileId(String errorFileId)
The ID of the file containing the outputs of requests with errors.
-
errorFileId
final Batch.Builder errorFileId(JsonField<String> errorFileId)
The ID of the file containing the outputs of requests with errors.
-
errors
final Batch.Builder errors(Batch.Errors errors)
-
errors
final Batch.Builder errors(JsonField<Batch.Errors> errors)
-
expiredAt
final Batch.Builder expiredAt(Long expiredAt)
The Unix timestamp (in seconds) for when the batch expired.
-
expiredAt
final Batch.Builder expiredAt(JsonField<Long> expiredAt)
The Unix timestamp (in seconds) for when the batch expired.
-
expiresAt
final Batch.Builder expiresAt(Long expiresAt)
The Unix timestamp (in seconds) for when the batch will expire.
-
expiresAt
final Batch.Builder expiresAt(JsonField<Long> expiresAt)
The Unix timestamp (in seconds) for when the batch will expire.
-
failedAt
final Batch.Builder failedAt(Long failedAt)
The Unix timestamp (in seconds) for when the batch failed.
-
failedAt
final Batch.Builder failedAt(JsonField<Long> failedAt)
The Unix timestamp (in seconds) for when the batch failed.
-
finalizingAt
final Batch.Builder finalizingAt(Long finalizingAt)
The Unix timestamp (in seconds) for when the batch started finalizing.
-
finalizingAt
final Batch.Builder finalizingAt(JsonField<Long> finalizingAt)
The Unix timestamp (in seconds) for when the batch started finalizing.
-
inProgressAt
final Batch.Builder inProgressAt(Long inProgressAt)
The Unix timestamp (in seconds) for when the batch started processing.
-
inProgressAt
final Batch.Builder inProgressAt(JsonField<Long> inProgressAt)
The Unix timestamp (in seconds) for when the batch started processing.
-
metadata
final Batch.Builder metadata(JsonValue metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
-
outputFileId
final Batch.Builder outputFileId(String outputFileId)
The ID of the file containing the outputs of successfully executed requests.
-
outputFileId
final Batch.Builder outputFileId(JsonField<String> outputFileId)
The ID of the file containing the outputs of successfully executed requests.
-
requestCounts
final Batch.Builder requestCounts(BatchRequestCounts requestCounts)
The request counts for different statuses within the batch.
-
requestCounts
final Batch.Builder requestCounts(JsonField<BatchRequestCounts> requestCounts)
The request counts for different statuses within the batch.
-
additionalProperties
final Batch.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Batch.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Batch.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Batch.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Batch.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-