RestorableSqlContainerPropertiesResourceContainer Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. SqlContainerResource - com.
azure. resourcemanager. cosmos. models. RestorableSqlContainerPropertiesResourceContainer
- com.
- com.
public final class RestorableSqlContainerPropertiesResourceContainer
extends SqlContainerResource
Cosmos DB SQL container resource object.
Constructor Summary
Constructor | Description |
---|---|
RestorableSqlContainerPropertiesResourceContainer() |
Creates an instance of Restorable |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
etag()
Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control. |
static
Restorable |
fromJson(JsonReader jsonReader)
Reads an instance of Restorable |
String |
rid()
Get the rid property: A system generated property. |
String |
self()
Get the self property: A system generated property that specifies the addressable path of the container resource. |
Json |
toJson(JsonWriter jsonWriter) |
Float |
ts()
Get the ts property: A system generated property that denotes the last updated timestamp of the resource. |
void |
validate()
Validates the instance. |
Restorable |
withAnalyticalStorageTtl(Long analyticalStorageTtl)
Set the analytical |
Restorable |
withClientEncryptionPolicy(ClientEncryptionPolicy clientEncryptionPolicy)
Set the client |
Restorable |
withComputedProperties(List<ComputedProperty> computedProperties)
Set the computed |
Restorable |
withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflict |
Restorable |
withCreateMode(CreateMode createMode)
Set the create |
Restorable |
withDefaultTtl(Integer defaultTtl)
Set the default |
Restorable |
withId(String id)
Set the id property: Name of the Cosmos DB SQL container. |
Restorable |
withIndexingPolicy(IndexingPolicy indexingPolicy)
Set the indexing |
Restorable |
withPartitionKey(ContainerPartitionKey partitionKey)
Set the partition |
Restorable |
withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restore |
Restorable |
withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
Set the unique |
Restorable |
withVectorEmbeddingPolicy(VectorEmbeddingPolicy vectorEmbeddingPolicy)
Set the vector |
Methods inherited from SqlContainerResource
Methods inherited from java.lang.Object
Constructor Details
RestorableSqlContainerPropertiesResourceContainer
public RestorableSqlContainerPropertiesResourceContainer()
Creates an instance of RestorableSqlContainerPropertiesResourceContainer class.
Method Details
etag
public String etag()
Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.
Returns:
fromJson
public static RestorableSqlContainerPropertiesResourceContainer fromJson(JsonReader jsonReader)
Reads an instance of RestorableSqlContainerPropertiesResourceContainer from the JsonReader.
Parameters:
Returns:
Throws:
rid
public String rid()
Get the rid property: A system generated property. A unique identifier.
Returns:
self
public String self()
Get the self property: A system generated property that specifies the addressable path of the container resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RestorableSqlContainerPropertiesResourceContainer.toJson(JsonWriter jsonWriter)Parameters:
Throws:
ts
public Float ts()
Get the ts property: A system generated property that denotes the last updated timestamp of the resource.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.validate()withAnalyticalStorageTtl
public RestorableSqlContainerPropertiesResourceContainer withAnalyticalStorageTtl(Long analyticalStorageTtl)
Set the analyticalStorageTtl property: Analytical TTL.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withAnalyticalStorageTtl(Long analyticalStorageTtl)Parameters:
withClientEncryptionPolicy
public RestorableSqlContainerPropertiesResourceContainer withClientEncryptionPolicy(ClientEncryptionPolicy clientEncryptionPolicy)
Set the clientEncryptionPolicy property: The client encryption policy for the container.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withClientEncryptionPolicy(ClientEncryptionPolicy clientEncryptionPolicy)Parameters:
withComputedProperties
public RestorableSqlContainerPropertiesResourceContainer withComputedProperties(List
Set the computedProperties property: List of computed properties.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withComputedProperties(List<ComputedProperty> computedProperties)Parameters:
withConflictResolutionPolicy
public RestorableSqlContainerPropertiesResourceContainer withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflictResolutionPolicy property: The conflict resolution policy for the container.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)Parameters:
withCreateMode
public RestorableSqlContainerPropertiesResourceContainer withCreateMode(CreateMode createMode)
Set the createMode property: Enum to indicate the mode of resource creation.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withCreateMode(CreateMode createMode)Parameters:
withDefaultTtl
public RestorableSqlContainerPropertiesResourceContainer withDefaultTtl(Integer defaultTtl)
Set the defaultTtl property: Default time to live.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withDefaultTtl(Integer defaultTtl)Parameters:
withId
public RestorableSqlContainerPropertiesResourceContainer withId(String id)
Set the id property: Name of the Cosmos DB SQL container.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withId(String id)Parameters:
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:
RestorableSqlContainerPropertiesResourceContainer.withIndexingPolicy(IndexingPolicy indexingPolicy)Parameters:
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:
RestorableSqlContainerPropertiesResourceContainer.withPartitionKey(ContainerPartitionKey partitionKey)Parameters:
withRestoreParameters
public RestorableSqlContainerPropertiesResourceContainer withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restoreParameters property: Parameters to indicate the information about the restore.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withRestoreParameters(ResourceRestoreParameters restoreParameters)Parameters:
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:
RestorableSqlContainerPropertiesResourceContainer.withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)Parameters:
withVectorEmbeddingPolicy
public RestorableSqlContainerPropertiesResourceContainer withVectorEmbeddingPolicy(VectorEmbeddingPolicy vectorEmbeddingPolicy)
Set the vectorEmbeddingPolicy property: The vector embedding policy for the container.
Overrides:
RestorableSqlContainerPropertiesResourceContainer.withVectorEmbeddingPolicy(VectorEmbeddingPolicy vectorEmbeddingPolicy)Parameters:
Applies to
Azure SDK for Java