// 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.AccountEntity;
import com.azure.resourcemanager.securityinsights.models.AzureResourceEntity;
import com.azure.resourcemanager.securityinsights.models.CloudApplicationEntity;
import com.azure.resourcemanager.securityinsights.models.DnsEntity;
import com.azure.resourcemanager.securityinsights.models.FileEntity;
import com.azure.resourcemanager.securityinsights.models.FileHashEntity;
import com.azure.resourcemanager.securityinsights.models.HostEntity;
import com.azure.resourcemanager.securityinsights.models.HuntingBookmark;
import com.azure.resourcemanager.securityinsights.models.IoTDeviceEntity;
import com.azure.resourcemanager.securityinsights.models.IpEntity;
import com.azure.resourcemanager.securityinsights.models.MailClusterEntity;
import com.azure.resourcemanager.securityinsights.models.MailMessageEntity;
import com.azure.resourcemanager.securityinsights.models.MailboxEntity;
import com.azure.resourcemanager.securityinsights.models.MalwareEntity;
import com.azure.resourcemanager.securityinsights.models.NicEntity;
import com.azure.resourcemanager.securityinsights.models.ProcessEntity;
import com.azure.resourcemanager.securityinsights.models.RegistryKeyEntity;
import com.azure.resourcemanager.securityinsights.models.RegistryValueEntity;
import com.azure.resourcemanager.securityinsights.models.SecurityAlert;
import com.azure.resourcemanager.securityinsights.models.SecurityGroupEntity;
import com.azure.resourcemanager.securityinsights.models.SubmissionMailEntity;
import com.azure.resourcemanager.securityinsights.models.UrlEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Specific entity. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "kind",
    defaultImpl = EntityInner.class)
@JsonTypeName("Entity")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "SecurityAlert", value = SecurityAlert.class),
    @JsonSubTypes.Type(name = "Bookmark", value = HuntingBookmark.class),
    @JsonSubTypes.Type(name = "Account", value = AccountEntity.class),
    @JsonSubTypes.Type(name = "AzureResource", value = AzureResourceEntity.class),
    @JsonSubTypes.Type(name = "CloudApplication", value = CloudApplicationEntity.class),
    @JsonSubTypes.Type(name = "DnsResolution", value = DnsEntity.class),
    @JsonSubTypes.Type(name = "File", value = FileEntity.class),
    @JsonSubTypes.Type(name = "FileHash", value = FileHashEntity.class),
    @JsonSubTypes.Type(name = "Host", value = HostEntity.class),
    @JsonSubTypes.Type(name = "IoTDevice", value = IoTDeviceEntity.class),
    @JsonSubTypes.Type(name = "Ip", value = IpEntity.class),
    @JsonSubTypes.Type(name = "Mailbox", value = MailboxEntity.class),
    @JsonSubTypes.Type(name = "MailCluster", value = MailClusterEntity.class),
    @JsonSubTypes.Type(name = "MailMessage", value = MailMessageEntity.class),
    @JsonSubTypes.Type(name = "Malware", value = MalwareEntity.class),
    @JsonSubTypes.Type(name = "Process", value = ProcessEntity.class),
    @JsonSubTypes.Type(name = "RegistryKey", value = RegistryKeyEntity.class),
    @JsonSubTypes.Type(name = "RegistryValue", value = RegistryValueEntity.class),
    @JsonSubTypes.Type(name = "SecurityGroup", value = SecurityGroupEntity.class),
    @JsonSubTypes.Type(name = "SubmissionMail", value = SubmissionMailEntity.class),
    @JsonSubTypes.Type(name = "Url", value = UrlEntity.class),
    @JsonSubTypes.Type(name = "Nic", value = NicEntity.class)
})
@Immutable
public class EntityInner 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() {
    }
}
