All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.synapse.SqlPoolVulnerabilityAssessmentBaselineArgs Maven / Gradle / Ivy

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

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


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

    public static final SqlPoolVulnerabilityAssessmentBaselineArgs Empty = new SqlPoolVulnerabilityAssessmentBaselineArgs();

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

    /**
     * @return One or more `baseline` blocks as defined below.
     * 
     */
    public Optional>> 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 name;

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

    /**
     * The ID of the vulnerability assessment rule.
     * 
     */
    @Import(name="ruleName", required=true)
    private Output ruleName;

    /**
     * @return The ID of the vulnerability assessment rule.
     * 
     */
    public Output ruleName() {
        return 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", required=true)
    private Output 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 Output sqlPoolVulnerabilityAssessmentId() {
        return this.sqlPoolVulnerabilityAssessmentId;
    }

    private SqlPoolVulnerabilityAssessmentBaselineArgs() {}

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

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

    public static final class Builder {
        private SqlPoolVulnerabilityAssessmentBaselineArgs $;

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

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

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

        /**
         * @param baselines One or more `baseline` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder baselines(List 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 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(Output 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(Output 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 SqlPoolVulnerabilityAssessmentBaselineArgs build() {
            if ($.ruleName == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentBaselineArgs", "ruleName");
            }
            if ($.sqlPoolVulnerabilityAssessmentId == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentBaselineArgs", "sqlPoolVulnerabilityAssessmentId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy