io.apicurio.datamodels.models.asyncapi.v30.AsyncApi30OperationBindingsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicurio-data-models Show documentation
Show all versions of apicurio-data-models Show documentation
Open Source API Design Studio
The newest version!
package io.apicurio.datamodels.models.asyncapi.v30;
import com.fasterxml.jackson.databind.JsonNode;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.NodeImpl;
import io.apicurio.datamodels.models.asyncapi.AsyncApiBinding;
import io.apicurio.datamodels.models.asyncapi.v30.visitors.AsyncApi30Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.LinkedHashMap;
import java.util.Map;
public class AsyncApi30OperationBindingsImpl extends NodeImpl implements AsyncApi30OperationBindings {
private String $ref;
private AsyncApiBinding http;
private AsyncApiBinding ws;
private AsyncApiBinding kafka;
private AsyncApi30Binding anypointmq;
private AsyncApiBinding amqp;
private AsyncApiBinding amqp1;
private AsyncApiBinding mqtt;
private AsyncApiBinding mqtt5;
private AsyncApiBinding nats;
private AsyncApiBinding jms;
private AsyncApiBinding sns;
private AsyncApi30Binding solace;
private AsyncApiBinding sqs;
private AsyncApiBinding stomp;
private AsyncApiBinding redis;
private AsyncApi30Binding mercure;
private AsyncApi30Binding ibmmq;
private AsyncApi30Binding googlepubsub;
private AsyncApi30Binding pulsar;
private Map extensions;
@Override
public String get$ref() {
return $ref;
}
@Override
public void set$ref(String value) {
this.$ref = value;
}
@Override
public AsyncApiBinding getHttp() {
return http;
}
@Override
public void setHttp(AsyncApiBinding value) {
this.http = value;
}
@Override
public AsyncApi30Binding createBinding() {
AsyncApi30BindingImpl node = new AsyncApi30BindingImpl();
node.setParent(this);
return node;
}
@Override
public AsyncApiBinding getWs() {
return ws;
}
@Override
public void setWs(AsyncApiBinding value) {
this.ws = value;
}
@Override
public AsyncApiBinding getKafka() {
return kafka;
}
@Override
public void setKafka(AsyncApiBinding value) {
this.kafka = value;
}
@Override
public AsyncApi30Binding getAnypointmq() {
return anypointmq;
}
@Override
public void setAnypointmq(AsyncApi30Binding value) {
this.anypointmq = value;
}
@Override
public AsyncApiBinding getAmqp() {
return amqp;
}
@Override
public void setAmqp(AsyncApiBinding value) {
this.amqp = value;
}
@Override
public AsyncApiBinding getAmqp1() {
return amqp1;
}
@Override
public void setAmqp1(AsyncApiBinding value) {
this.amqp1 = value;
}
@Override
public AsyncApiBinding getMqtt() {
return mqtt;
}
@Override
public void setMqtt(AsyncApiBinding value) {
this.mqtt = value;
}
@Override
public AsyncApiBinding getMqtt5() {
return mqtt5;
}
@Override
public void setMqtt5(AsyncApiBinding value) {
this.mqtt5 = value;
}
@Override
public AsyncApiBinding getNats() {
return nats;
}
@Override
public void setNats(AsyncApiBinding value) {
this.nats = value;
}
@Override
public AsyncApiBinding getJms() {
return jms;
}
@Override
public void setJms(AsyncApiBinding value) {
this.jms = value;
}
@Override
public AsyncApiBinding getSns() {
return sns;
}
@Override
public void setSns(AsyncApiBinding value) {
this.sns = value;
}
@Override
public AsyncApi30Binding getSolace() {
return solace;
}
@Override
public void setSolace(AsyncApi30Binding value) {
this.solace = value;
}
@Override
public AsyncApiBinding getSqs() {
return sqs;
}
@Override
public void setSqs(AsyncApiBinding value) {
this.sqs = value;
}
@Override
public AsyncApiBinding getStomp() {
return stomp;
}
@Override
public void setStomp(AsyncApiBinding value) {
this.stomp = value;
}
@Override
public AsyncApiBinding getRedis() {
return redis;
}
@Override
public void setRedis(AsyncApiBinding value) {
this.redis = value;
}
@Override
public AsyncApi30Binding getMercure() {
return mercure;
}
@Override
public void setMercure(AsyncApi30Binding value) {
this.mercure = value;
}
@Override
public AsyncApi30Binding getIbmmq() {
return ibmmq;
}
@Override
public void setIbmmq(AsyncApi30Binding value) {
this.ibmmq = value;
}
@Override
public AsyncApi30Binding getGooglepubsub() {
return googlepubsub;
}
@Override
public void setGooglepubsub(AsyncApi30Binding value) {
this.googlepubsub = value;
}
@Override
public AsyncApi30Binding getPulsar() {
return pulsar;
}
@Override
public void setPulsar(AsyncApi30Binding value) {
this.pulsar = value;
}
@Override
public Map getExtensions() {
return extensions;
}
@Override
public void addExtension(String name, JsonNode value) {
if (this.extensions == null) {
this.extensions = new LinkedHashMap<>();
}
this.extensions.put(name, value);
}
@Override
public void clearExtensions() {
if (this.extensions != null) {
this.extensions.clear();
}
}
@Override
public void removeExtension(String name) {
if (this.extensions != null) {
this.extensions.remove(name);
}
}
@Override
public void accept(Visitor visitor) {
AsyncApi30Visitor viz = (AsyncApi30Visitor) visitor;
viz.visitOperationBindings(this);
}
@Override
public Node emptyClone() {
return new AsyncApi30OperationBindingsImpl();
}
}