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

com.azure.communication.jobrouter.models.ReclassifyExceptionAction 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) 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.Map;

/** An action that modifies labels on a job and then reclassifies it. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("reclassify")
@Fluent
public final class ReclassifyExceptionAction extends ExceptionAction {

    /*
     * (optional) The new classification policy that will determine queue, priority
     * and worker selectors.
     */
    @Generated
    @JsonProperty(value = "classificationPolicyId")
    private String classificationPolicyId;

    /*
     * (optional) Dictionary containing the labels to update (or add if not existing)
     * in key-value pairs
     */
    @JsonProperty(value = "labelsToUpsert")
    private Map labelsToUpsert;

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

    /**
     * Get the classificationPolicyId property: (optional) The new classification policy that will determine queue,
     * priority and worker selectors.
     *
     * @return the classificationPolicyId value.
     */
    @Generated
    public String getClassificationPolicyId() {
        return this.classificationPolicyId;
    }

    /**
     * Set the classificationPolicyId property: (optional) The new classification policy that will determine queue,
     * priority and worker selectors.
     *
     * @param classificationPolicyId the classificationPolicyId value to set.
     * @return the ReclassifyExceptionAction object itself.
     */
    @Generated
    public ReclassifyExceptionAction setClassificationPolicyId(String classificationPolicyId) {
        this.classificationPolicyId = classificationPolicyId;
        return this;
    }

    /**
     * Get the labelsToUpsert property: (optional) Dictionary containing the labels to update (or add if not existing)
     * in key-value pairs.
     *
     * @return the labelsToUpsert value.
     */
    public Map getLabelsToUpsert() {
        return this.labelsToUpsert;
    }

    /**
     * Set the labelsToUpsert property: (optional) Dictionary containing the labels to update (or add if not existing)
     * in key-value pairs.
     *
     * @param labelsToUpsert the labelsToUpsert value to set.
     * @return the ReclassifyExceptionAction object itself.
     */
    public ReclassifyExceptionAction setLabelsToUpsert(Map labelsToUpsert) {
        this.labelsToUpsert = labelsToUpsert;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy