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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.dataloss.inputs.PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsConditionsArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsArgs Empty = new PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsArgs();

    /**
     * Conditions to apply to the expression.
     * Structure is documented below.
     * 
     */
    @Import(name="conditions")
    private @Nullable Output<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsConditionsArgs> conditions;

    /**
     * @return Conditions to apply to the expression.
     * Structure is documented below.
     * 
     */
    public Optional<Output<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsConditionsArgs>> conditions() {
        return Optional.ofNullable(this.conditions);
    }

    /**
     * The operator to apply to the result of conditions. Default and currently only supported value is AND.
     * Default value is `AND`.
     * Possible values are: `AND`.
     * 
     */
    @Import(name="logicalOperator")
    private @Nullable Output<String> logicalOperator;

    /**
     * @return The operator to apply to the result of conditions. Default and currently only supported value is AND.
     * Default value is `AND`.
     * Possible values are: `AND`.
     * 
     */
    public Optional<Output<String>> logicalOperator() {
        return Optional.ofNullable(this.logicalOperator);
    }

    private PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsArgs() {}

    private PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsArgs(PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsArgs $) {
        this.conditions = $.conditions;
        this.logicalOperator = $.logicalOperator;
    }

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

    public static final class Builder {
        private PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsArgs $;

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

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

        /**
         * @param conditions Conditions to apply to the expression.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder conditions(@Nullable Output<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsConditionsArgs> conditions) {
            $.conditions = conditions;
            return this;
        }

        /**
         * @param conditions Conditions to apply to the expression.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder conditions(PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsConditionsArgs conditions) {
            return conditions(Output.of(conditions));
        }

        /**
         * @param logicalOperator The operator to apply to the result of conditions. Default and currently only supported value is AND.
         * Default value is `AND`.
         * Possible values are: `AND`.
         * 
         * @return builder
         * 
         */
        public Builder logicalOperator(@Nullable Output<String> logicalOperator) {
            $.logicalOperator = logicalOperator;
            return this;
        }

        /**
         * @param logicalOperator The operator to apply to the result of conditions. Default and currently only supported value is AND.
         * Default value is `AND`.
         * Possible values are: `AND`.
         * 
         * @return builder
         * 
         */
        public Builder logicalOperator(String logicalOperator) {
            return logicalOperator(Output.of(logicalOperator));
        }

        public PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformationConditionExpressionsArgs build() {
            return $;
        }
    }

}
