ClientEncryptionPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ClientEncryptionPolicy
- com.
Implements
public final class ClientEncryptionPolicy
implements JsonSerializable<ClientEncryptionPolicy>
Cosmos DB client encryption policy.
Constructor Summary
Constructor | Description |
---|---|
ClientEncryptionPolicy() |
Creates an instance of Client |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Client |
fromJson(JsonReader jsonReader)
Reads an instance of Client |
List<Client |
includedPaths()
Get the included |
int |
policyFormatVersion()
Get the policy |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Client |
withIncludedPaths(List<ClientEncryptionIncludedPath> includedPaths)
Set the included |
Client |
withPolicyFormatVersion(int policyFormatVersion)
Set the policy |
Methods inherited from java.lang.Object
Constructor Details
ClientEncryptionPolicy
public ClientEncryptionPolicy()
Creates an instance of ClientEncryptionPolicy class.
Method Details
fromJson
public static ClientEncryptionPolicy fromJson(JsonReader jsonReader)
Reads an instance of ClientEncryptionPolicy from the JsonReader.
Parameters:
Returns:
Throws:
includedPaths
public List
Get the includedPaths property: Paths of the item that need encryption along with path-specific settings.
Returns:
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:
toJson
validate
public void validate()
Validates the instance.
withIncludedPaths
public ClientEncryptionPolicy withIncludedPaths(List
Set the includedPaths property: Paths of the item that need encryption along with path-specific settings.
Parameters:
Returns:
withPolicyFormatVersion
public ClientEncryptionPolicy withPolicyFormatVersion(int policyFormatVersion)
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:
Returns:
Applies to
Azure SDK for Java