// 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 Log Analytics Workspace to which event data will be exported. Security alerts data will reside in the
 * 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the
 * 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center
 * Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender
 * for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "actionType")
@JsonTypeName("Workspace")
@Fluent
public final class AutomationActionWorkspace extends AutomationAction {
    /*
     * The fully qualified Log Analytics Workspace Azure Resource ID.
     */
    @JsonProperty(value = "workspaceResourceId")
    private String workspaceResourceId;

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

    /**
     * Get the workspaceResourceId property: The fully qualified Log Analytics Workspace Azure Resource ID.
     *
     * @return the workspaceResourceId value.
     */
    public String workspaceResourceId() {
        return this.workspaceResourceId;
    }

    /**
     * Set the workspaceResourceId property: The fully qualified Log Analytics Workspace Azure Resource ID.
     *
     * @param workspaceResourceId the workspaceResourceId value to set.
     * @return the AutomationActionWorkspace object itself.
     */
    public AutomationActionWorkspace withWorkspaceResourceId(String workspaceResourceId) {
        this.workspaceResourceId = workspaceResourceId;
        return this;
    }

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