All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.communication.jobrouter.implementation.models.ExceptionActionInternal Maven / Gradle / Ivy

There is a newer version: 1.1.11
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.jobrouter.implementation.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonProperty;
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 = "manualReclassify", value = ManualReclassifyExceptionActionInternal.class),
    @JsonSubTypes.Type(name = "reclassify", value = ReclassifyExceptionActionInternal.class) })
@Fluent
public class ExceptionActionInternal {

    /*
     * Unique Id of the exception action.
     */
    @Generated
    @JsonProperty(value = "id")
    private String id;

    /**
     * Creates an instance of ExceptionActionInternal class.
     */
    @Generated
    public ExceptionActionInternal() {
    }

    /**
     * Get the id property: Unique Id of the exception action.
     *
     * @return the id value.
     */
    @Generated
    public String getId() {
        return this.id;
    }

    /**
     * Set the id property: Unique Id of the exception action.
     *
     * @param id the id value to set.
     * @return the ExceptionActionInternal object itself.
     */
    @Generated
    public ExceptionActionInternal setId(String id) {
        this.id = id;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy