com.pulumi.azurenative.documentdb.inputs.ClientEncryptionPolicyArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.documentdb.inputs;
import com.pulumi.azurenative.documentdb.inputs.ClientEncryptionIncludedPathArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
/**
* Cosmos DB client encryption policy.
*
*/
public final class ClientEncryptionPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final ClientEncryptionPolicyArgs Empty = new ClientEncryptionPolicyArgs();
/**
* Paths of the item that need encryption along with path-specific settings.
*
*/
@Import(name="includedPaths", required=true)
private Output> includedPaths;
/**
* @return Paths of the item that need encryption along with path-specific settings.
*
*/
public Output> includedPaths() {
return this.includedPaths;
}
/**
* Version of the client encryption policy definition. Supported versions are 1 and 2. Version 2 supports id and partition key path encryption.
*
*/
@Import(name="policyFormatVersion", required=true)
private Output policyFormatVersion;
/**
* @return Version of the client encryption policy definition. Supported versions are 1 and 2. Version 2 supports id and partition key path encryption.
*
*/
public Output policyFormatVersion() {
return this.policyFormatVersion;
}
private ClientEncryptionPolicyArgs() {}
private ClientEncryptionPolicyArgs(ClientEncryptionPolicyArgs $) {
this.includedPaths = $.includedPaths;
this.policyFormatVersion = $.policyFormatVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClientEncryptionPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ClientEncryptionPolicyArgs $;
public Builder() {
$ = new ClientEncryptionPolicyArgs();
}
public Builder(ClientEncryptionPolicyArgs defaults) {
$ = new ClientEncryptionPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param includedPaths Paths of the item that need encryption along with path-specific settings.
*
* @return builder
*
*/
public Builder includedPaths(Output> includedPaths) {
$.includedPaths = includedPaths;
return this;
}
/**
* @param includedPaths Paths of the item that need encryption along with path-specific settings.
*
* @return builder
*
*/
public Builder includedPaths(List includedPaths) {
return includedPaths(Output.of(includedPaths));
}
/**
* @param includedPaths Paths of the item that need encryption along with path-specific settings.
*
* @return builder
*
*/
public Builder includedPaths(ClientEncryptionIncludedPathArgs... includedPaths) {
return includedPaths(List.of(includedPaths));
}
/**
* @param policyFormatVersion Version of the client encryption policy definition. Supported versions are 1 and 2. Version 2 supports id and partition key path encryption.
*
* @return builder
*
*/
public Builder policyFormatVersion(Output policyFormatVersion) {
$.policyFormatVersion = policyFormatVersion;
return this;
}
/**
* @param policyFormatVersion Version of the client encryption policy definition. Supported versions are 1 and 2. Version 2 supports id and partition key path encryption.
*
* @return builder
*
*/
public Builder policyFormatVersion(Integer policyFormatVersion) {
return policyFormatVersion(Output.of(policyFormatVersion));
}
public ClientEncryptionPolicyArgs build() {
if ($.includedPaths == null) {
throw new MissingRequiredPropertyException("ClientEncryptionPolicyArgs", "includedPaths");
}
if ($.policyFormatVersion == null) {
throw new MissingRequiredPropertyException("ClientEncryptionPolicyArgs", "policyFormatVersion");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy