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

com.azure.communication.jobrouter.implementation.models.CancelJobOptionsInternal 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.implementation.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Request payload for cancelling a job.
 */
@Fluent
public final class CancelJobOptionsInternal {

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

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

    /**
     * Creates an instance of CancelJobOptionsInternal class.
     */
    @Generated
    public CancelJobOptionsInternal() {
    }

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

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

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

    /**
     * Set the dispositionCode property: Indicates the outcome of a 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 CancelJobOptionsInternal object itself.
     */
    @Generated
    public CancelJobOptionsInternal setDispositionCode(String dispositionCode) {
        this.dispositionCode = dispositionCode;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy