// 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.Fluent;
import com.azure.resourcemanager.securityinsights.models.Anomalies;
import com.azure.resourcemanager.securityinsights.models.EntityAnalytics;
import com.azure.resourcemanager.securityinsights.models.EyesOn;
import com.azure.resourcemanager.securityinsights.models.ResourceWithEtag;
import com.azure.resourcemanager.securityinsights.models.Ueba;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** The Setting. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "kind",
    defaultImpl = SettingsInner.class)
@JsonTypeName("Settings")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "Anomalies", value = Anomalies.class),
    @JsonSubTypes.Type(name = "EyesOn", value = EyesOn.class),
    @JsonSubTypes.Type(name = "EntityAnalytics", value = EntityAnalytics.class),
    @JsonSubTypes.Type(name = "Ueba", value = Ueba.class)
})
@Fluent
public class SettingsInner extends ResourceWithEtag {
    /** {@inheritDoc} */
    @Override
    public SettingsInner withEtag(String etag) {
        super.withEtag(etag);
        return this;
    }

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