ch.loway.oss.ari4java.generated.ari_1_2_0.actions.requests.RecordingsGetLiveGetRequest_impl_ari_1_2_0 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_1_2_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_2_0.actions.*;
import ch.loway.oss.ari4java.generated.ari_1_2_0.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_1_2_0.models.*;
public class RecordingsGetLiveGetRequest_impl_ari_1_2_0 extends BaseAriAction
implements RecordingsGetLiveGetRequest {
private String recordingName;
public RecordingsGetLiveGetRequest_impl_ari_1_2_0(String recordingName) {
this.recordingName = recordingName;
}
public RecordingsGetLiveGetRequest setRecordingName(String recordingName) {
this.recordingName = recordingName;
return this;
}
private AriRequest build() {
AriRequest ariRequest =
new AriRequest("/recordings/live/" + encodeUrlPart(recordingName) + "", "GET");
ariRequest.addErrorResponse(HttpResponse.build(404, "Recording not found"));
return ariRequest;
}
public LiveRecording execute() throws RestException {
String json = httpActionSync(build());
return deserializeJson(json, LiveRecording_impl_ari_1_2_0.class);
}
public void execute(AriCallback callback) {
httpActionAsync(build(), callback, LiveRecording_impl_ari_1_2_0.class);
}
/* No missing signatures from interface */
}