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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.dataloss.outputs.PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformation;
import com.pulumi.gcp.dataloss.outputs.PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsRecordSuppression;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class PreventionDeidentifyTemplateDeidentifyConfigRecordTransformations {
    /**
     * @return Transform the record by applying various field transformations.
     * Structure is documented below.
     * 
     */
    private @Nullable List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformation> fieldTransformations;
    /**
     * @return Configuration defining which records get suppressed entirely. Records that match any suppression rule are omitted from the output.
     * Structure is documented below.
     * 
     */
    private @Nullable List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsRecordSuppression> recordSuppressions;

    private PreventionDeidentifyTemplateDeidentifyConfigRecordTransformations() {}
    /**
     * @return Transform the record by applying various field transformations.
     * Structure is documented below.
     * 
     */
    public List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformation> fieldTransformations() {
        return this.fieldTransformations == null ? List.of() : this.fieldTransformations;
    }
    /**
     * @return Configuration defining which records get suppressed entirely. Records that match any suppression rule are omitted from the output.
     * Structure is documented below.
     * 
     */
    public List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsRecordSuppression> recordSuppressions() {
        return this.recordSuppressions == null ? List.of() : this.recordSuppressions;
    }

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

    public static Builder builder(PreventionDeidentifyTemplateDeidentifyConfigRecordTransformations defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformation> fieldTransformations;
        private @Nullable List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsRecordSuppression> recordSuppressions;
        public Builder() {}
        public Builder(PreventionDeidentifyTemplateDeidentifyConfigRecordTransformations defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fieldTransformations = defaults.fieldTransformations;
    	      this.recordSuppressions = defaults.recordSuppressions;
        }

        @CustomType.Setter
        public Builder fieldTransformations(@Nullable List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformation> fieldTransformations) {
            this.fieldTransformations = fieldTransformations;
            return this;
        }
        public Builder fieldTransformations(PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsFieldTransformation... fieldTransformations) {
            return fieldTransformations(List.of(fieldTransformations));
        }
        @CustomType.Setter
        public Builder recordSuppressions(@Nullable List<PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsRecordSuppression> recordSuppressions) {
            this.recordSuppressions = recordSuppressions;
            return this;
        }
        public Builder recordSuppressions(PreventionDeidentifyTemplateDeidentifyConfigRecordTransformationsRecordSuppression... recordSuppressions) {
            return recordSuppressions(List.of(recordSuppressions));
        }
        public PreventionDeidentifyTemplateDeidentifyConfigRecordTransformations build() {
            final var o = new PreventionDeidentifyTemplateDeidentifyConfigRecordTransformations();
            o.fieldTransformations = fieldTransformations;
            o.recordSuppressions = recordSuppressions;
            return o;
        }
    }
}
