// 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.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.securityinsights.models.FusionAlertRuleTemplate;
import com.azure.resourcemanager.securityinsights.models.MLBehaviorAnalyticsAlertRuleTemplate;
import com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityIncidentCreationAlertRuleTemplate;
import com.azure.resourcemanager.securityinsights.models.NrtAlertRuleTemplate;
import com.azure.resourcemanager.securityinsights.models.ScheduledAlertRuleTemplate;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceAlertRuleTemplate;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Alert rule template. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "kind",
    defaultImpl = AlertRuleTemplateInner.class)
@JsonTypeName("AlertRuleTemplate")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "MLBehaviorAnalytics", value = MLBehaviorAnalyticsAlertRuleTemplate.class),
    @JsonSubTypes.Type(name = "Fusion", value = FusionAlertRuleTemplate.class),
    @JsonSubTypes.Type(name = "ThreatIntelligence", value = ThreatIntelligenceAlertRuleTemplate.class),
    @JsonSubTypes.Type(
        name = "MicrosoftSecurityIncidentCreation",
        value = MicrosoftSecurityIncidentCreationAlertRuleTemplate.class),
    @JsonSubTypes.Type(name = "Scheduled", value = ScheduledAlertRuleTemplate.class),
    @JsonSubTypes.Type(name = "NRT", value = NrtAlertRuleTemplate.class)
})
@Immutable
public class AlertRuleTemplateInner extends ProxyResource {
    /*
     * Azure Resource Manager metadata containing createdBy and modifiedBy information.
     */
    @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
    private SystemData systemData;

    /**
     * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
     *
     * @return the systemData value.
     */
    public SystemData systemData() {
        return this.systemData;
    }

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