io.apicurio.datamodels.models.asyncapi.v25.AsyncApi25SecuritySchemeImpl 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.v25;
import com.fasterxml.jackson.databind.JsonNode;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.NodeImpl;
import io.apicurio.datamodels.models.asyncapi.AsyncApiOAuthFlows;
import io.apicurio.datamodels.models.asyncapi.v25.visitors.AsyncApi25Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.LinkedHashMap;
import java.util.Map;
public class AsyncApi25SecuritySchemeImpl extends NodeImpl implements AsyncApi25SecurityScheme {
private String $ref;
private String type;
private String description;
private String name;
private String in;
private String scheme;
private String bearerFormat;
private AsyncApiOAuthFlows flows;
private String openIdConnectUrl;
private Map extensions;
@Override
public String get$ref() {
return $ref;
}
@Override
public void set$ref(String value) {
this.$ref = value;
}
@Override
public String getType() {
return type;
}
@Override
public void setType(String value) {
this.type = value;
}
@Override
public String getDescription() {
return description;
}
@Override
public void setDescription(String value) {
this.description = value;
}
@Override
public String getName() {
return name;
}
@Override
public void setName(String value) {
this.name = value;
}
@Override
public String getIn() {
return in;
}
@Override
public void setIn(String value) {
this.in = value;
}
@Override
public String getScheme() {
return scheme;
}
@Override
public void setScheme(String value) {
this.scheme = value;
}
@Override
public String getBearerFormat() {
return bearerFormat;
}
@Override
public void setBearerFormat(String value) {
this.bearerFormat = value;
}
@Override
public AsyncApiOAuthFlows getFlows() {
return flows;
}
@Override
public void setFlows(AsyncApiOAuthFlows value) {
this.flows = value;
}
@Override
public AsyncApi25OAuthFlows createOAuthFlows() {
AsyncApi25OAuthFlowsImpl node = new AsyncApi25OAuthFlowsImpl();
node.setParent(this);
return node;
}
@Override
public String getOpenIdConnectUrl() {
return openIdConnectUrl;
}
@Override
public void setOpenIdConnectUrl(String value) {
this.openIdConnectUrl = 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) {
AsyncApi25Visitor viz = (AsyncApi25Visitor) visitor;
viz.visitSecurityScheme(this);
}
@Override
public Node emptyClone() {
return new AsyncApi25SecuritySchemeImpl();
}
}