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

package com.azure.resourcemanager.security.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.RuleResultsInner;
import java.util.List;

/** An immutable client-side representation of RuleResults. */
public interface RuleResults {
    /**
     * 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 properties property: Rule results properties.
     *
     * @return the properties value.
     */
    RuleResultsProperties properties();

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

    /** The entirety of the RuleResults definition. */
    interface Definition extends DefinitionStages.Blank, DefinitionStages.WithScope, DefinitionStages.WithCreate {
    }
    /** The RuleResults definition stages. */
    interface DefinitionStages {
        /** The first stage of the RuleResults definition. */
        interface Blank extends WithScope {
        }
        /** The stage of the RuleResults definition allowing to specify parent resource. */
        interface WithScope {
            /**
             * Specifies resourceId.
             *
             * @param resourceId The identifier of the resource.
             * @return the next definition stage.
             */
            WithCreate withExistingResourceId(String resourceId);
        }
        /**
         * The stage of the RuleResults 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.WithLatestScan, DefinitionStages.WithResults, DefinitionStages.WithWorkspaceId {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            RuleResults create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            RuleResults create(Context context);
        }
        /** The stage of the RuleResults definition allowing to specify latestScan. */
        interface WithLatestScan {
            /**
             * Specifies the latestScan property: Take results from latest scan..
             *
             * @param latestScan Take results from latest scan.
             * @return the next definition stage.
             */
            WithCreate withLatestScan(Boolean latestScan);
        }
        /** The stage of the RuleResults definition allowing to specify results. */
        interface WithResults {
            /**
             * Specifies the results property: Expected results to be inserted into the baseline. Leave this field empty
             * it LatestScan == true..
             *
             * @param results Expected results to be inserted into the baseline. Leave this field empty it LatestScan ==
             *     true.
             * @return the next definition stage.
             */
            WithCreate withResults(List<List<String>> results);
        }
        /** The stage of the RuleResults definition allowing to specify workspaceId. */
        interface WithWorkspaceId {
            /**
             * Specifies the workspaceId property: The workspace Id..
             *
             * @param workspaceId The workspace Id.
             * @return the next definition stage.
             */
            WithCreate withWorkspaceId(String workspaceId);
        }
    }
    /**
     * Begins update for the RuleResults resource.
     *
     * @return the stage of resource update.
     */
    RuleResults.Update update();

    /** The template for RuleResults update. */
    interface Update extends UpdateStages.WithLatestScan, UpdateStages.WithResults, UpdateStages.WithWorkspaceId {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        RuleResults apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        RuleResults apply(Context context);
    }
    /** The RuleResults update stages. */
    interface UpdateStages {
        /** The stage of the RuleResults update allowing to specify latestScan. */
        interface WithLatestScan {
            /**
             * Specifies the latestScan property: Take results from latest scan..
             *
             * @param latestScan Take results from latest scan.
             * @return the next definition stage.
             */
            Update withLatestScan(Boolean latestScan);
        }
        /** The stage of the RuleResults update allowing to specify results. */
        interface WithResults {
            /**
             * Specifies the results property: Expected results to be inserted into the baseline. Leave this field empty
             * it LatestScan == true..
             *
             * @param results Expected results to be inserted into the baseline. Leave this field empty it LatestScan ==
             *     true.
             * @return the next definition stage.
             */
            Update withResults(List<List<String>> results);
        }
        /** The stage of the RuleResults update allowing to specify workspaceId. */
        interface WithWorkspaceId {
            /**
             * Specifies the workspaceId property: The workspace Id..
             *
             * @param workspaceId The workspace Id.
             * @return the next definition stage.
             */
            Update withWorkspaceId(String workspaceId);
        }
    }
}
