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

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.fluent.models.ActionResponseInner;

/** An immutable client-side representation of ActionResponse. */
public interface ActionResponse {
    /**
     * 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 etag property: Etag of the azure resource.
     *
     * @return the etag value.
     */
    String etag();

    /**
     * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
     *
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the workflowId property: The name of the logic app's workflow.
     *
     * @return the workflowId value.
     */
    String workflowId();

    /**
     * Gets the logicAppResourceId property: Logic App Resource Id,
     * /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
     *
     * @return the logicAppResourceId value.
     */
    String logicAppResourceId();

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

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

    /** The entirety of the ActionResponse definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The ActionResponse definition stages. */
    interface DefinitionStages {
        /** The first stage of the ActionResponse definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the ActionResponse definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, workspaceName, ruleId.
             *
             * @param resourceGroupName The name of the resource group. The name is case insensitive.
             * @param workspaceName The name of the workspace.
             * @param ruleId Alert rule ID.
             * @return the next definition stage.
             */
            WithCreate withExistingAlertRule(String resourceGroupName, String workspaceName, String ruleId);
        }
        /**
         * The stage of the ActionResponse 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.WithEtag,
                DefinitionStages.WithTriggerUri,
                DefinitionStages.WithLogicAppResourceId {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            ActionResponse create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            ActionResponse create(Context context);
        }
        /** The stage of the ActionResponse definition allowing to specify etag. */
        interface WithEtag {
            /**
             * Specifies the etag property: Etag of the azure resource.
             *
             * @param etag Etag of the azure resource.
             * @return the next definition stage.
             */
            WithCreate withEtag(String etag);
        }
        /** The stage of the ActionResponse definition allowing to specify triggerUri. */
        interface WithTriggerUri {
            /**
             * Specifies the triggerUri property: Logic App Callback URL for this specific workflow..
             *
             * @param triggerUri Logic App Callback URL for this specific workflow.
             * @return the next definition stage.
             */
            WithCreate withTriggerUri(String triggerUri);
        }
        /** The stage of the ActionResponse definition allowing to specify logicAppResourceId. */
        interface WithLogicAppResourceId {
            /**
             * Specifies the logicAppResourceId property: Logic App Resource Id,
             * /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}..
             *
             * @param logicAppResourceId Logic App Resource Id,
             *     /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
             * @return the next definition stage.
             */
            WithCreate withLogicAppResourceId(String logicAppResourceId);
        }
    }
    /**
     * Begins update for the ActionResponse resource.
     *
     * @return the stage of resource update.
     */
    ActionResponse.Update update();

    /** The template for ActionResponse update. */
    interface Update extends UpdateStages.WithEtag, UpdateStages.WithTriggerUri, UpdateStages.WithLogicAppResourceId {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        ActionResponse apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        ActionResponse apply(Context context);
    }
    /** The ActionResponse update stages. */
    interface UpdateStages {
        /** The stage of the ActionResponse update allowing to specify etag. */
        interface WithEtag {
            /**
             * Specifies the etag property: Etag of the azure resource.
             *
             * @param etag Etag of the azure resource.
             * @return the next definition stage.
             */
            Update withEtag(String etag);
        }
        /** The stage of the ActionResponse update allowing to specify triggerUri. */
        interface WithTriggerUri {
            /**
             * Specifies the triggerUri property: Logic App Callback URL for this specific workflow..
             *
             * @param triggerUri Logic App Callback URL for this specific workflow.
             * @return the next definition stage.
             */
            Update withTriggerUri(String triggerUri);
        }
        /** The stage of the ActionResponse update allowing to specify logicAppResourceId. */
        interface WithLogicAppResourceId {
            /**
             * Specifies the logicAppResourceId property: Logic App Resource Id,
             * /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}..
             *
             * @param logicAppResourceId Logic App Resource Id,
             *     /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
             * @return the next definition stage.
             */
            Update withLogicAppResourceId(String logicAppResourceId);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    ActionResponse refresh();

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