Class FileObject.Builder
-
- All Implemented Interfaces:
public final class FileObject.BuilderA builder for FileObject.
-
-
Method Summary
Modifier and Type Method Description final FileObject.Builderid(String id)The file identifier, which can be referenced in the API endpoints. final FileObject.Builderid(JsonField<String> id)The file identifier, which can be referenced in the API endpoints. final FileObject.Builderbytes(Long bytes)The size of the file, in bytes. final FileObject.Builderbytes(JsonField<Long> bytes)The size of the file, in bytes. final FileObject.BuildercreatedAt(Long createdAt)The Unix timestamp (in seconds) for when the file was created. final FileObject.BuildercreatedAt(JsonField<Long> createdAt)The Unix timestamp (in seconds) for when the file was created. final FileObject.Builderfilename(String filename)The name of the file. final FileObject.Builderfilename(JsonField<String> filename)The name of the file. final FileObject.Builderobject_(JsonValue object_)The object type, which is always file.final FileObject.Builderpurpose(FileObject.Purpose purpose)The intended purpose of the file. final FileObject.Builderpurpose(JsonField<FileObject.Purpose> purpose)The intended purpose of the file. final FileObject.Builderstatus(FileObject.Status status)Deprecated. final FileObject.Builderstatus(JsonField<FileObject.Status> status)Deprecated. final FileObject.BuilderexpiresAt(Long expiresAt)The Unix timestamp (in seconds) for when the file will expire. final FileObject.BuilderexpiresAt(JsonField<Long> expiresAt)The Unix timestamp (in seconds) for when the file will expire. final FileObject.BuilderstatusDetails(String statusDetails)Deprecated. final FileObject.BuilderstatusDetails(JsonField<String> statusDetails)Deprecated. final FileObject.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final FileObject.BuilderputAdditionalProperty(String key, JsonValue value)final FileObject.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final FileObject.BuilderremoveAdditionalProperty(String key)final FileObject.BuilderremoveAllAdditionalProperties(Set<String> keys)final FileObjectbuild()-
-
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_(JsonValue 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-resultsandvision.
-
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-resultsandvision.
-
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.
-
expiresAt
final FileObject.Builder expiresAt(Long expiresAt)
The Unix timestamp (in seconds) for when the file will expire.
-
expiresAt
final FileObject.Builder expiresAt(JsonField<Long> expiresAt)
The Unix timestamp (in seconds) for when the file will expire.
-
statusDetails
@Deprecated(message = "deprecated") final FileObject.Builder statusDetails(String statusDetails)
Deprecated. For details on why a fine-tuning training file failed validation, see the
errorfield 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
errorfield 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()
-
-
-
-