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

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

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

import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Response payload after a job has been successfully unassigned.
 */
@Immutable
public final class UnassignJobResult {

    /*
     * Id of an unassigned job.
     */
    @Generated
    @JsonProperty(value = "jobId")
    private String jobId;

    /*
     * The number of times a job is unassigned. At a maximum 3.
     */
    @Generated
    @JsonProperty(value = "unassignmentCount")
    private int unassignmentCount;

    /**
     * Creates an instance of UnassignJobResult class.
     *
     * @param jobId the jobId value to set.
     * @param unassignmentCount the unassignmentCount value to set.
     */
    @Generated
    @JsonCreator
    private UnassignJobResult(@JsonProperty(value = "jobId") String jobId,
        @JsonProperty(value = "unassignmentCount") int unassignmentCount) {
        this.jobId = jobId;
        this.unassignmentCount = unassignmentCount;
    }

    /**
     * Get the jobId property: Id of an unassigned job.
     *
     * @return the jobId value.
     */
    @Generated
    public String getJobId() {
        return this.jobId;
    }

    /**
     * Get the unassignmentCount property: The number of times a job is unassigned. At a maximum 3.
     *
     * @return the unassignmentCount value.
     */
    @Generated
    public int getUnassignmentCount() {
        return this.unassignmentCount;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy