Class FileObject.Builder
-
- All Implemented Interfaces:
public final class FileObject.Builder
-
-
Constructor Summary
Constructors Constructor Description FileObject.Builder()
-
Method Summary
Modifier and Type Method Description final FileObject.Builder
id(String id)
The file identifier, which can be referenced in the API endpoints. final FileObject.Builder
id(JsonField<String> id)
The file identifier, which can be referenced in the API endpoints. final FileObject.Builder
bytes(Long bytes)
The size of the file, in bytes. final FileObject.Builder
bytes(JsonField<Long> bytes)
The size of the file, in bytes. final FileObject.Builder
createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the file was created. final FileObject.Builder
createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the file was created. final FileObject.Builder
filename(String filename)
The name of the file. final FileObject.Builder
filename(JsonField<String> filename)
The name of the file. final FileObject.Builder
object_(FileObject.Object object_)
The object type, which is always file
.final FileObject.Builder
object_(JsonField<FileObject.Object> object_)
The object type, which is always file
.final FileObject.Builder
purpose(FileObject.Purpose purpose)
The intended purpose of the file. final FileObject.Builder
purpose(JsonField<FileObject.Purpose> purpose)
The intended purpose of the file. final FileObject.Builder
status(FileObject.Status status)
Deprecated. final FileObject.Builder
status(JsonField<FileObject.Status> status)
Deprecated. final FileObject.Builder
statusDetails(String statusDetails)
Deprecated. final FileObject.Builder
statusDetails(JsonField<String> statusDetails)
Deprecated. final FileObject.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final FileObject.Builder
putAdditionalProperty(String key, JsonValue value)
final FileObject.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final FileObject.Builder
removeAdditionalProperty(String key)
final FileObject.Builder
removeAllAdditionalProperties(Set<String> keys)
final FileObject
build()
-
-
Method Detail
-
id
final FileObject.Builder id(String id)
The file identifier, which can be referenced in the API endpoints.
-
id
final FileObject.Builder id(JsonField<String> id)
The file identifier, which can be referenced in the API endpoints.
-
bytes
final FileObject.Builder bytes(Long bytes)
The size of the file, in bytes.
-
bytes
final FileObject.Builder bytes(JsonField<Long> bytes)
The size of the file, in bytes.
-
createdAt
final FileObject.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the file was created.
-
createdAt
final FileObject.Builder createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the file was created.
-
filename
final FileObject.Builder filename(String filename)
The name of the file.
-
filename
final FileObject.Builder filename(JsonField<String> filename)
The name of the file.
-
object_
final FileObject.Builder object_(FileObject.Object object_)
The object type, which is always
file
.
-
object_
final FileObject.Builder object_(JsonField<FileObject.Object> object_)
The object type, which is always
file
.
-
purpose
final FileObject.Builder purpose(FileObject.Purpose purpose)
The intended purpose of the file. Supported values are
assistants
,assistants_output
,batch
,batch_output
,fine-tune
,fine-tune-results
andvision
.
-
purpose
final FileObject.Builder purpose(JsonField<FileObject.Purpose> purpose)
The intended purpose of the file. Supported values are
assistants
,assistants_output
,batch
,batch_output
,fine-tune
,fine-tune-results
andvision
.
-
status
@Deprecated(message = "deprecated") final FileObject.Builder status(FileObject.Status status)
Deprecated. The current status of the file, which can be either
uploaded
,processed
, orerror
.
-
status
@Deprecated(message = "deprecated") final FileObject.Builder status(JsonField<FileObject.Status> status)
Deprecated. The current status of the file, which can be either
uploaded
,processed
, orerror
.
-
statusDetails
@Deprecated(message = "deprecated") final FileObject.Builder statusDetails(String statusDetails)
Deprecated. For details on why a fine-tuning training file failed validation, see the
error
field onfine_tuning.job
.
-
statusDetails
@Deprecated(message = "deprecated") final FileObject.Builder statusDetails(JsonField<String> statusDetails)
Deprecated. For details on why a fine-tuning training file failed validation, see the
error
field onfine_tuning.job
.
-
additionalProperties
final FileObject.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileObject.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileObject.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileObject.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileObject.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileObject build()
-
-
-
-