com.azure.communication.jobrouter.implementation.models.CancelExceptionActionInternal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-jobrouter Show documentation
Show all versions of azure-communication-jobrouter Show documentation
This package contains a Java SDK for JobRouter Azure Communication Service.
The newest version!
// 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;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* An action that marks a job as cancelled.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("cancel")
@Fluent
public final class CancelExceptionActionInternal extends ExceptionActionInternal {
/*
* 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.
*/
@Generated
@JsonProperty(value = "dispositionCode")
private String dispositionCode;
/**
* Creates an instance of CancelExceptionActionInternal class.
*/
@Generated
public CancelExceptionActionInternal() {
}
/**
* 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 CancelExceptionActionInternal object itself.
*/
@Generated
public CancelExceptionActionInternal 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.
*
* @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.
*
* @param dispositionCode the dispositionCode value to set.
* @return the CancelExceptionActionInternal object itself.
*/
@Generated
public CancelExceptionActionInternal setDispositionCode(String dispositionCode) {
this.dispositionCode = dispositionCode;
return this;
}
/**
* {@inheritDoc}
*/
@Generated
@Override
public CancelExceptionActionInternal setId(String id) {
super.setId(id);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy