ContextCacheContainerProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ContextCacheContainerProperties

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 ContextCacheContainerProperties class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Container description.

static ContextCacheContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of ContextCacheContainerProperties from the JsonReader.

String modelName()

Get the modelName property: The model name associated with this container (e.g., gpt-4, claude-3).

AiProvider provider()

Get the provider property: The AI provider associated with this container.

ContextCacheProvisioningState provisioningState()

Get the provisioningState property: The status of the last operation.

Integer timeToLive()

Get the timeToLive property: The Time to Live (TTL) in days (1–30) for this container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContextCacheContainerProperties withDescription(String description)

Set the description property: Container description.

ContextCacheContainerProperties withModelName(String modelName)

Set the modelName property: The model name associated with this container (e.g., gpt-4, claude-3).

ContextCacheContainerProperties withProvider(AiProvider provider)

Set the provider property: The AI provider associated with this container.

ContextCacheContainerProperties withTimeToLive(Integer timeToLive)

Set the timeToLive property: The Time to Live (TTL) in days (1–30) for this container.

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:

the description value.

fromJson

public static ContextCacheContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of ContextCacheContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContextCacheContainerProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

modelName

public String modelName()

Get the modelName property: The model name associated with this container (e.g., gpt-4, claude-3).

Returns:

the modelName value.

provider

public AiProvider provider()

Get the provider property: The AI provider associated with this container.

Returns:

the provider value.

provisioningState

public ContextCacheProvisioningState provisioningState()

Get the provisioningState property: The status of the last operation.

Returns:

the provisioningState value.

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:

the timeToLive value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public ContextCacheContainerProperties withDescription(String description)

Set the description property: Container description.

Parameters:

description - the description value to set.

Returns:

the ContextCacheContainerProperties object itself.

withModelName

public ContextCacheContainerProperties withModelName(String modelName)

Set the modelName property: The model name associated with this container (e.g., gpt-4, claude-3).

Parameters:

modelName - the modelName value to set.

Returns:

the ContextCacheContainerProperties object itself.

withProvider

public ContextCacheContainerProperties withProvider(AiProvider provider)

Set the provider property: The AI provider associated with this container.

Parameters:

provider - the provider value to set.

Returns:

the ContextCacheContainerProperties object itself.

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:

timeToLive - the timeToLive value to set.

Returns:

the ContextCacheContainerProperties object itself.

Applies to