// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.synapse.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** A Sql pool vulnerability assessment rule baseline. */
@Fluent
public final class SqlPoolVulnerabilityAssessmentRuleBaselineInner extends ProxyResource {
    /*
     * Resource properties.
     */
    @JsonProperty(value = "properties")
    private SqlPoolVulnerabilityAssessmentRuleBaselineProperties innerProperties;

    /** Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineInner class. */
    public SqlPoolVulnerabilityAssessmentRuleBaselineInner() {
    }

    /**
     * Get the innerProperties property: Resource properties.
     *
     * @return the innerProperties value.
     */
    private SqlPoolVulnerabilityAssessmentRuleBaselineProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the baselineResults property: The rule baseline result.
     *
     * @return the baselineResults value.
     */
    public List<SqlPoolVulnerabilityAssessmentRuleBaselineItem> baselineResults() {
        return this.innerProperties() == null ? null : this.innerProperties().baselineResults();
    }

    /**
     * Set the baselineResults property: The rule baseline result.
     *
     * @param baselineResults the baselineResults value to set.
     * @return the SqlPoolVulnerabilityAssessmentRuleBaselineInner object itself.
     */
    public SqlPoolVulnerabilityAssessmentRuleBaselineInner withBaselineResults(
        List<SqlPoolVulnerabilityAssessmentRuleBaselineItem> baselineResults) {
        if (this.innerProperties() == null) {
            this.innerProperties = new SqlPoolVulnerabilityAssessmentRuleBaselineProperties();
        }
        this.innerProperties().withBaselineResults(baselineResults);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (innerProperties() != null) {
            innerProperties().validate();
        }
    }
}
