Package com.openai.models.uploads
Class UploadCreateParams.ExpiresAfter.Builder
-
- All Implemented Interfaces:
public final class UploadCreateParams.ExpiresAfter.Builder
A builder for ExpiresAfter.
-
-
Method Summary
-
-
Method Detail
-
anchor
final UploadCreateParams.ExpiresAfter.Builder anchor(JsonValue anchor)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("created_at")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
seconds
final UploadCreateParams.ExpiresAfter.Builder seconds(Long seconds)
The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).
-
seconds
final UploadCreateParams.ExpiresAfter.Builder seconds(JsonField<Long> seconds)
Sets Builder.seconds to an arbitrary JSON value.
You should usually call Builder.seconds with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UploadCreateParams.ExpiresAfter.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UploadCreateParams.ExpiresAfter.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UploadCreateParams.ExpiresAfter.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UploadCreateParams.ExpiresAfter.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UploadCreateParams.ExpiresAfter.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UploadCreateParams.ExpiresAfter build()
Returns an immutable instance of ExpiresAfter.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.seconds()
-
-
-
-