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

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Describes an automation rule condition. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "conditionType",
    defaultImpl = AutomationRuleCondition.class)
@JsonTypeName("AutomationRuleCondition")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "Boolean", value = BooleanConditionProperties.class),
    @JsonSubTypes.Type(name = "PropertyArrayChanged", value = PropertyArrayChangedConditionProperties.class),
    @JsonSubTypes.Type(name = "PropertyArray", value = PropertyArrayConditionProperties.class),
    @JsonSubTypes.Type(name = "PropertyChanged", value = PropertyChangedConditionProperties.class),
    @JsonSubTypes.Type(name = "Property", value = PropertyConditionProperties.class)
})
@Immutable
public class AutomationRuleCondition {
    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
