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

import com.pulumi.azure.synapse.inputs.SqlPoolVulnerabilityAssessmentBaselineBaselineArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SqlPoolVulnerabilityAssessmentBaselineState Empty = new SqlPoolVulnerabilityAssessmentBaselineState();

    /**
     * One or more `baseline` blocks as defined below.
     * 
     */
    @Import(name="baselines")
    private @Nullable Output<List<SqlPoolVulnerabilityAssessmentBaselineBaselineArgs>> baselines;

    /**
     * @return One or more `baseline` blocks as defined below.
     * 
     */
    public Optional<Output<List<SqlPoolVulnerabilityAssessmentBaselineBaselineArgs>>> baselines() {
        return Optional.ofNullable(this.baselines);
    }

    /**
     * The name which should be used for this Synapse SQL Pool Vulnerability Assessment Rule Baseline.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name which should be used for this Synapse SQL Pool Vulnerability Assessment Rule Baseline.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the vulnerability assessment rule.
     * 
     */
    @Import(name="ruleName")
    private @Nullable Output<String> ruleName;

    /**
     * @return The ID of the vulnerability assessment rule.
     * 
     */
    public Optional<Output<String>> ruleName() {
        return Optional.ofNullable(this.ruleName);
    }

    /**
     * The ID of the Synapse SQL Pool Vulnerability Assessment. Changing this forces a new Synapse SQL Pool Vulnerability Assessment Rule Baseline to be created.
     * 
     */
    @Import(name="sqlPoolVulnerabilityAssessmentId")
    private @Nullable Output<String> sqlPoolVulnerabilityAssessmentId;

    /**
     * @return The ID of the Synapse SQL Pool Vulnerability Assessment. Changing this forces a new Synapse SQL Pool Vulnerability Assessment Rule Baseline to be created.
     * 
     */
    public Optional<Output<String>> sqlPoolVulnerabilityAssessmentId() {
        return Optional.ofNullable(this.sqlPoolVulnerabilityAssessmentId);
    }

    private SqlPoolVulnerabilityAssessmentBaselineState() {}

    private SqlPoolVulnerabilityAssessmentBaselineState(SqlPoolVulnerabilityAssessmentBaselineState $) {
        this.baselines = $.baselines;
        this.name = $.name;
        this.ruleName = $.ruleName;
        this.sqlPoolVulnerabilityAssessmentId = $.sqlPoolVulnerabilityAssessmentId;
    }

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

    public static final class Builder {
        private SqlPoolVulnerabilityAssessmentBaselineState $;

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

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

        /**
         * @param baselines One or more `baseline` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder baselines(@Nullable Output<List<SqlPoolVulnerabilityAssessmentBaselineBaselineArgs>> baselines) {
            $.baselines = baselines;
            return this;
        }

        /**
         * @param baselines One or more `baseline` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder baselines(List<SqlPoolVulnerabilityAssessmentBaselineBaselineArgs> baselines) {
            return baselines(Output.of(baselines));
        }

        /**
         * @param baselines One or more `baseline` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder baselines(SqlPoolVulnerabilityAssessmentBaselineBaselineArgs... baselines) {
            return baselines(List.of(baselines));
        }

        /**
         * @param name The name which should be used for this Synapse SQL Pool Vulnerability Assessment Rule Baseline.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Synapse SQL Pool Vulnerability Assessment Rule Baseline.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param ruleName The ID of the vulnerability assessment rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(@Nullable Output<String> ruleName) {
            $.ruleName = ruleName;
            return this;
        }

        /**
         * @param ruleName The ID of the vulnerability assessment rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(String ruleName) {
            return ruleName(Output.of(ruleName));
        }

        /**
         * @param sqlPoolVulnerabilityAssessmentId The ID of the Synapse SQL Pool Vulnerability Assessment. Changing this forces a new Synapse SQL Pool Vulnerability Assessment Rule Baseline to be created.
         * 
         * @return builder
         * 
         */
        public Builder sqlPoolVulnerabilityAssessmentId(@Nullable Output<String> sqlPoolVulnerabilityAssessmentId) {
            $.sqlPoolVulnerabilityAssessmentId = sqlPoolVulnerabilityAssessmentId;
            return this;
        }

        /**
         * @param sqlPoolVulnerabilityAssessmentId The ID of the Synapse SQL Pool Vulnerability Assessment. Changing this forces a new Synapse SQL Pool Vulnerability Assessment Rule Baseline to be created.
         * 
         * @return builder
         * 
         */
        public Builder sqlPoolVulnerabilityAssessmentId(String sqlPoolVulnerabilityAssessmentId) {
            return sqlPoolVulnerabilityAssessmentId(Output.of(sqlPoolVulnerabilityAssessmentId));
        }

        public SqlPoolVulnerabilityAssessmentBaselineState build() {
            return $;
        }
    }

}
