ch.loway.oss.ari4java.generated.ari_4_1_3.actions.requests.BridgesCreateWithIdPostRequest_impl_ari_4_1_3 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_4_1_3.actions.requests;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:44 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_4_1_3.actions.*;
import ch.loway.oss.ari4java.generated.ari_4_1_3.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_4_1_3.models.*;
public class BridgesCreateWithIdPostRequest_impl_ari_4_1_3 extends BaseAriAction
implements BridgesCreateWithIdPostRequest {
private String type;
private String bridgeId;
private String name;
public BridgesCreateWithIdPostRequest_impl_ari_4_1_3(String bridgeId) {
this.bridgeId = bridgeId;
}
public BridgesCreateWithIdPostRequest setType(String type) {
this.type = type;
return this;
}
public BridgesCreateWithIdPostRequest setBridgeId(String bridgeId) {
this.bridgeId = bridgeId;
return this;
}
public BridgesCreateWithIdPostRequest setName(String name) {
this.name = name;
return this;
}
private AriRequest build() {
AriRequest ariRequest = new AriRequest("/bridges/" + encodeUrlPart(bridgeId) + "", "POST");
ariRequest.addParamQuery(HttpParam.build("type", type));
ariRequest.addParamQuery(HttpParam.build("name", name));
return ariRequest;
}
public Bridge execute() throws RestException {
String json = httpActionSync(build());
return deserializeJson(json, Bridge_impl_ari_4_1_3.class);
}
public void execute(AriCallback callback) {
httpActionAsync(build(), callback, Bridge_impl_ari_4_1_3.class);
}
/* No missing signatures from interface */
}