io.apicurio.datamodels.models.asyncapi.v22.AsyncApi22MessageBindingsImpl 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.v22;
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.v22.visitors.AsyncApi22Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.LinkedHashMap;
import java.util.Map;
public class AsyncApi22MessageBindingsImpl extends NodeImpl implements AsyncApi22MessageBindings {
private String $ref;
private AsyncApiBinding http;
private AsyncApiBinding ws;
private AsyncApiBinding kafka;
private AsyncApi22Binding anypointmq;
private AsyncApiBinding amqp;
private AsyncApiBinding amqp1;
private AsyncApiBinding mqtt;
private AsyncApiBinding mqtt5;
private AsyncApiBinding nats;
private AsyncApiBinding jms;
private AsyncApiBinding sns;
private AsyncApiBinding sqs;
private AsyncApiBinding stomp;
private AsyncApiBinding redis;
private AsyncApi22Binding mercure;
private AsyncApi22Binding ibmmq;
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 AsyncApi22Binding createBinding() {
AsyncApi22BindingImpl node = new AsyncApi22BindingImpl();
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 AsyncApi22Binding getAnypointmq() {
return anypointmq;
}
@Override
public void setAnypointmq(AsyncApi22Binding 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 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 AsyncApi22Binding getMercure() {
return mercure;
}
@Override
public void setMercure(AsyncApi22Binding value) {
this.mercure = value;
}
@Override
public AsyncApi22Binding getIbmmq() {
return ibmmq;
}
@Override
public void setIbmmq(AsyncApi22Binding value) {
this.ibmmq = 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) {
AsyncApi22Visitor viz = (AsyncApi22Visitor) visitor;
viz.visitMessageBindings(this);
}
@Override
public Node emptyClone() {
return new AsyncApi22MessageBindingsImpl();
}
}