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

io.swagger.codegen.v3.service.Options Maven / Gradle / Ivy

There is a newer version: 3.0.64
Show newest version
package io.swagger.codegen.v3.service;

import io.swagger.v3.parser.core.models.AuthorizationValue;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class Options {

    private String auth;
    private AuthorizationValue authorizationValue = null;
    private String apiPackage;
    private String modelPackage;
    private String modelNamePrefix;
    private String modelNameSuffix;
    protected Map systemProperties = new LinkedHashMap<>();
    private Map instantiationTypes = new LinkedHashMap<>();
    private Map typeMappings = new LinkedHashMap<>();
    private Map additionalProperties = new LinkedHashMap<>();
    private List languageSpecificPrimitives = new ArrayList<>();
    private Map importMappings = new LinkedHashMap<>();
    private String invokerPackage;
    private String groupId;
    private String artifactId;
    private String artifactVersion;
    private String library;
    private String gitUserId;
    private String gitRepoId;
    private String gitRepoBaseURL;
    private String releaseNote;
    private String httpUserAgent;
    private Map reservedWordsMappings = new LinkedHashMap<>();
    private String ignoreFileOverride;
    private String templateVersion;
    private Boolean removeOperationIdPrefix;
    private Boolean skipOverride;
    private String outputDir = "";
    private Boolean resolveFully;

    private Boolean usingFlattenSpecForV2;

    private Map codegenArguments = new LinkedHashMap<>();

    private boolean flattenInlineComposedSchemas = false;

    private List allowedAuthHosts = new ArrayList<>();
    private List deniedAuthHosts = new ArrayList<>();

    public List getAllowedAuthHosts() {
        return allowedAuthHosts;
    }

    public void setAllowedAuthHosts(List allowedAuthHosts) {
        this.allowedAuthHosts = allowedAuthHosts;
    }

    public List getDeniedAuthHosts() {
        return deniedAuthHosts;
    }

    public void setDeniedAuthHosts(List deniedAuthHosts) {
        this.deniedAuthHosts = deniedAuthHosts;
    }

    public Options allowedAuthHosts(List allowedAuthHosts) {
        this.allowedAuthHosts = allowedAuthHosts;
        return this;
    }

    public Options deniedAuthHosts(List deniedAuthHosts) {
        this.deniedAuthHosts = deniedAuthHosts;
        return this;
    }

    public Options authorizationValue(AuthorizationValue authorizationValue) {
        this.authorizationValue = authorizationValue;
        return this;
    }


    public AuthorizationValue getAuthorizationValue() {
        return authorizationValue;
    }
    public void setAuthorizationValue(AuthorizationValue authorizationValue) {
        this.authorizationValue = authorizationValue;
    }

    public Options auth(AuthorizationValue authorizationValue) {
        this.authorizationValue = authorizationValue;
        return this;
    }

    public String getAuth() {
        return auth;
    }
    public void setAuth(String auth) {
        this.auth = auth;
    }

    public Options apiPackage(String apiPackage) {
        this.apiPackage = apiPackage;
        return this;
    }

    public String getApiPackage() {
        return apiPackage;
    }
    public void setApiPackage(String apiPackage) {
        this.apiPackage = apiPackage;
    }

    public Options outputDir(String outputDir) {
        this.outputDir = outputDir;
        return this;
    }

    public String getOutputDir() {
        return outputDir;
    }
    public void setOutputDir(String outputDir) {
        this.outputDir = outputDir;
    }

    public Options modelPackage(String modelPackage) {
        this.modelPackage = modelPackage;
        return this;
    }

    public String getModelPackage() {
        return modelPackage;
    }
    public void setModelPackage(String modelPackage) {
        this.modelPackage = modelPackage;
    }

    public Options modelNamePrefix(String modelNamePrefix) {
        this.modelNamePrefix = modelNamePrefix;
        return this;
    }

    public String getModelNamePrefix() {
        return modelNamePrefix;
    }
    public void setModelNamePrefix(String modelNamePrefix) {
        this.modelNamePrefix = modelNamePrefix;
    }

    public Options modelNameSuffix(String modelNameSuffix) {
        this.modelNameSuffix = modelNameSuffix;
        return this;
    }

    public String getModelNameSuffix() {
        return modelNameSuffix;
    }
    public void setModelNameSuffix(String modelNameSuffix) {
        this.modelNameSuffix = modelNameSuffix;
    }

    public Options systemProperties(Map systemProperties) {
        this.systemProperties = systemProperties;
        return this;
    }

    public Map getSystemProperties() {
        return systemProperties;
    }

    public void setSystemProperties(Map systemProperties) {
        this.systemProperties = systemProperties;
    }

    public Options addSystemProperty(String key, String value) {
        this.systemProperties.put(key, value);
        return this;
    }

    public Options instantiationTypes(Map instantiationTypes) {
        this.instantiationTypes = instantiationTypes;
        return this;
    }

    public Map getInstantiationTypes() {
        return instantiationTypes;
    }

    public void setInstantiationTypes(Map instantiationTypes) {
        this.instantiationTypes = instantiationTypes;
    }

    public Options addInstantiationType(String key, String value) {
        this.instantiationTypes.put(key, value);
        return this;
    }

    public Options typeMappings(Map typeMappings) {
        this.typeMappings = typeMappings;
        return this;
    }

    public Map getTypeMappings() {
        return typeMappings;
    }

    public void setTypeMappings(Map typeMappings) {
        this.typeMappings = typeMappings;
    }

    public Options addTypeMapping(String key, String value) {
        this.typeMappings.put(key, value);
        return this;
    }

    public Options additionalProperties(Map additionalProperties) {
        this.additionalProperties = additionalProperties;
        return this;
    }

    public Map getAdditionalProperties() {
        return additionalProperties;
    }

    public void setAdditionalProperties(Map additionalProperties) {
        this.additionalProperties = additionalProperties;
    }

    public Options addAdditionalProperty(String key, Object value) {
        this.additionalProperties.put(key, value);
        return this;
    }

    public Options importMappings(Map importMappings) {
        this.importMappings = importMappings;
        return this;
    }

    public Map getImportMappings() {
        return importMappings;
    }

    public void setImportMappings(Map importMappings) {
        this.importMappings = importMappings;
    }

    public Options addImportMapping(String key, String value) {
        this.importMappings.put(key, value);
        return this;
    }

    public Options codegenArguments(Map codegenArguments) {
        this.codegenArguments = codegenArguments;
        return this;
    }

    public Map getCodegenArguments() {
        return codegenArguments;
    }

    public void setCodegenArguments(Map codegenArguments) {
        this.codegenArguments = codegenArguments;
    }

    public Options addCodegenArgument(String key, String value) {
        this.codegenArguments.put(key, value);
        return this;
    }


    public Options invokerPackage(String invokerPackage) {
        this.invokerPackage = invokerPackage;
        return this;
    }

    public List getLanguageSpecificPrimitives() {
        return languageSpecificPrimitives;
    }

    public void setLanguageSpecificPrimitives(List languageSpecificPrimitives) {
        this.languageSpecificPrimitives = languageSpecificPrimitives;
    }

    public Options languageSpecificPrimitives(List  languageSpecificPrimitives) {
        this.languageSpecificPrimitives = languageSpecificPrimitives;
        return this;
    }

    public String getInvokerPackage() {
        return invokerPackage;
    }
    public void setInvokerPackage(String invokerPackage) {
        this.invokerPackage = invokerPackage;
    }

    public Options groupId(String groupId) {
        this.groupId = groupId;
        return this;
    }

    public String getGroupId() {
        return groupId;
    }
    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public Options artifactId(String artifactId) {
        this.artifactId = artifactId;
        return this;
    }

    public String getArtifactId() {
        return artifactId;
    }
    public void setArtifactId(String artifactId) {
        this.artifactId = artifactId;
    }

    public Options artifactVersion(String artifactVersion) {
        this.artifactVersion = artifactVersion;
        return this;
    }

    public String getArtifactVersion() {
        return artifactVersion;
    }
    public void setArtifactVersion(String artifactVersion) {
        this.artifactVersion = artifactVersion;
    }

    public Options library(String library) {
        this.library = library;
        return this;
    }

    /**
     * library template (sub-template)
     * @return library
     **/
    public String getLibrary() {
        return library;
    }
    public void setLibrary(String library) {
        this.library = library;
    }

    public Options gitUserId(String gitUserId) {
        this.gitUserId = gitUserId;
        return this;
    }

    public String getGitUserId() {
        return gitUserId;
    }
    public void setGitUserId(String gitUserId) {
        this.gitUserId = gitUserId;
    }

    public Options gitRepoId(String gitRepoId) {
        this.gitRepoId = gitRepoId;
        return this;
    }

    public String getGitRepoId() {
        return gitRepoId;
    }
    public void setGitRepoId(String gitRepoId) {
        this.gitRepoId = gitRepoId;
    }

    public Options gitRepoBaseURL(String gitRepoBaseURL) {
        this.gitRepoBaseURL = gitRepoBaseURL;
        return this;
    }

    public String getGitRepoBaseURL() {
        return gitRepoBaseURL;
    }

    public void setGitRepoBaseURL(String gitRepoBaseURL) {
        this.gitRepoBaseURL = gitRepoBaseURL;
    }

    public Options releaseNote(String releaseNote) {
        this.releaseNote = releaseNote;
        return this;
    }

    public String getReleaseNote() {
        return releaseNote;
    }
    public void setReleaseNote(String releaseNote) {
        this.releaseNote = releaseNote;
    }

    public Options httpUserAgent(String httpUserAgent) {
        this.httpUserAgent = httpUserAgent;
        return this;
    }

    public String getTemplateVersion() {
        return templateVersion;
    }

    public void setTemplateVersion(String templateVersion) {
        this.templateVersion = templateVersion;
    }

    public Options templateVersion(String templateVersion) {
        this.templateVersion = templateVersion;
        return this;
    }

    /**
     * HTTP user agent, e.g. codegen_csharp_api_client, default to ';Swagger-Codegen/{packageVersion}}/{language}';
     **/
    public String getHttpUserAgent() {
        return httpUserAgent;
    }
    public void setHttpUserAgent(String httpUserAgent) {
        this.httpUserAgent = httpUserAgent;
    }

    public Options reservedWordsMappings(Map reservedWordsMappings) {
        this.reservedWordsMappings = reservedWordsMappings;
        return this;
    }

    public  Map getReservedWordsMappings() {
        return reservedWordsMappings;
    }

    public void setReservedWordsMappings(Map reservedWordsMappings) {
        this.reservedWordsMappings = reservedWordsMappings;
    }

    public Options addAdditionalReservedWordMapping(String key, String value) {
        this.reservedWordsMappings.put(key, value);
        return this;
    }

    public Options ignoreFileOverride(String ignoreFileOverride) {
        this.ignoreFileOverride = ignoreFileOverride;
        return this;
    }

    public String getIgnoreFileOverride() {
        return ignoreFileOverride;
    }
    public void setIgnoreFileOverride(String ignoreFileOverride) {
        this.ignoreFileOverride = ignoreFileOverride;
    }

    public Options removeOperationIdPrefix(Boolean removeOperationIdPrefix) {
        this.removeOperationIdPrefix = removeOperationIdPrefix;
        return this;
    }

    public Boolean getRemoveOperationIdPrefix() {
        return removeOperationIdPrefix;
    }

    public void setRemoveOperationIdPrefix(Boolean removeOperationIdPrefix) {
        this.removeOperationIdPrefix = removeOperationIdPrefix;
    }

    public Options skipOverride(Boolean skipOverride) {
        this.skipOverride = skipOverride;
        return this;
    }

    public Boolean getSkipOverride() {
        return skipOverride;
    }

    public void setSkipOverride(Boolean skipOverride) {
        this.skipOverride = skipOverride;
    }

    public Options resolveFully(Boolean resolveFully) {
        this.resolveFully = resolveFully;
        return this;
    }

    public Boolean getResolveFully() {
        return resolveFully;
    }

    public void setResolveFully(Boolean resolveFully) {
        this.resolveFully = resolveFully;
    }

    public boolean isFlattenInlineComposedSchemas() {
        return flattenInlineComposedSchemas;
    }
    public void setFlattenInlineComposedSchema(boolean flattenInlineComposedSchemas) {
        this.flattenInlineComposedSchemas = flattenInlineComposedSchemas;
    }
    public Options flattenInlineComposedSchema(boolean flattenInlineComposedSchemas) {
        this.flattenInlineComposedSchemas = flattenInlineComposedSchemas;
        return this;
    }

    public Options flattenInlineComposedSchemas(boolean flattenInlineComposedSchemas) {
        this.flattenInlineComposedSchemas = flattenInlineComposedSchemas;
        return this;
    }

    public Boolean isUsingFlattenSpecForV2() {
        return usingFlattenSpecForV2;
    }

    public Boolean getUsingFlattenSpecForV2() {
        return usingFlattenSpecForV2;
    }

    public void setUsingFlattenSpecForV2(Boolean usingFlattenSpecForV2) {
        this.usingFlattenSpecForV2 = usingFlattenSpecForV2;
    }

    public Options usingFlattenSpecForV2(Boolean usingFlattenSpecForV2) {
        this.usingFlattenSpecForV2 = usingFlattenSpecForV2;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy