// 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.fasterxml.jackson.annotation.JsonProperty;

/** Response payload after a job has been successfully unassigned. */
@Fluent
public final class UnassignJobResult {
    /*
     * The Id of the job unassigned.
     */
    @JsonProperty(value = "jobId", required = true)
    private String jobId;

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

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

    /**
     * Set the jobId property: The Id of the job unassigned.
     *
     * @param jobId the jobId value to set.
     * @return the UnassignJobResult object itself.
     */
    public UnassignJobResult setJobId(String jobId) {
        this.jobId = jobId;
        return this;
    }

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

    /**
     * Set the unassignmentCount property: The number of times a job is unassigned. At a maximum 3.
     *
     * @param unassignmentCount the unassignmentCount value to set.
     * @return the UnassignJobResult object itself.
     */
    public UnassignJobResult setUnassignmentCount(int unassignmentCount) {
        this.unassignmentCount = unassignmentCount;
        return this;
    }
}
