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

com.azure.communication.jobrouter.implementation.models.JobMatchingModeInternal 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.Generated;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * A matching mode of one of the following types:
 * QueueAndMatchMode: Used when matching worker to a job is required to be done right after job is queued.
 * ScheduleAndSuspendMode: Used for scheduling jobs to be queued at a future time. At specified time, matching of a
 * worker to the job will not start automatically.
 * SuspendMode: Used when matching workers to a job needs to be suspended.
 */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "kind",
    defaultImpl = JobMatchingModeInternal.class)
@JsonTypeName("JobMatchingModeInternal")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "scheduleAndSuspend", value = ScheduleAndSuspendModeInternal.class),
    @JsonSubTypes.Type(name = "queueAndMatch", value = QueueAndMatchModeInternal.class),
    @JsonSubTypes.Type(name = "suspend", value = SuspendModeInternal.class) })
@Immutable
public class JobMatchingModeInternal {

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy