ContextCacheContainerProperties Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ContextCacheContainerProperties
- com.
Implements
public final class ContextCacheContainerProperties
implements JsonSerializable<ContextCacheContainerProperties>
Details of a container within a Context Cache.
Constructor Summary
| Constructor | Description |
|---|---|
| ContextCacheContainerProperties() |
Creates an instance of Context |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
description()
Get the description property: Container description. |
|
static
Context |
fromJson(JsonReader jsonReader)
Reads an instance of Context |
| String |
modelName()
Get the model |
|
Ai |
provider()
Get the provider property: The AI provider associated with this container. |
|
Context |
provisioningState()
Get the provisioning |
| Integer |
timeToLive()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Context |
withDescription(String description)
Set the description property: Container description. |
|
Context |
withModelName(String modelName)
Set the model |
|
Context |
withProvider(AiProvider provider)
Set the provider property: The AI provider associated with this container. |
|
Context |
withTimeToLive(Integer timeToLive)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
ContextCacheContainerProperties
public ContextCacheContainerProperties()
Creates an instance of ContextCacheContainerProperties class.
Method Details
description
public String description()
Get the description property: Container description.
Returns:
fromJson
public static ContextCacheContainerProperties fromJson(JsonReader jsonReader)
Reads an instance of ContextCacheContainerProperties from the JsonReader.
Parameters:
Returns:
Throws:
modelName
public String modelName()
Get the modelName property: The model name associated with this container (e.g., gpt-4, claude-3).
Returns:
provider
public AiProvider provider()
Get the provider property: The AI provider associated with this container.
Returns:
provisioningState
public ContextCacheProvisioningState provisioningState()
Get the provisioningState property: The status of the last operation.
Returns:
timeToLive
public Integer timeToLive()
Get the timeToLive property: The Time to Live (TTL) in days (1–30) for this container. Blobs in the container that have not been accessed within this number of days will be automatically deleted. If not specified at creation time, it defaults to 1 day.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public ContextCacheContainerProperties withDescription(String description)
Set the description property: Container description.
Parameters:
Returns:
withModelName
public ContextCacheContainerProperties withModelName(String modelName)
Set the modelName property: The model name associated with this container (e.g., gpt-4, claude-3).
Parameters:
Returns:
withProvider
public ContextCacheContainerProperties withProvider(AiProvider provider)
Set the provider property: The AI provider associated with this container.
Parameters:
Returns:
withTimeToLive
public ContextCacheContainerProperties withTimeToLive(Integer timeToLive)
Set the timeToLive property: The Time to Live (TTL) in days (1–30) for this container. Blobs in the container that have not been accessed within this number of days will be automatically deleted. If not specified at creation time, it defaults to 1 day.
Parameters:
Returns: