// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.jobrouter.implementation.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;

/** The trigger for this exception rule. */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "kind",
        defaultImpl = ExceptionTriggerInternal.class)
@JsonTypeName("ExceptionTriggerInternal")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "queue-length", value = QueueLengthExceptionTriggerInternal.class),
    @JsonSubTypes.Type(name = "wait-time", value = WaitTimeExceptionTriggerInternal.class)
})
@Immutable
public class ExceptionTriggerInternal {
    /** Creates an instance of ExceptionTriggerInternal class. */
    public ExceptionTriggerInternal() {}
}
