// 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 deleting a job. */
@Fluent
public final class CancelJobRequest {
    /*
     * (Optional) A note that will be appended to the jobs' Notes collection with the current timestamp.
     */
    @JsonProperty(value = "note")
    private String note;

    /*
     * Indicates the outcome of the job, populate this field with your own custom values.
     * If not provided, default value of "Cancelled" is set.
     */
    @JsonProperty(value = "dispositionCode")
    private String dispositionCode;

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

    /**
     * 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 CancelJobRequest object itself.
     */
    public CancelJobRequest setNote(String note) {
        this.note = note;
        return this;
    }

    /**
     * Get the dispositionCode property: Indicates the outcome of the job, populate this field with your own custom
     * values. If not provided, default value of "Cancelled" is set.
     *
     * @return the dispositionCode value.
     */
    public String getDispositionCode() {
        return this.dispositionCode;
    }

    /**
     * Set the dispositionCode property: Indicates the outcome of the job, populate this field with your own custom
     * values. If not provided, default value of "Cancelled" is set.
     *
     * @param dispositionCode the dispositionCode value to set.
     * @return the CancelJobRequest object itself.
     */
    public CancelJobRequest setDispositionCode(String dispositionCode) {
        this.dispositionCode = dispositionCode;
        return this;
    }
}
