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

com.pulumi.azurenative.synapse.SqlPoolVulnerabilityAssessmentRuleBaselineArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.synapse;

import com.pulumi.azurenative.synapse.inputs.SqlPoolVulnerabilityAssessmentRuleBaselineItemArgs;
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 SqlPoolVulnerabilityAssessmentRuleBaselineArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlPoolVulnerabilityAssessmentRuleBaselineArgs Empty = new SqlPoolVulnerabilityAssessmentRuleBaselineArgs();

    /**
     * The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule and master for workspace level rule).
     * 
     */
    @Import(name="baselineName")
    private @Nullable Output baselineName;

    /**
     * @return The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule and master for workspace level rule).
     * 
     */
    public Optional> baselineName() {
        return Optional.ofNullable(this.baselineName);
    }

    /**
     * The rule baseline result
     * 
     */
    @Import(name="baselineResults", required=true)
    private Output> baselineResults;

    /**
     * @return The rule baseline result
     * 
     */
    public Output> baselineResults() {
        return this.baselineResults;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

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

    /**
     * @return The vulnerability assessment rule ID.
     * 
     */
    public Output ruleId() {
        return this.ruleId;
    }

    /**
     * SQL pool name
     * 
     */
    @Import(name="sqlPoolName", required=true)
    private Output sqlPoolName;

    /**
     * @return SQL pool name
     * 
     */
    public Output sqlPoolName() {
        return this.sqlPoolName;
    }

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

    /**
     * @return The name of the vulnerability assessment.
     * 
     */
    public Output vulnerabilityAssessmentName() {
        return this.vulnerabilityAssessmentName;
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private SqlPoolVulnerabilityAssessmentRuleBaselineArgs() {}

    private SqlPoolVulnerabilityAssessmentRuleBaselineArgs(SqlPoolVulnerabilityAssessmentRuleBaselineArgs $) {
        this.baselineName = $.baselineName;
        this.baselineResults = $.baselineResults;
        this.resourceGroupName = $.resourceGroupName;
        this.ruleId = $.ruleId;
        this.sqlPoolName = $.sqlPoolName;
        this.vulnerabilityAssessmentName = $.vulnerabilityAssessmentName;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private SqlPoolVulnerabilityAssessmentRuleBaselineArgs $;

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

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

        /**
         * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule and master for workspace level rule).
         * 
         * @return builder
         * 
         */
        public Builder baselineName(@Nullable Output baselineName) {
            $.baselineName = baselineName;
            return this;
        }

        /**
         * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule and master for workspace level rule).
         * 
         * @return builder
         * 
         */
        public Builder baselineName(String baselineName) {
            return baselineName(Output.of(baselineName));
        }

        /**
         * @param baselineResults The rule baseline result
         * 
         * @return builder
         * 
         */
        public Builder baselineResults(Output> baselineResults) {
            $.baselineResults = baselineResults;
            return this;
        }

        /**
         * @param baselineResults The rule baseline result
         * 
         * @return builder
         * 
         */
        public Builder baselineResults(List baselineResults) {
            return baselineResults(Output.of(baselineResults));
        }

        /**
         * @param baselineResults The rule baseline result
         * 
         * @return builder
         * 
         */
        public Builder baselineResults(SqlPoolVulnerabilityAssessmentRuleBaselineItemArgs... baselineResults) {
            return baselineResults(List.of(baselineResults));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param ruleId The vulnerability assessment rule ID.
         * 
         * @return builder
         * 
         */
        public Builder ruleId(Output ruleId) {
            $.ruleId = ruleId;
            return this;
        }

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

        /**
         * @param sqlPoolName SQL pool name
         * 
         * @return builder
         * 
         */
        public Builder sqlPoolName(Output sqlPoolName) {
            $.sqlPoolName = sqlPoolName;
            return this;
        }

        /**
         * @param sqlPoolName SQL pool name
         * 
         * @return builder
         * 
         */
        public Builder sqlPoolName(String sqlPoolName) {
            return sqlPoolName(Output.of(sqlPoolName));
        }

        /**
         * @param vulnerabilityAssessmentName The name of the vulnerability assessment.
         * 
         * @return builder
         * 
         */
        public Builder vulnerabilityAssessmentName(Output vulnerabilityAssessmentName) {
            $.vulnerabilityAssessmentName = vulnerabilityAssessmentName;
            return this;
        }

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

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public SqlPoolVulnerabilityAssessmentRuleBaselineArgs build() {
            if ($.baselineResults == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentRuleBaselineArgs", "baselineResults");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentRuleBaselineArgs", "resourceGroupName");
            }
            if ($.ruleId == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentRuleBaselineArgs", "ruleId");
            }
            if ($.sqlPoolName == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentRuleBaselineArgs", "sqlPoolName");
            }
            if ($.vulnerabilityAssessmentName == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentRuleBaselineArgs", "vulnerabilityAssessmentName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentRuleBaselineArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy