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

/** Request payload for completing jobs. */
@Fluent
public final class CompleteJobRequest {
    /*
     * The assignment within the job to complete.
     */
    @JsonProperty(value = "assignmentId", required = true)
    private String assignmentId;

    /*
     * (Optional) A note that will be appended to the jobs' Notes collection with the current timestamp.
     */
    @JsonProperty(value = "note")
    private String note;

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

    /**
     * Get the assignmentId property: The assignment within the job to complete.
     *
     * @return the assignmentId value.
     */
    public String getAssignmentId() {
        return this.assignmentId;
    }

    /**
     * Set the assignmentId property: The assignment within the job to complete.
     *
     * @param assignmentId the assignmentId value to set.
     * @return the CompleteJobRequest object itself.
     */
    public CompleteJobRequest setAssignmentId(String assignmentId) {
        this.assignmentId = assignmentId;
        return this;
    }

    /**
     * Get the note property: (Optional) A note that will be appended to the jobs' Notes collection with the current
     * timestamp.
     *
     * @return the note value.
     */
    public String getNote() {
        return this.note;
    }

    /**
     * Set the note property: (Optional) A note that will be appended to the jobs' Notes collection with the current
     * timestamp.
     *
     * @param note the note value to set.
     * @return the CompleteJobRequest object itself.
     */
    public CompleteJobRequest setNote(String note) {
        this.note = note;
        return this;
    }
}
