// *** 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.gcp.bigquerydatapolicy.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


public final class DataPolicyDataMaskingPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataPolicyDataMaskingPolicyArgs Empty = new DataPolicyDataMaskingPolicyArgs();

    /**
     * The available masking rules. Learn more here: https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
     * Possible values are: `SHA256`, `ALWAYS_NULL`, `DEFAULT_MASKING_VALUE`, `LAST_FOUR_CHARACTERS`, `FIRST_FOUR_CHARACTERS`, `EMAIL_MASK`, `DATE_YEAR_MASK`.
     * 
     */
    @Import(name="predefinedExpression", required=true)
    private Output<String> predefinedExpression;

    /**
     * @return The available masking rules. Learn more here: https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
     * Possible values are: `SHA256`, `ALWAYS_NULL`, `DEFAULT_MASKING_VALUE`, `LAST_FOUR_CHARACTERS`, `FIRST_FOUR_CHARACTERS`, `EMAIL_MASK`, `DATE_YEAR_MASK`.
     * 
     */
    public Output<String> predefinedExpression() {
        return this.predefinedExpression;
    }

    private DataPolicyDataMaskingPolicyArgs() {}

    private DataPolicyDataMaskingPolicyArgs(DataPolicyDataMaskingPolicyArgs $) {
        this.predefinedExpression = $.predefinedExpression;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DataPolicyDataMaskingPolicyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DataPolicyDataMaskingPolicyArgs $;

        public Builder() {
            $ = new DataPolicyDataMaskingPolicyArgs();
        }

        public Builder(DataPolicyDataMaskingPolicyArgs defaults) {
            $ = new DataPolicyDataMaskingPolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param predefinedExpression The available masking rules. Learn more here: https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
         * Possible values are: `SHA256`, `ALWAYS_NULL`, `DEFAULT_MASKING_VALUE`, `LAST_FOUR_CHARACTERS`, `FIRST_FOUR_CHARACTERS`, `EMAIL_MASK`, `DATE_YEAR_MASK`.
         * 
         * @return builder
         * 
         */
        public Builder predefinedExpression(Output<String> predefinedExpression) {
            $.predefinedExpression = predefinedExpression;
            return this;
        }

        /**
         * @param predefinedExpression The available masking rules. Learn more here: https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
         * Possible values are: `SHA256`, `ALWAYS_NULL`, `DEFAULT_MASKING_VALUE`, `LAST_FOUR_CHARACTERS`, `FIRST_FOUR_CHARACTERS`, `EMAIL_MASK`, `DATE_YEAR_MASK`.
         * 
         * @return builder
         * 
         */
        public Builder predefinedExpression(String predefinedExpression) {
            return predefinedExpression(Output.of(predefinedExpression));
        }

        public DataPolicyDataMaskingPolicyArgs build() {
            $.predefinedExpression = Objects.requireNonNull($.predefinedExpression, "expected parameter 'predefinedExpression' to be non-null");
            return $;
        }
    }

}
