public class SqlContainerResource extends Object
| Constructor and Description |
|---|
SqlContainerResource() |
| Modifier and Type | Method and Description |
|---|---|
ConflictResolutionPolicy |
conflictResolutionPolicy()
Get the conflictResolutionPolicy property: The conflict resolution policy for the container.
|
Integer |
defaultTtl()
Get the defaultTtl property: Default time to live.
|
String |
id()
Get the id property: Name of the Cosmos DB SQL container.
|
IndexingPolicy |
indexingPolicy()
Get the indexingPolicy property: The configuration of the indexing policy.
|
ContainerPartitionKey |
partitionKey()
Get the partitionKey property: The configuration of the partition key to be used for partitioning data into
multiple partitions.
|
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.
|
void |
validate()
Validates the instance.
|
SqlContainerResource |
withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflictResolutionPolicy property: The conflict resolution policy for the container.
|
SqlContainerResource |
withDefaultTtl(Integer defaultTtl)
Set the defaultTtl property: Default time to live.
|
SqlContainerResource |
withId(String id)
Set the id property: Name of the Cosmos DB SQL container.
|
SqlContainerResource |
withIndexingPolicy(IndexingPolicy indexingPolicy)
Set the indexingPolicy property: The configuration of the indexing policy.
|
SqlContainerResource |
withPartitionKey(ContainerPartitionKey partitionKey)
Set the partitionKey property: The configuration of the partition key to be used for partitioning data into
multiple partitions.
|
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.
|
public String id()
public SqlContainerResource withId(String id)
id - the id value to set.public IndexingPolicy indexingPolicy()
public SqlContainerResource withIndexingPolicy(IndexingPolicy indexingPolicy)
indexingPolicy - the indexingPolicy value to set.public ContainerPartitionKey partitionKey()
public SqlContainerResource withPartitionKey(ContainerPartitionKey partitionKey)
partitionKey - the partitionKey value to set.public Integer defaultTtl()
public SqlContainerResource withDefaultTtl(Integer defaultTtl)
defaultTtl - the defaultTtl value to set.public UniqueKeyPolicy uniqueKeyPolicy()
public SqlContainerResource withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
uniqueKeyPolicy - the uniqueKeyPolicy value to set.public ConflictResolutionPolicy conflictResolutionPolicy()
public SqlContainerResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
conflictResolutionPolicy - the conflictResolutionPolicy value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.