Package com.anthropic.models.messages
Class CacheCreation
-
- All Implemented Interfaces:
public final class CacheCreation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCacheCreation.BuilderA builder for CacheCreation.
-
Method Summary
Modifier and Type Method Description final Longephemeral1hInputTokens()The number of input tokens used to create the 1 hour cache entry. final Longephemeral5mInputTokens()The number of input tokens used to create the 5 minute cache entry. final JsonField<Long>_ephemeral1hInputTokens()Returns the raw JSON value of ephemeral1hInputTokens. final JsonField<Long>_ephemeral5mInputTokens()Returns the raw JSON value of ephemeral5mInputTokens. final Map<String, JsonValue>_additionalProperties()final CacheCreation.BuildertoBuilder()final CacheCreationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CacheCreation.Builderbuilder()Returns a mutable builder for constructing an instance of CacheCreation. -
-
Method Detail
-
ephemeral1hInputTokens
final Long ephemeral1hInputTokens()
The number of input tokens used to create the 1 hour cache entry.
-
ephemeral5mInputTokens
final Long ephemeral5mInputTokens()
The number of input tokens used to create the 5 minute cache entry.
-
_ephemeral1hInputTokens
final JsonField<Long> _ephemeral1hInputTokens()
Returns the raw JSON value of ephemeral1hInputTokens.
Unlike ephemeral1hInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_ephemeral5mInputTokens
final JsonField<Long> _ephemeral5mInputTokens()
Returns the raw JSON value of ephemeral5mInputTokens.
Unlike ephemeral5mInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CacheCreation.Builder toBuilder()
-
validate
final CacheCreation validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static CacheCreation.Builder builder()
Returns a mutable builder for constructing an instance of CacheCreation.
The following fields are required:
.ephemeral1hInputTokens() .ephemeral5mInputTokens()
-
-
-
-