// 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 action to take when the exception is triggered. */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "kind",
        defaultImpl = ExceptionActionInternal.class)
@JsonTypeName("ExceptionActionInternal")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "cancel", value = CancelExceptionActionInternal.class),
    @JsonSubTypes.Type(name = "manual-reclassify", value = ManualReclassifyExceptionActionInternal.class),
    @JsonSubTypes.Type(name = "reclassify", value = ReclassifyExceptionActionInternal.class)
})
@Immutable
public class ExceptionActionInternal {
    /** Creates an instance of ExceptionActionInternal class. */
    public ExceptionActionInternal() {}
}
