// 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.implementation.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 UnassignJobResultInternal {
    /*
     * 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;

    /** Creates an instance of UnassignJobResultInternal class. */
    public UnassignJobResultInternal() {}

    /**
     * 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 UnassignJobResultInternal object itself.
     */
    public UnassignJobResultInternal 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 UnassignJobResultInternal object itself.
     */
    public UnassignJobResultInternal setUnassignmentCount(int unassignmentCount) {
        this.unassignmentCount = unassignmentCount;
        return this;
    }
}
