Package com.anthropic.models
Class Usage.Builder
-
- All Implemented Interfaces:
public final class Usage.BuilderA builder for Usage.
-
-
Method Summary
Modifier and Type Method Description final Usage.BuildercacheCreationInputTokens(Long cacheCreationInputTokens)The number of input tokens used to create the cache entry. final Usage.BuildercacheCreationInputTokens(Long cacheCreationInputTokens)The number of input tokens used to create the cache entry. final Usage.BuildercacheCreationInputTokens(Optional<Long> cacheCreationInputTokens)The number of input tokens used to create the cache entry. final Usage.BuildercacheCreationInputTokens(JsonField<Long> cacheCreationInputTokens)The number of input tokens used to create the cache entry. final Usage.BuildercacheReadInputTokens(Long cacheReadInputTokens)The number of input tokens read from the cache. final Usage.BuildercacheReadInputTokens(Long cacheReadInputTokens)The number of input tokens read from the cache. final Usage.BuildercacheReadInputTokens(Optional<Long> cacheReadInputTokens)The number of input tokens read from the cache. final Usage.BuildercacheReadInputTokens(JsonField<Long> cacheReadInputTokens)The number of input tokens read from the cache. final Usage.BuilderinputTokens(Long inputTokens)The number of input tokens which were used. final Usage.BuilderinputTokens(JsonField<Long> inputTokens)The number of input tokens which were used. final Usage.BuilderoutputTokens(Long outputTokens)The number of output tokens which were used. final Usage.BuilderoutputTokens(JsonField<Long> outputTokens)The number of output tokens which were used. final Usage.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Usage.BuilderputAdditionalProperty(String key, JsonValue value)final Usage.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Usage.BuilderremoveAdditionalProperty(String key)final Usage.BuilderremoveAllAdditionalProperties(Set<String> keys)final Usagebuild()-
-
Method Detail
-
cacheCreationInputTokens
final Usage.Builder cacheCreationInputTokens(Long cacheCreationInputTokens)
The number of input tokens used to create the cache entry.
-
cacheCreationInputTokens
final Usage.Builder cacheCreationInputTokens(Long cacheCreationInputTokens)
The number of input tokens used to create the cache entry.
-
cacheCreationInputTokens
final Usage.Builder cacheCreationInputTokens(Optional<Long> cacheCreationInputTokens)
The number of input tokens used to create the cache entry.
-
cacheCreationInputTokens
final Usage.Builder cacheCreationInputTokens(JsonField<Long> cacheCreationInputTokens)
The number of input tokens used to create the cache entry.
-
cacheReadInputTokens
final Usage.Builder cacheReadInputTokens(Long cacheReadInputTokens)
The number of input tokens read from the cache.
-
cacheReadInputTokens
final Usage.Builder cacheReadInputTokens(Long cacheReadInputTokens)
The number of input tokens read from the cache.
-
cacheReadInputTokens
final Usage.Builder cacheReadInputTokens(Optional<Long> cacheReadInputTokens)
The number of input tokens read from the cache.
-
cacheReadInputTokens
final Usage.Builder cacheReadInputTokens(JsonField<Long> cacheReadInputTokens)
The number of input tokens read from the cache.
-
inputTokens
final Usage.Builder inputTokens(Long inputTokens)
The number of input tokens which were used.
-
inputTokens
final Usage.Builder inputTokens(JsonField<Long> inputTokens)
The number of input tokens which were used.
-
outputTokens
final Usage.Builder outputTokens(Long outputTokens)
The number of output tokens which were used.
-
outputTokens
final Usage.Builder outputTokens(JsonField<Long> outputTokens)
The number of output tokens which were used.
-
additionalProperties
final Usage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Usage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Usage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Usage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Usage.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-