SqlContainerResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. SqlContainerResource
- com.
Implements
public class SqlContainerResource
implements JsonSerializable<SqlContainerResource>
Cosmos DB SQL container resource object.
Constructor Summary
Constructor | Description |
---|---|
SqlContainerResource() |
Creates an instance of Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
analyticalStorageTtl()
Get the analytical |
Client |
clientEncryptionPolicy()
Get the client |
List<Computed |
computedProperties()
Get the computed |
Conflict |
conflictResolutionPolicy()
Get the conflict |
Create |
createMode()
Get the create |
Integer |
defaultTtl()
Get the default |
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
String |
id()
Get the id property: Name of the Cosmos DB SQL container. |
Indexing |
indexingPolicy()
Get the indexing |
Container |
partitionKey()
Get the partition |
Resource |
restoreParameters()
Get the restore |
Json |
toJson(JsonWriter jsonWriter) |
Unique |
uniqueKeyPolicy()
Get the unique |
void |
validate()
Validates the instance. |
Vector |
vectorEmbeddingPolicy()
Get the vector |
Sql |
withAnalyticalStorageTtl(Long analyticalStorageTtl)
Set the analytical |
Sql |
withClientEncryptionPolicy(ClientEncryptionPolicy clientEncryptionPolicy)
Set the client |
Sql |
withComputedProperties(List<ComputedProperty> computedProperties)
Set the computed |
Sql |
withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflict |
Sql |
withCreateMode(CreateMode createMode)
Set the create |
Sql |
withDefaultTtl(Integer defaultTtl)
Set the default |
Sql |
withId(String id)
Set the id property: Name of the Cosmos DB SQL container. |
Sql |
withIndexingPolicy(IndexingPolicy indexingPolicy)
Set the indexing |
Sql |
withPartitionKey(ContainerPartitionKey partitionKey)
Set the partition |
Sql |
withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restore |
Sql |
withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
Set the unique |
Sql |
withVectorEmbeddingPolicy(VectorEmbeddingPolicy vectorEmbeddingPolicy)
Set the vector |
Methods inherited from java.lang.Object
Constructor Details
SqlContainerResource
public SqlContainerResource()
Creates an instance of SqlContainerResource class.
Method Details
analyticalStorageTtl
public Long analyticalStorageTtl()
Get the analyticalStorageTtl property: Analytical TTL.
Returns:
clientEncryptionPolicy
public ClientEncryptionPolicy clientEncryptionPolicy()
Get the clientEncryptionPolicy property: The client encryption policy for the container.
Returns:
computedProperties
public List
Get the computedProperties property: List of computed properties.
Returns:
conflictResolutionPolicy
public ConflictResolutionPolicy conflictResolutionPolicy()
Get the conflictResolutionPolicy property: The conflict resolution policy for the container.
Returns:
createMode
public CreateMode createMode()
Get the createMode property: Enum to indicate the mode of resource creation.
Returns:
defaultTtl
public Integer defaultTtl()
Get the defaultTtl property: Default time to live.
Returns:
fromJson
public static SqlContainerResource fromJson(JsonReader jsonReader)
Reads an instance of SqlContainerResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB SQL container.
Returns:
indexingPolicy
public IndexingPolicy indexingPolicy()
Get the indexingPolicy property: The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container.
Returns:
partitionKey
public ContainerPartitionKey partitionKey()
Get the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.
Returns:
restoreParameters
public ResourceRestoreParameters restoreParameters()
Get the restoreParameters property: Parameters to indicate the information about the restore.
Returns:
toJson
uniqueKeyPolicy
public UniqueKeyPolicy uniqueKeyPolicy()
Get the uniqueKeyPolicy property: The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
Returns:
validate
public void validate()
Validates the instance.
vectorEmbeddingPolicy
public VectorEmbeddingPolicy vectorEmbeddingPolicy()
Get the vectorEmbeddingPolicy property: The vector embedding policy for the container.
Returns:
withAnalyticalStorageTtl
public SqlContainerResource withAnalyticalStorageTtl(Long analyticalStorageTtl)
Set the analyticalStorageTtl property: Analytical TTL.
Parameters:
Returns:
withClientEncryptionPolicy
public SqlContainerResource withClientEncryptionPolicy(ClientEncryptionPolicy clientEncryptionPolicy)
Set the clientEncryptionPolicy property: The client encryption policy for the container.
Parameters:
Returns:
withComputedProperties
public SqlContainerResource withComputedProperties(List
Set the computedProperties property: List of computed properties.
Parameters:
Returns:
withConflictResolutionPolicy
public SqlContainerResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflictResolutionPolicy property: The conflict resolution policy for the container.
Parameters:
Returns:
withCreateMode
public SqlContainerResource withCreateMode(CreateMode createMode)
Set the createMode property: Enum to indicate the mode of resource creation.
Parameters:
Returns:
withDefaultTtl
public SqlContainerResource withDefaultTtl(Integer defaultTtl)
Set the defaultTtl property: Default time to live.
Parameters:
Returns:
withId
public SqlContainerResource withId(String id)
Set the id property: Name of the Cosmos DB SQL container.
Parameters:
Returns:
withIndexingPolicy
public SqlContainerResource withIndexingPolicy(IndexingPolicy indexingPolicy)
Set the indexingPolicy property: The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container.
Parameters:
Returns:
withPartitionKey
public SqlContainerResource withPartitionKey(ContainerPartitionKey partitionKey)
Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.
Parameters:
Returns:
withRestoreParameters
public SqlContainerResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restoreParameters property: Parameters to indicate the information about the restore.
Parameters:
Returns:
withUniqueKeyPolicy
public SqlContainerResource withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
Set the uniqueKeyPolicy property: The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
Parameters:
Returns:
withVectorEmbeddingPolicy
public SqlContainerResource withVectorEmbeddingPolicy(VectorEmbeddingPolicy vectorEmbeddingPolicy)
Set the vectorEmbeddingPolicy property: The vector embedding policy for the container.
Parameters:
Returns:
Applies to
Azure SDK for Java