Class RestorableSqlContainerPropertiesResourceContainer
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.SqlContainerResource
-
- com.azure.resourcemanager.cosmos.models.RestorableSqlContainerPropertiesResourceContainer
-
public final class RestorableSqlContainerPropertiesResourceContainer extends SqlContainerResource
Cosmos DB SQL container resource object.
-
-
Constructor Summary
Constructors Constructor Description RestorableSqlContainerPropertiesResourceContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringetag()Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.Stringrid()Get the rid property: A system generated property.Stringself()Get the self property: A system generated property that specifies the addressable path of the container resource.Floatts()Get the ts property: A system generated property that denotes the last updated timestamp of the resource.voidvalidate()Validates the instance.RestorableSqlContainerPropertiesResourceContainerwithAnalyticalStorageTtl(Long analyticalStorageTtl)Set the analyticalStorageTtl property: Analytical TTL.RestorableSqlContainerPropertiesResourceContainerwithConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)Set the conflictResolutionPolicy property: The conflict resolution policy for the container.RestorableSqlContainerPropertiesResourceContainerwithDefaultTtl(Integer defaultTtl)Set the defaultTtl property: Default time to live.RestorableSqlContainerPropertiesResourceContainerwithId(String id)Set the id property: Name of the Cosmos DB SQL container.RestorableSqlContainerPropertiesResourceContainerwithIndexingPolicy(IndexingPolicy indexingPolicy)Set the indexingPolicy property: The configuration of the indexing policy.RestorableSqlContainerPropertiesResourceContainerwithPartitionKey(ContainerPartitionKey partitionKey)Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.RestorableSqlContainerPropertiesResourceContainerwithUniqueKeyPolicy(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.-
Methods inherited from class com.azure.resourcemanager.cosmos.models.SqlContainerResource
analyticalStorageTtl, conflictResolutionPolicy, defaultTtl, id, indexingPolicy, partitionKey, uniqueKeyPolicy
-
-
-
-
Method Detail
-
self
public String self()
Get the self property: A system generated property that specifies the addressable path of the container resource.- Returns:
- the self value.
-
rid
public String rid()
Get the rid property: A system generated property. A unique identifier.- Returns:
- the rid value.
-
ts
public Float ts()
Get the ts property: A system generated property that denotes the last updated timestamp of the resource.- Returns:
- the ts value.
-
etag
public String etag()
Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.- Returns:
- the etag value.
-
withId
public RestorableSqlContainerPropertiesResourceContainer withId(String id)
Set the id property: Name of the Cosmos DB SQL container.- Overrides:
withIdin classSqlContainerResource- Parameters:
id- the id value to set.- Returns:
- the SqlContainerResource object itself.
-
withIndexingPolicy
public RestorableSqlContainerPropertiesResourceContainer 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.- Overrides:
withIndexingPolicyin classSqlContainerResource- Parameters:
indexingPolicy- the indexingPolicy value to set.- Returns:
- the SqlContainerResource object itself.
-
withPartitionKey
public RestorableSqlContainerPropertiesResourceContainer withPartitionKey(ContainerPartitionKey partitionKey)
Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.- Overrides:
withPartitionKeyin classSqlContainerResource- Parameters:
partitionKey- the partitionKey value to set.- Returns:
- the SqlContainerResource object itself.
-
withDefaultTtl
public RestorableSqlContainerPropertiesResourceContainer withDefaultTtl(Integer defaultTtl)
Set the defaultTtl property: Default time to live.- Overrides:
withDefaultTtlin classSqlContainerResource- Parameters:
defaultTtl- the defaultTtl value to set.- Returns:
- the SqlContainerResource object itself.
-
withUniqueKeyPolicy
public RestorableSqlContainerPropertiesResourceContainer 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.- Overrides:
withUniqueKeyPolicyin classSqlContainerResource- Parameters:
uniqueKeyPolicy- the uniqueKeyPolicy value to set.- Returns:
- the SqlContainerResource object itself.
-
withConflictResolutionPolicy
public RestorableSqlContainerPropertiesResourceContainer withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflictResolutionPolicy property: The conflict resolution policy for the container.- Overrides:
withConflictResolutionPolicyin classSqlContainerResource- Parameters:
conflictResolutionPolicy- the conflictResolutionPolicy value to set.- Returns:
- the SqlContainerResource object itself.
-
withAnalyticalStorageTtl
public RestorableSqlContainerPropertiesResourceContainer withAnalyticalStorageTtl(Long analyticalStorageTtl)
Set the analyticalStorageTtl property: Analytical TTL.- Overrides:
withAnalyticalStorageTtlin classSqlContainerResource- Parameters:
analyticalStorageTtl- the analyticalStorageTtl value to set.- Returns:
- the SqlContainerResource object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classSqlContainerResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-