All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apicurio.datamodels.models.asyncapi.v21.AsyncApi21SecuritySchemeImpl Maven / Gradle / Ivy

The newest version!
package io.apicurio.datamodels.models.asyncapi.v21;

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.v21.visitors.AsyncApi21Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.LinkedHashMap;
import java.util.Map;

public class AsyncApi21SecuritySchemeImpl extends NodeImpl implements AsyncApi21SecurityScheme {

	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 AsyncApi21OAuthFlows createOAuthFlows() {
		AsyncApi21OAuthFlowsImpl node = new AsyncApi21OAuthFlowsImpl();
		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) {
		AsyncApi21Visitor viz = (AsyncApi21Visitor) visitor;
		viz.visitSecurityScheme(this);
	}

	@Override
	public Node emptyClone() {
		return new AsyncApi21SecuritySchemeImpl();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy