ch.loway.oss.ari4java.generated.ari_1_1_0.actions.requests.ChannelsStartSilencePostRequest_impl_ari_1_1_0 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_1_1_0.actions.requests;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:37 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_1_0.actions.*;
import ch.loway.oss.ari4java.generated.ari_1_1_0.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_1_1_0.models.*;
public class ChannelsStartSilencePostRequest_impl_ari_1_1_0 extends BaseAriAction
implements ChannelsStartSilencePostRequest {
private String channelId;
public ChannelsStartSilencePostRequest_impl_ari_1_1_0(String channelId) {
this.channelId = channelId;
}
public ChannelsStartSilencePostRequest setChannelId(String channelId) {
this.channelId = channelId;
return this;
}
private AriRequest build() {
AriRequest ariRequest =
new AriRequest("/channels/" + encodeUrlPart(channelId) + "/silence", "POST");
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 */
}