Class UpdateCachedContentConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpdateCachedContentConfig

public abstract class UpdateCachedContentConfig extends JsonSerializable
Optional parameters for caches.update method.
  • Constructor Details

    • UpdateCachedContentConfig

      public UpdateCachedContentConfig()
  • Method Details

    • httpOptions

      public abstract Optional<HttpOptions> httpOptions()
      Used to override HTTP request options.
    • ttl

      public 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

      public abstract Optional<Instant> expireTime()
      Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.
    • builder

      public static UpdateCachedContentConfig.Builder builder()
      Instantiates a builder for UpdateCachedContentConfig.
    • toBuilder

      public abstract UpdateCachedContentConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static UpdateCachedContentConfig fromJson(String jsonString)
      Deserializes a JSON string to a UpdateCachedContentConfig object.