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

com.azure.communication.jobrouter.models.ManualReclassifyExceptionAction Maven / Gradle / Ivy

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

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;

/** An action that manually reclassifies a job by providing the queue, priority and worker selectors. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("manual-reclassify")
@Fluent
public final class ManualReclassifyExceptionAction extends ExceptionAction {

    /*
     * Updated QueueId.
     */
    @Generated
    @JsonProperty(value = "queueId")
    private String queueId;

    /*
     * Updated Priority.
     */
    @Generated
    @JsonProperty(value = "priority")
    private Integer priority;

    /*
     * Updated WorkerSelectors.
     */
    @Generated
    @JsonProperty(value = "workerSelectors")
    private List workerSelectors;

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

    /**
     * Get the queueId property: Updated QueueId.
     *
     * @return the queueId value.
     */
    @Generated
    public String getQueueId() {
        return this.queueId;
    }

    /**
     * Set the queueId property: Updated QueueId.
     *
     * @param queueId the queueId value to set.
     * @return the ManualReclassifyExceptionAction object itself.
     */
    @Generated
    public ManualReclassifyExceptionAction setQueueId(String queueId) {
        this.queueId = queueId;
        return this;
    }

    /**
     * Get the priority property: Updated Priority.
     *
     * @return the priority value.
     */
    @Generated
    public Integer getPriority() {
        return this.priority;
    }

    /**
     * Set the priority property: Updated Priority.
     *
     * @param priority the priority value to set.
     * @return the ManualReclassifyExceptionAction object itself.
     */
    @Generated
    public ManualReclassifyExceptionAction setPriority(Integer priority) {
        this.priority = priority;
        return this;
    }

    /**
     * Get the workerSelectors property: Updated WorkerSelectors.
     *
     * @return the workerSelectors value.
     */
    @Generated
    public List getWorkerSelectors() {
        return this.workerSelectors;
    }

    /**
     * Set the workerSelectors property: Updated WorkerSelectors.
     *
     * @param workerSelectors the workerSelectors value to set.
     * @return the ManualReclassifyExceptionAction object itself.
     */
    @Generated
    public ManualReclassifyExceptionAction setWorkerSelectors(List workerSelectors) {
        this.workerSelectors = workerSelectors;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy