Package com.openai.models.responses
Class Response.PromptCacheOptions.Builder
-
- All Implemented Interfaces:
public final class Response.PromptCacheOptions.BuilderA builder for PromptCacheOptions.
-
-
Method Summary
-
-
Method Detail
-
mode
final Response.PromptCacheOptions.Builder mode(Response.PromptCacheOptions.Mode mode)
Whether implicit prompt-cache breakpoints were enabled.
-
mode
final Response.PromptCacheOptions.Builder mode(JsonField<Response.PromptCacheOptions.Mode> mode)
Sets Builder.mode to an arbitrary JSON value.
You should usually call Builder.mode with a well-typed Mode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
ttl
final Response.PromptCacheOptions.Builder ttl(Response.PromptCacheOptions.Ttl ttl)
The minimum lifetime applied to each cache breakpoint.
-
ttl
final Response.PromptCacheOptions.Builder ttl(JsonField<Response.PromptCacheOptions.Ttl> ttl)
Sets Builder.ttl to an arbitrary JSON value.
You should usually call Builder.ttl with a well-typed Ttl value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Response.PromptCacheOptions.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Response.PromptCacheOptions.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Response.PromptCacheOptions.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Response.PromptCacheOptions.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Response.PromptCacheOptions.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Response.PromptCacheOptions build()
Returns an immutable instance of PromptCacheOptions.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mode() .ttl()
-
-
-
-