ch.loway.oss.ari4java.generated.ari_5_1_1.actions.requests.ApplicationsGetRequest_impl_ari_5_1_1 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_5_1_1.actions.requests;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:45 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_5_1_1.actions.*;
import ch.loway.oss.ari4java.generated.ari_5_1_1.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_5_1_1.models.*;
public class ApplicationsGetRequest_impl_ari_5_1_1 extends BaseAriAction
implements ApplicationsGetRequest {
private String applicationName;
public ApplicationsGetRequest_impl_ari_5_1_1(String applicationName) {
this.applicationName = applicationName;
}
public ApplicationsGetRequest setApplicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}
private AriRequest build() {
AriRequest ariRequest =
new AriRequest("/applications/" + encodeUrlPart(applicationName) + "", "GET");
ariRequest.addErrorResponse(HttpResponse.build(404, "Application does not exist."));
return ariRequest;
}
public Application execute() throws RestException {
String json = httpActionSync(build());
return deserializeJson(json, Application_impl_ari_5_1_1.class);
}
public void execute(AriCallback callback) {
httpActionAsync(build(), callback, Application_impl_ari_5_1_1.class);
}
/* No missing signatures from interface */
}