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

/** Represents a Log Analytics workspace scope identifier. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("LogAnalytics")
@Immutable
public final class LogAnalyticsIdentifier extends ResourceIdentifier {
    /*
     * The LogAnalytics workspace id that stores this alert.
     */
    @JsonProperty(value = "workspaceId", access = JsonProperty.Access.WRITE_ONLY)
    private String workspaceId;

    /*
     * The azure subscription id for the LogAnalytics workspace storing this alert.
     */
    @JsonProperty(value = "workspaceSubscriptionId", access = JsonProperty.Access.WRITE_ONLY)
    private String workspaceSubscriptionId;

    /*
     * The azure resource group for the LogAnalytics workspace storing this alert
     */
    @JsonProperty(value = "workspaceResourceGroup", access = JsonProperty.Access.WRITE_ONLY)
    private String workspaceResourceGroup;

    /*
     * (optional) The LogAnalytics agent id reporting the event that this alert is based on.
     */
    @JsonProperty(value = "agentId", access = JsonProperty.Access.WRITE_ONLY)
    private String agentId;

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

    /**
     * Get the workspaceId property: The LogAnalytics workspace id that stores this alert.
     *
     * @return the workspaceId value.
     */
    public String workspaceId() {
        return this.workspaceId;
    }

    /**
     * Get the workspaceSubscriptionId property: The azure subscription id for the LogAnalytics workspace storing this
     * alert.
     *
     * @return the workspaceSubscriptionId value.
     */
    public String workspaceSubscriptionId() {
        return this.workspaceSubscriptionId;
    }

    /**
     * Get the workspaceResourceGroup property: The azure resource group for the LogAnalytics workspace storing this
     * alert.
     *
     * @return the workspaceResourceGroup value.
     */
    public String workspaceResourceGroup() {
        return this.workspaceResourceGroup;
    }

    /**
     * Get the agentId property: (optional) The LogAnalytics agent id reporting the event that this alert is based on.
     *
     * @return the agentId value.
     */
    public String agentId() {
        return this.agentId;
    }

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