Class CacheCreationTokenDetails
java.lang.Object
com.sap.ai.sdk.orchestration.model.CacheCreationTokenDetails
Breakdown of cache creation tokens by TTL (Anthropic only).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for CacheCreationTokenDetails. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheCreationTokenDetailscreate()Create a newCacheCreationTokenDetailsinstance.ephemeral1hInputTokens(Integer ephemeral1hInputTokens) Set the ephemeral1hInputTokens of thisCacheCreationTokenDetailsinstance and return the same instance.ephemeral5mInputTokens(Integer ephemeral5mInputTokens) Set the ephemeral5mInputTokens of thisCacheCreationTokenDetailsinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCacheCreationTokenDetails.Tokens cached with 1-hour TTL.Tokens cached with 5-minute TTL.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCacheCreationTokenDetailsinstance.voidsetEphemeral1hInputTokens(Integer ephemeral1hInputTokens) Set the ephemeral1hInputTokens of thisCacheCreationTokenDetailsinstance.voidsetEphemeral5mInputTokens(Integer ephemeral5mInputTokens) Set the ephemeral5mInputTokens of thisCacheCreationTokenDetailsinstance.toMap()Get the value of all properties of thisCacheCreationTokenDetailsinstance including unrecognized properties.toString()
-
Constructor Details
-
CacheCreationTokenDetails
protected CacheCreationTokenDetails()Default constructor for CacheCreationTokenDetails.
-
-
Method Details
-
ephemeral5mInputTokens
@Nonnull public CacheCreationTokenDetails ephemeral5mInputTokens(@Nullable Integer ephemeral5mInputTokens) Set the ephemeral5mInputTokens of thisCacheCreationTokenDetailsinstance and return the same instance.- Parameters:
ephemeral5mInputTokens- Tokens cached with 5-minute TTL.- Returns:
- The same instance of this
CacheCreationTokenDetailsclass
-
getEphemeral5mInputTokens
Tokens cached with 5-minute TTL.- Returns:
- ephemeral5mInputTokens The ephemeral5mInputTokens of this
CacheCreationTokenDetailsinstance.
-
setEphemeral5mInputTokens
Set the ephemeral5mInputTokens of thisCacheCreationTokenDetailsinstance.- Parameters:
ephemeral5mInputTokens- Tokens cached with 5-minute TTL.
-
ephemeral1hInputTokens
@Nonnull public CacheCreationTokenDetails ephemeral1hInputTokens(@Nullable Integer ephemeral1hInputTokens) Set the ephemeral1hInputTokens of thisCacheCreationTokenDetailsinstance and return the same instance.- Parameters:
ephemeral1hInputTokens- Tokens cached with 1-hour TTL.- Returns:
- The same instance of this
CacheCreationTokenDetailsclass
-
getEphemeral1hInputTokens
Tokens cached with 1-hour TTL.- Returns:
- ephemeral1hInputTokens The ephemeral1hInputTokens of this
CacheCreationTokenDetailsinstance.
-
setEphemeral1hInputTokens
Set the ephemeral1hInputTokens of thisCacheCreationTokenDetailsinstance.- Parameters:
ephemeral1hInputTokens- Tokens cached with 1-hour TTL.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCacheCreationTokenDetails.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisCacheCreationTokenDetailsinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisCacheCreationTokenDetailsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCacheCreationTokenDetailsinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newCacheCreationTokenDetailsinstance. No arguments are required.
-
toMap()instead.