// *** 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.PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PreventionInspectTemplateInspectConfigInfoTypeArgs Empty = new PreventionInspectTemplateInspectConfigInfoTypeArgs();

    /**
     * Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed
     * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
     * 
     */
    @Import(name="name", required=true)
    private Output<String> name;

    /**
     * @return Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed
     * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
     * 
     */
    public Output<String> name() {
        return this.name;
    }

    /**
     * Optional custom sensitivity for this InfoType. This only applies to data profiling.
     * Structure is documented below.
     * 
     */
    @Import(name="sensitivityScore")
    private @Nullable Output<PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs> sensitivityScore;

    /**
     * @return Optional custom sensitivity for this InfoType. This only applies to data profiling.
     * Structure is documented below.
     * 
     */
    public Optional<Output<PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs>> sensitivityScore() {
        return Optional.ofNullable(this.sensitivityScore);
    }

    /**
     * Version name for this InfoType.
     * 
     */
    @Import(name="version")
    private @Nullable Output<String> version;

    /**
     * @return Version name for this InfoType.
     * 
     */
    public Optional<Output<String>> version() {
        return Optional.ofNullable(this.version);
    }

    private PreventionInspectTemplateInspectConfigInfoTypeArgs() {}

    private PreventionInspectTemplateInspectConfigInfoTypeArgs(PreventionInspectTemplateInspectConfigInfoTypeArgs $) {
        this.name = $.name;
        this.sensitivityScore = $.sensitivityScore;
        this.version = $.version;
    }

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

    public static final class Builder {
        private PreventionInspectTemplateInspectConfigInfoTypeArgs $;

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

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

        /**
         * @param name Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed
         * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
         * 
         * @return builder
         * 
         */
        public Builder name(Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed
         * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param sensitivityScore Optional custom sensitivity for this InfoType. This only applies to data profiling.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder sensitivityScore(@Nullable Output<PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs> sensitivityScore) {
            $.sensitivityScore = sensitivityScore;
            return this;
        }

        /**
         * @param sensitivityScore Optional custom sensitivity for this InfoType. This only applies to data profiling.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder sensitivityScore(PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs sensitivityScore) {
            return sensitivityScore(Output.of(sensitivityScore));
        }

        /**
         * @param version Version name for this InfoType.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output<String> version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Version name for this InfoType.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

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

}
