ch.loway.oss.ari4java.generated.ari_1_7_0.actions.requests.ChannelsContinueInDialplanPostRequest_impl_ari_1_7_0 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_1_7_0.actions.requests;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:39 SAST 2021
// ----------------------------------------------------
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.ArrayList;
import java.net.URLEncoder;
import com.fasterxml.jackson.core.type.TypeReference;
import ch.loway.oss.ari4java.ARI;
import ch.loway.oss.ari4java.tools.*;
import ch.loway.oss.ari4java.generated.*;
import ch.loway.oss.ari4java.generated.actions.*;
import ch.loway.oss.ari4java.generated.actions.requests.*;
import ch.loway.oss.ari4java.generated.models.Module;
import ch.loway.oss.ari4java.generated.models.*;
import ch.loway.oss.ari4java.generated.ari_1_7_0.actions.*;
import ch.loway.oss.ari4java.generated.ari_1_7_0.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_1_7_0.models.*;
public class ChannelsContinueInDialplanPostRequest_impl_ari_1_7_0 extends BaseAriAction
implements ChannelsContinueInDialplanPostRequest {
private String channelId;
private String context;
private String extension;
private Integer priority;
private String label;
public ChannelsContinueInDialplanPostRequest_impl_ari_1_7_0(String channelId) {
this.channelId = channelId;
}
public ChannelsContinueInDialplanPostRequest setChannelId(String channelId) {
this.channelId = channelId;
return this;
}
public ChannelsContinueInDialplanPostRequest setContext(String context) {
this.context = context;
return this;
}
public ChannelsContinueInDialplanPostRequest setExtension(String extension) {
this.extension = extension;
return this;
}
public ChannelsContinueInDialplanPostRequest setPriority(int priority) {
this.priority = priority;
return this;
}
public ChannelsContinueInDialplanPostRequest setLabel(String label) {
this.label = label;
return this;
}
private AriRequest build() {
AriRequest ariRequest =
new AriRequest("/channels/" + encodeUrlPart(channelId) + "/continue", "POST");
ariRequest.addParamQuery(HttpParam.build("context", context));
ariRequest.addParamQuery(HttpParam.build("extension", extension));
ariRequest.addParamQuery(HttpParam.build("priority", priority));
ariRequest.addParamQuery(HttpParam.build("label", label));
ariRequest.addErrorResponse(HttpResponse.build(404, "Channel not found"));
ariRequest.addErrorResponse(HttpResponse.build(409, "Channel not in a Stasis application"));
return ariRequest;
}
public void execute() throws RestException {
httpActionSync(build());
}
public void execute(AriCallback callback) {
httpActionAsync(build(), callback);
}
/* No missing signatures from interface */
}