Class ClientEncryptionPolicy
java.lang.Object
com.azure.resourcemanager.cosmos.models.ClientEncryptionPolicy
Cosmos DB client encryption policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClientEncryptionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the includedPaths property: Paths of the item that need encryption along with path-specific settings.intGet the policyFormatVersion property: Version of the client encryption policy definition.voidvalidate()Validates the instance.withIncludedPaths(List<ClientEncryptionIncludedPath> includedPaths) Set the includedPaths property: Paths of the item that need encryption along with path-specific settings.withPolicyFormatVersion(int policyFormatVersion) Set the policyFormatVersion property: Version of the client encryption policy definition.
-
Constructor Details
-
ClientEncryptionPolicy
public ClientEncryptionPolicy()Creates an instance of ClientEncryptionPolicy class.
-
-
Method Details
-
includedPaths
Get the includedPaths property: Paths of the item that need encryption along with path-specific settings.- Returns:
- the includedPaths value.
-
withIncludedPaths
Set the includedPaths property: Paths of the item that need encryption along with path-specific settings.- Parameters:
includedPaths- the includedPaths value to set.- Returns:
- the ClientEncryptionPolicy object itself.
-
policyFormatVersion
public int policyFormatVersion()Get the policyFormatVersion property: Version of the client encryption policy definition. Supported versions are 1 and 2. Version 2 supports id and partition key path encryption.- Returns:
- the policyFormatVersion value.
-
withPolicyFormatVersion
Set the policyFormatVersion property: Version of the client encryption policy definition. Supported versions are 1 and 2. Version 2 supports id and partition key path encryption.- Parameters:
policyFormatVersion- the policyFormatVersion value to set.- Returns:
- the ClientEncryptionPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-