public class SqlContainerResource extends Object
| Constructor and Description |
|---|
SqlContainerResource() |
| Modifier and Type | Method and Description |
|---|---|
ConflictResolutionPolicy |
conflictResolutionPolicy()
Get the conflict resolution policy for the container.
|
Integer |
defaultTtl()
Get default time to live.
|
String |
id()
Get name of the Cosmos DB SQL container.
|
IndexingPolicy |
indexingPolicy()
Get the configuration of the indexing policy.
|
ContainerPartitionKey |
partitionKey()
Get the configuration of the partition key to be used for partitioning data into multiple partitions.
|
UniqueKeyPolicy |
uniqueKeyPolicy()
Get the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
|
SqlContainerResource |
withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflict resolution policy for the container.
|
SqlContainerResource |
withDefaultTtl(Integer defaultTtl)
Set default time to live.
|
SqlContainerResource |
withId(String id)
Set name of the Cosmos DB SQL container.
|
SqlContainerResource |
withIndexingPolicy(IndexingPolicy indexingPolicy)
Set the configuration of the indexing policy.
|
SqlContainerResource |
withPartitionKey(ContainerPartitionKey partitionKey)
Set the configuration of the partition key to be used for partitioning data into multiple partitions.
|
SqlContainerResource |
withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
Set the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
|
public String id()
public SqlContainerResource withId(String id)
id - the id value to setpublic IndexingPolicy indexingPolicy()
public SqlContainerResource withIndexingPolicy(IndexingPolicy indexingPolicy)
indexingPolicy - the indexingPolicy value to setpublic ContainerPartitionKey partitionKey()
public SqlContainerResource withPartitionKey(ContainerPartitionKey partitionKey)
partitionKey - the partitionKey value to setpublic Integer defaultTtl()
public SqlContainerResource withDefaultTtl(Integer defaultTtl)
defaultTtl - the defaultTtl value to setpublic UniqueKeyPolicy uniqueKeyPolicy()
public SqlContainerResource withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
uniqueKeyPolicy - the uniqueKeyPolicy value to setpublic ConflictResolutionPolicy conflictResolutionPolicy()
public SqlContainerResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
conflictResolutionPolicy - the conflictResolutionPolicy value to setCopyright © 2019. All rights reserved.