Package com.google.genai.types
Class UpdateCachedContentConfig
-
- All Implemented Interfaces:
public abstract class UpdateCachedContentConfig extends JsonSerializable
Optional parameters for caches.update method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classUpdateCachedContentConfig.BuilderBuilder for UpdateCachedContentConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description UpdateCachedContentConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<HttpOptions>httpOptions()Used to override HTTP request options. abstract Optional<Duration>ttl()The TTL for this resource. abstract Optional<Instant>expireTime()Timestamp of when this resource is considered expired. static UpdateCachedContentConfig.Builderbuilder()Instantiates a builder for UpdateCachedContentConfig. abstract UpdateCachedContentConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static UpdateCachedContentConfigfromJson(String jsonString)Deserializes a JSON string to a UpdateCachedContentConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
httpOptions
abstract Optional<HttpOptions> httpOptions()
Used to override HTTP request options.
-
ttl
abstract Optional<Duration> ttl()
The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: "3.5s".
-
expireTime
abstract Optional<Instant> expireTime()
Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.
-
builder
static UpdateCachedContentConfig.Builder builder()
Instantiates a builder for UpdateCachedContentConfig.
-
toBuilder
abstract UpdateCachedContentConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static UpdateCachedContentConfig fromJson(String jsonString)
Deserializes a JSON string to a UpdateCachedContentConfig object.
-
-
-
-