// 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.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner;
import java.util.List;

/** An immutable client-side representation of SqlPoolVulnerabilityAssessmentRuleBaseline. */
public interface SqlPoolVulnerabilityAssessmentRuleBaseline {
    /**
     * Gets the id property: Fully qualified resource Id for the resource.
     *
     * @return the id value.
     */
    String id();

    /**
     * Gets the name property: The name of the resource.
     *
     * @return the name value.
     */
    String name();

    /**
     * Gets the type property: The type of the resource.
     *
     * @return the type value.
     */
    String type();

    /**
     * Gets the baselineResults property: The rule baseline result.
     *
     * @return the baselineResults value.
     */
    List<SqlPoolVulnerabilityAssessmentRuleBaselineItem> baselineResults();

    /**
     * Gets the name of the resource group.
     *
     * @return the name of the resource group.
     */
    String resourceGroupName();

    /**
     * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner
     * object.
     *
     * @return the inner object.
     */
    SqlPoolVulnerabilityAssessmentRuleBaselineInner innerModel();

    /** The entirety of the SqlPoolVulnerabilityAssessmentRuleBaseline definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The SqlPoolVulnerabilityAssessmentRuleBaseline definition stages. */
    interface DefinitionStages {
        /** The first stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition. */
        interface Blank extends WithParentResource {
        }
        /**
         * The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition allowing to specify parent resource.
         */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId.
             *
             * @param resourceGroupName The name of the resource group. The name is case insensitive.
             * @param workspaceName The name of the workspace.
             * @param sqlPoolName SQL pool name.
             * @param vulnerabilityAssessmentName The name of the vulnerability assessment.
             * @param ruleId The vulnerability assessment rule ID.
             * @return the next definition stage.
             */
            WithCreate withExistingRule(
                String resourceGroupName,
                String workspaceName,
                String sqlPoolName,
                VulnerabilityAssessmentName vulnerabilityAssessmentName,
                String ruleId);
        }
        /**
         * The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition which contains all the minimum
         * required properties for the resource to be created, but also allows for any other optional properties to be
         * specified.
         */
        interface WithCreate extends DefinitionStages.WithBaselineResults {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            SqlPoolVulnerabilityAssessmentRuleBaseline create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            SqlPoolVulnerabilityAssessmentRuleBaseline create(Context context);
        }
        /**
         * The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition allowing to specify baselineResults.
         */
        interface WithBaselineResults {
            /**
             * Specifies the baselineResults property: The rule baseline result.
             *
             * @param baselineResults The rule baseline result.
             * @return the next definition stage.
             */
            WithCreate withBaselineResults(List<SqlPoolVulnerabilityAssessmentRuleBaselineItem> baselineResults);
        }
    }
    /**
     * Begins update for the SqlPoolVulnerabilityAssessmentRuleBaseline resource.
     *
     * @return the stage of resource update.
     */
    SqlPoolVulnerabilityAssessmentRuleBaseline.Update update();

    /** The template for SqlPoolVulnerabilityAssessmentRuleBaseline update. */
    interface Update extends UpdateStages.WithBaselineResults {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        SqlPoolVulnerabilityAssessmentRuleBaseline apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        SqlPoolVulnerabilityAssessmentRuleBaseline apply(Context context);
    }
    /** The SqlPoolVulnerabilityAssessmentRuleBaseline update stages. */
    interface UpdateStages {
        /** The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline update allowing to specify baselineResults. */
        interface WithBaselineResults {
            /**
             * Specifies the baselineResults property: The rule baseline result.
             *
             * @param baselineResults The rule baseline result.
             * @return the next definition stage.
             */
            Update withBaselineResults(List<SqlPoolVulnerabilityAssessmentRuleBaselineItem> baselineResults);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    SqlPoolVulnerabilityAssessmentRuleBaseline refresh();

    /**
     * Refreshes the resource to sync with Azure.
     *
     * @param context The context to associate with this operation.
     * @return the refreshed resource.
     */
    SqlPoolVulnerabilityAssessmentRuleBaseline refresh(Context context);
}
