// 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.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation
 * capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "actionType")
@JsonTypeName("LogicApp")
@Fluent
public final class AutomationActionLogicApp extends AutomationAction {
    /*
     * The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have
     * permissions to trigger the Logic App
     */
    @JsonProperty(value = "logicAppResourceId")
    private String logicAppResourceId;

    /*
     * The Logic App trigger URI endpoint (it will not be included in any response).
     */
    @JsonProperty(value = "uri")
    private String uri;

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

    /**
     * Get the logicAppResourceId property: The triggered Logic App Azure Resource ID. This can also reside on other
     * subscriptions, given that you have permissions to trigger the Logic App.
     *
     * @return the logicAppResourceId value.
     */
    public String logicAppResourceId() {
        return this.logicAppResourceId;
    }

    /**
     * Set the logicAppResourceId property: The triggered Logic App Azure Resource ID. This can also reside on other
     * subscriptions, given that you have permissions to trigger the Logic App.
     *
     * @param logicAppResourceId the logicAppResourceId value to set.
     * @return the AutomationActionLogicApp object itself.
     */
    public AutomationActionLogicApp withLogicAppResourceId(String logicAppResourceId) {
        this.logicAppResourceId = logicAppResourceId;
        return this;
    }

    /**
     * Get the uri property: The Logic App trigger URI endpoint (it will not be included in any response).
     *
     * @return the uri value.
     */
    public String uri() {
        return this.uri;
    }

    /**
     * Set the uri property: The Logic App trigger URI endpoint (it will not be included in any response).
     *
     * @param uri the uri value to set.
     * @return the AutomationActionLogicApp object itself.
     */
    public AutomationActionLogicApp withUri(String uri) {
        this.uri = uri;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
