Class SmithyApiGatewayPythonProjectOptions.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.SmithyApiGatewayPythonProjectOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SmithyApiGatewayPythonProjectOptions>
- Enclosing interface:
- SmithyApiGatewayPythonProjectOptions
@Stability(Experimental) public static final class SmithyApiGatewayPythonProjectOptions.Builder extends Object implements software.amazon.jsii.Builder<SmithyApiGatewayPythonProjectOptions>
A builder forSmithyApiGatewayPythonProjectOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SmithyApiGatewayPythonProjectOptions.BuilderapiSrcDir(String apiSrcDir)Sets the value ofCommonApiProjectOptions.getApiSrcDir()SmithyApiGatewayPythonProjectOptions.BuilderauthorEmail(String authorEmail)Sets the value ofPythonPackagingOptions.getAuthorEmail()SmithyApiGatewayPythonProjectOptions.BuilderauthorName(String authorName)Sets the value ofPythonPackagingOptions.getAuthorName()SmithyApiGatewayPythonProjectOptions.BuilderautoApproveOptions(io.github.cdklabs.projen.github.AutoApproveOptions autoApproveOptions)Sets the value ofGitHubProjectOptions.getAutoApproveOptions()SmithyApiGatewayPythonProjectOptions.BuilderautoMerge(Boolean autoMerge)Sets the value ofGitHubProjectOptions.getAutoMerge()SmithyApiGatewayPythonProjectOptions.BuilderautoMergeOptions(io.github.cdklabs.projen.github.AutoMergeOptions autoMergeOptions)Sets the value ofGitHubProjectOptions.getAutoMergeOptions()SmithyApiGatewayPythonProjectOptionsbuild()Builds the configured instance.SmithyApiGatewayPythonProjectOptions.Builderclassifiers(List<String> classifiers)Sets the value ofPythonPackagingOptions.getClassifiers()SmithyApiGatewayPythonProjectOptions.BuilderclientLanguages(List<? extends ClientLanguage> clientLanguages)Sets the value ofCommonApiProjectOptions.getClientLanguages()SmithyApiGatewayPythonProjectOptions.Builderclobber(Boolean clobber)Sets the value ofGitHubProjectOptions.getClobber()SmithyApiGatewayPythonProjectOptions.BuildercommitGenerated(Boolean commitGenerated)Sets the value ofProjectOptions.getCommitGenerated()SmithyApiGatewayPythonProjectOptions.Builderdeps(List<String> deps)Sets the value ofPythonProjectOptions.getDeps()SmithyApiGatewayPythonProjectOptions.Builderdescription(String description)Sets the value ofPythonPackagingOptions.getDescription()SmithyApiGatewayPythonProjectOptions.BuilderdevContainer(Boolean devContainer)Sets the value ofGitHubProjectOptions.getDevContainer()SmithyApiGatewayPythonProjectOptions.BuilderdevDeps(List<String> devDeps)Sets the value ofPythonProjectOptions.getDevDeps()SmithyApiGatewayPythonProjectOptions.BuilderdocumentationFormats(List<? extends DocumentationFormat> documentationFormats)Sets the value ofCommonApiProjectOptions.getDocumentationFormats()SmithyApiGatewayPythonProjectOptions.BuilderforceGenerateCodeAndDocs(Boolean forceGenerateCodeAndDocs)Sets the value ofCommonApiProjectOptions.getForceGenerateCodeAndDocs()SmithyApiGatewayPythonProjectOptions.BuildergeneratedCodeDir(String generatedCodeDir)Sets the value ofCommonApiProjectOptions.getGeneratedCodeDir()SmithyApiGatewayPythonProjectOptions.Buildergithub(Boolean github)Sets the value ofGitHubProjectOptions.getGithub()SmithyApiGatewayPythonProjectOptions.BuildergithubOptions(io.github.cdklabs.projen.github.GitHubOptions githubOptions)Sets the value ofGitHubProjectOptions.getGithubOptions()SmithyApiGatewayPythonProjectOptions.Buildergitpod(Boolean gitpod)Sets the value ofGitHubProjectOptions.getGitpod()SmithyApiGatewayPythonProjectOptions.BuildergradleWrapperPath(String gradleWrapperPath)Sets the value ofSmithyApiGatewayProjectOptions.getGradleWrapperPath()SmithyApiGatewayPythonProjectOptions.Builderhomepage(String homepage)Sets the value ofPythonPackagingOptions.getHomepage()SmithyApiGatewayPythonProjectOptions.BuilderignoreSmithyBuildOutput(Boolean ignoreSmithyBuildOutput)Sets the value ofSmithyApiGatewayProjectOptions.getIgnoreSmithyBuildOutput()SmithyApiGatewayPythonProjectOptions.BuilderjavaClientOptions(io.github.cdklabs.projen.java.JavaProjectOptions javaClientOptions)Sets the value ofCommonApiProjectOptions.getJavaClientOptions()SmithyApiGatewayPythonProjectOptions.Builderlicense(String license)Sets the value ofPythonPackagingOptions.getLicense()SmithyApiGatewayPythonProjectOptions.Builderlogging(io.github.cdklabs.projen.LoggerOptions logging)Sets the value ofProjectOptions.getLogging()SmithyApiGatewayPythonProjectOptions.Buildermergify(Boolean mergify)Deprecated.use `githubOptions.mergify` insteadSmithyApiGatewayPythonProjectOptions.BuildermergifyOptions(io.github.cdklabs.projen.github.MergifyOptions mergifyOptions)Deprecated.use `githubOptions.mergifyOptions` insteadSmithyApiGatewayPythonProjectOptions.BuildermodelDir(String modelDir)Sets the value ofSmithyApiGatewayProjectOptions.getModelDir()SmithyApiGatewayPythonProjectOptions.BuildermoduleName(String moduleName)Sets the value ofPythonProjectOptions.getModuleName()SmithyApiGatewayPythonProjectOptions.Buildername(String name)Sets the value ofProjectOptions.getName()SmithyApiGatewayPythonProjectOptions.Builderoutdir(String outdir)Sets the value ofProjectOptions.getOutdir()SmithyApiGatewayPythonProjectOptions.BuilderpackageName(String packageName)Sets the value ofPythonPackagingOptions.getPackageName()SmithyApiGatewayPythonProjectOptions.Builderparent(io.github.cdklabs.projen.Project parent)Sets the value ofProjectOptions.getParent()SmithyApiGatewayPythonProjectOptions.BuilderparsedSpecFileName(String parsedSpecFileName)Sets the value ofCommonApiProjectOptions.getParsedSpecFileName()SmithyApiGatewayPythonProjectOptions.Builderpip(Boolean pip)Sets the value ofPythonProjectOptions.getPip()SmithyApiGatewayPythonProjectOptions.Builderpoetry(Boolean poetry)Sets the value ofPythonProjectOptions.getPoetry()SmithyApiGatewayPythonProjectOptions.BuilderpoetryOptions(io.github.cdklabs.projen.python.PoetryPyprojectOptionsWithoutDeps poetryOptions)Sets the value ofPythonPackagingOptions.getPoetryOptions()SmithyApiGatewayPythonProjectOptions.BuilderprojectType(io.github.cdklabs.projen.ProjectType projectType)Deprecated.no longer supported at the base project levelSmithyApiGatewayPythonProjectOptions.BuilderprojenCommand(String projenCommand)Sets the value ofProjectOptions.getProjenCommand()SmithyApiGatewayPythonProjectOptions.BuilderprojenCredentials(io.github.cdklabs.projen.github.GithubCredentials projenCredentials)Sets the value ofGitHubProjectOptions.getProjenCredentials()SmithyApiGatewayPythonProjectOptions.BuilderprojenrcJs(Boolean projenrcJs)Sets the value ofPythonProjectOptions.getProjenrcJs()SmithyApiGatewayPythonProjectOptions.BuilderprojenrcJson(Boolean projenrcJson)Sets the value ofProjectOptions.getProjenrcJson()SmithyApiGatewayPythonProjectOptions.BuilderprojenrcJsonOptions(io.github.cdklabs.projen.ProjenrcOptions projenrcJsonOptions)Sets the value ofProjectOptions.getProjenrcJsonOptions()SmithyApiGatewayPythonProjectOptions.BuilderprojenrcJsOptions(io.github.cdklabs.projen.javascript.ProjenrcOptions projenrcJsOptions)Sets the value ofPythonProjectOptions.getProjenrcJsOptions()SmithyApiGatewayPythonProjectOptions.BuilderprojenrcPython(Boolean projenrcPython)Sets the value ofPythonProjectOptions.getProjenrcPython()SmithyApiGatewayPythonProjectOptions.BuilderprojenrcPythonOptions(io.github.cdklabs.projen.python.ProjenrcOptions projenrcPythonOptions)Sets the value ofPythonProjectOptions.getProjenrcPythonOptions()SmithyApiGatewayPythonProjectOptions.BuilderprojenTokenSecret(String projenTokenSecret)Deprecated.use `projenCredentials`SmithyApiGatewayPythonProjectOptions.Builderpytest(Boolean pytest)Sets the value ofPythonProjectOptions.getPytest()SmithyApiGatewayPythonProjectOptions.BuilderpytestOptions(io.github.cdklabs.projen.python.PytestOptions pytestOptions)Sets the value ofPythonProjectOptions.getPytestOptions()SmithyApiGatewayPythonProjectOptions.BuilderpythonClientOptions(io.github.cdklabs.projen.python.PythonProjectOptions pythonClientOptions)Sets the value ofCommonApiProjectOptions.getPythonClientOptions()SmithyApiGatewayPythonProjectOptions.Builderreadme(io.github.cdklabs.projen.SampleReadmeProps readme)Sets the value ofGitHubProjectOptions.getReadme()SmithyApiGatewayPythonProjectOptions.Builderrenovatebot(Boolean renovatebot)Sets the value ofProjectOptions.getRenovatebot()SmithyApiGatewayPythonProjectOptions.BuilderrenovatebotOptions(io.github.cdklabs.projen.RenovatebotOptions renovatebotOptions)Sets the value ofProjectOptions.getRenovatebotOptions()SmithyApiGatewayPythonProjectOptions.Buildersample(Boolean sample)Sets the value ofPythonProjectOptions.getSample()SmithyApiGatewayPythonProjectOptions.BuilderserviceName(SmithyServiceName serviceName)Sets the value ofSmithyApiGatewayProjectOptions.getServiceName()SmithyApiGatewayPythonProjectOptions.BuildersetupConfig(Map<String,? extends Object> setupConfig)Sets the value ofPythonPackagingOptions.getSetupConfig()SmithyApiGatewayPythonProjectOptions.Buildersetuptools(Boolean setuptools)Sets the value ofPythonProjectOptions.getSetuptools()SmithyApiGatewayPythonProjectOptions.BuildersmithyBuildOptions(SmithyBuildOptions smithyBuildOptions)Sets the value ofSmithyApiGatewayProjectOptions.getSmithyBuildOptions()SmithyApiGatewayPythonProjectOptions.Builderstale(Boolean stale)Sets the value ofGitHubProjectOptions.getStale()SmithyApiGatewayPythonProjectOptions.BuilderstaleOptions(io.github.cdklabs.projen.github.StaleOptions staleOptions)Sets the value ofGitHubProjectOptions.getStaleOptions()SmithyApiGatewayPythonProjectOptions.BuildertypescriptClientOptions(io.github.cdklabs.projen.typescript.TypeScriptProjectOptions typescriptClientOptions)Sets the value ofCommonApiProjectOptions.getTypescriptClientOptions()SmithyApiGatewayPythonProjectOptions.Buildervenv(Boolean venv)Sets the value ofPythonProjectOptions.getVenv()SmithyApiGatewayPythonProjectOptions.BuildervenvOptions(io.github.cdklabs.projen.python.VenvOptions venvOptions)Sets the value ofPythonProjectOptions.getVenvOptions()SmithyApiGatewayPythonProjectOptions.Builderversion(String version)Sets the value ofPythonPackagingOptions.getVersion()SmithyApiGatewayPythonProjectOptions.Buildervscode(Boolean vscode)Sets the value ofGitHubProjectOptions.getVscode()
-
-
-
Method Detail
-
moduleName
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder moduleName(String moduleName)
Sets the value ofPythonProjectOptions.getModuleName()- Parameters:
moduleName- Name of the python package as used in imports and filenames. This parameter is required. Must only consist of alphanumeric characters and underscores.- Returns:
this
-
deps
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder deps(List<String> deps)
Sets the value ofPythonProjectOptions.getDeps()- Parameters:
deps- List of runtime dependencies for this project. Dependencies use the format:<module>@<semver>Additional dependencies can be added via
project.addDependency().- Returns:
this
-
devDeps
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder devDeps(List<String> devDeps)
Sets the value ofPythonProjectOptions.getDevDeps()- Parameters:
devDeps- List of dev dependencies for this project. Dependencies use the format:<module>@<semver>Additional dependencies can be added via
project.addDevDependency().- Returns:
this
-
pip
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder pip(Boolean pip)
Sets the value ofPythonProjectOptions.getPip()- Parameters:
pip- Use pip with a requirements.txt file to track project dependencies.- Returns:
this
-
poetry
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder poetry(Boolean poetry)
Sets the value ofPythonProjectOptions.getPoetry()- Parameters:
poetry- Use poetry to manage your project dependencies, virtual environment, and (optional) packaging/publishing.- Returns:
this
-
projenrcJs
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenrcJs(Boolean projenrcJs)
Sets the value ofPythonProjectOptions.getProjenrcJs()- Parameters:
projenrcJs- Use projenrc in javascript. This will installprojenas a JavaScript dependency and add asynthtask which will run.projenrc.js.- Returns:
this
-
projenrcJsOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenrcJsOptions(io.github.cdklabs.projen.javascript.ProjenrcOptions projenrcJsOptions)
Sets the value ofPythonProjectOptions.getProjenrcJsOptions()- Parameters:
projenrcJsOptions- Options related to projenrc in JavaScript.- Returns:
this
-
projenrcPython
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenrcPython(Boolean projenrcPython)
Sets the value ofPythonProjectOptions.getProjenrcPython()- Parameters:
projenrcPython- Use projenrc in Python. This will installprojenas a Python dependency and add asynthtask which will run.projenrc.py.- Returns:
this
-
projenrcPythonOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenrcPythonOptions(io.github.cdklabs.projen.python.ProjenrcOptions projenrcPythonOptions)
Sets the value ofPythonProjectOptions.getProjenrcPythonOptions()- Parameters:
projenrcPythonOptions- Options related to projenrc in python.- Returns:
this
-
pytest
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder pytest(Boolean pytest)
Sets the value ofPythonProjectOptions.getPytest()- Parameters:
pytest- Include pytest tests.- Returns:
this
-
pytestOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder pytestOptions(io.github.cdklabs.projen.python.PytestOptions pytestOptions)
Sets the value ofPythonProjectOptions.getPytestOptions()- Parameters:
pytestOptions- pytest options.- Returns:
this
-
sample
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder sample(Boolean sample)
Sets the value ofPythonProjectOptions.getSample()- Parameters:
sample- Include sample code and test if the relevant directories don't exist.- Returns:
this
-
setuptools
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder setuptools(Boolean setuptools)
Sets the value ofPythonProjectOptions.getSetuptools()- Parameters:
setuptools- Use setuptools with a setup.py script for packaging and publishing.- Returns:
this
-
venv
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder venv(Boolean venv)
Sets the value ofPythonProjectOptions.getVenv()- Parameters:
venv- Use venv to manage a virtual environment for installing dependencies inside.- Returns:
this
-
venvOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder venvOptions(io.github.cdklabs.projen.python.VenvOptions venvOptions)
Sets the value ofPythonProjectOptions.getVenvOptions()- Parameters:
venvOptions- Venv options.- Returns:
this
-
autoApproveOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder autoApproveOptions(io.github.cdklabs.projen.github.AutoApproveOptions autoApproveOptions)
Sets the value ofGitHubProjectOptions.getAutoApproveOptions()- Parameters:
autoApproveOptions- Enable and configure the 'auto approve' workflow.- Returns:
this
-
autoMerge
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder autoMerge(Boolean autoMerge)
Sets the value ofGitHubProjectOptions.getAutoMerge()- Parameters:
autoMerge- Enable automatic merging on GitHub. Has no effect ifgithub.mergifyis set to false.- Returns:
this
-
autoMergeOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder autoMergeOptions(io.github.cdklabs.projen.github.AutoMergeOptions autoMergeOptions)
Sets the value ofGitHubProjectOptions.getAutoMergeOptions()- Parameters:
autoMergeOptions- Configure options for automatic merging on GitHub. Has no effect ifgithub.mergifyorautoMergeis set to false.- Returns:
this
-
clobber
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder clobber(Boolean clobber)
Sets the value ofGitHubProjectOptions.getClobber()- Parameters:
clobber- Add a `clobber` task which resets the repo to origin.- Returns:
this
-
devContainer
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder devContainer(Boolean devContainer)
Sets the value ofGitHubProjectOptions.getDevContainer()- Parameters:
devContainer- Add a VSCode development environment (used for GitHub Codespaces).- Returns:
this
-
github
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder github(Boolean github)
Sets the value ofGitHubProjectOptions.getGithub()- Parameters:
github- Enable GitHub integration. Enabled by default for root projects. Disabled for non-root projects.- Returns:
this
-
githubOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder githubOptions(io.github.cdklabs.projen.github.GitHubOptions githubOptions)
Sets the value ofGitHubProjectOptions.getGithubOptions()- Parameters:
githubOptions- Options for GitHub integration.- Returns:
this
-
gitpod
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder gitpod(Boolean gitpod)
Sets the value ofGitHubProjectOptions.getGitpod()- Parameters:
gitpod- Add a Gitpod development environment.- Returns:
this
-
mergify
@Stability(Deprecated) @Deprecated public SmithyApiGatewayPythonProjectOptions.Builder mergify(Boolean mergify)
Deprecated.use `githubOptions.mergify` insteadSets the value ofGitHubProjectOptions.getMergify()- Parameters:
mergify- Whether mergify should be enabled on this repository or not.- Returns:
this
-
mergifyOptions
@Stability(Deprecated) @Deprecated public SmithyApiGatewayPythonProjectOptions.Builder mergifyOptions(io.github.cdklabs.projen.github.MergifyOptions mergifyOptions)
Deprecated.use `githubOptions.mergifyOptions` insteadSets the value ofGitHubProjectOptions.getMergifyOptions()- Parameters:
mergifyOptions- Options for mergify.- Returns:
this
-
projectType
@Stability(Deprecated) @Deprecated public SmithyApiGatewayPythonProjectOptions.Builder projectType(io.github.cdklabs.projen.ProjectType projectType)
Deprecated.no longer supported at the base project levelSets the value ofGitHubProjectOptions.getProjectType()- Parameters:
projectType- Which type of project this is (library/app).- Returns:
this
-
projenCredentials
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenCredentials(io.github.cdklabs.projen.github.GithubCredentials projenCredentials)
Sets the value ofGitHubProjectOptions.getProjenCredentials()- Parameters:
projenCredentials- Choose a method of providing GitHub API access for projen workflows.- Returns:
this
-
projenTokenSecret
@Stability(Deprecated) @Deprecated public SmithyApiGatewayPythonProjectOptions.Builder projenTokenSecret(String projenTokenSecret)
Deprecated.use `projenCredentials`Sets the value ofGitHubProjectOptions.getProjenTokenSecret()- Parameters:
projenTokenSecret- The name of a secret which includes a GitHub Personal Access Token to be used by projen workflows. This token needs to have therepo,workflowsandpackagesscope.- Returns:
this
-
readme
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder readme(io.github.cdklabs.projen.SampleReadmeProps readme)
Sets the value ofGitHubProjectOptions.getReadme()- Parameters:
readme- The README setup.- Returns:
this
-
stale
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder stale(Boolean stale)
Sets the value ofGitHubProjectOptions.getStale()- Parameters:
stale- Auto-close of stale issues and pull request. SeestaleOptionsfor options.- Returns:
this
-
staleOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder staleOptions(io.github.cdklabs.projen.github.StaleOptions staleOptions)
Sets the value ofGitHubProjectOptions.getStaleOptions()- Parameters:
staleOptions- Auto-close stale issues and pull requests. To disable setstaletofalse.- Returns:
this
-
vscode
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder vscode(Boolean vscode)
Sets the value ofGitHubProjectOptions.getVscode()- Parameters:
vscode- Enable VSCode integration. Enabled by default for root projects. Disabled for non-root projects.- Returns:
this
-
name
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder name(String name)
Sets the value ofProjectOptions.getName()- Parameters:
name- This is the name of your project. This parameter is required.- Returns:
this
-
commitGenerated
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder commitGenerated(Boolean commitGenerated)
Sets the value ofProjectOptions.getCommitGenerated()- Parameters:
commitGenerated- Whether to commit the managed files by default.- Returns:
this
-
logging
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder logging(io.github.cdklabs.projen.LoggerOptions logging)
Sets the value ofProjectOptions.getLogging()- Parameters:
logging- Configure logging options such as verbosity.- Returns:
this
-
outdir
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder outdir(String outdir)
Sets the value ofProjectOptions.getOutdir()- Parameters:
outdir- The root directory of the project. Relative to this directory, all files are synthesized.If this project has a parent, this directory is relative to the parent directory and it cannot be the same as the parent or any of it's other sub-projects.
- Returns:
this
-
parent
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder parent(io.github.cdklabs.projen.Project parent)
Sets the value ofProjectOptions.getParent()- Parameters:
parent- The parent project, if this project is part of a bigger project.- Returns:
this
-
projenCommand
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenCommand(String projenCommand)
Sets the value ofProjectOptions.getProjenCommand()- Parameters:
projenCommand- The shell command to use in order to run the projen CLI. Can be used to customize in special environments.- Returns:
this
-
projenrcJson
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenrcJson(Boolean projenrcJson)
Sets the value ofProjectOptions.getProjenrcJson()- Parameters:
projenrcJson- Generate (once) .projenrc.json (in JSON). Set to `false` in order to disable .projenrc.json generation.- Returns:
this
-
projenrcJsonOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder projenrcJsonOptions(io.github.cdklabs.projen.ProjenrcOptions projenrcJsonOptions)
Sets the value ofProjectOptions.getProjenrcJsonOptions()- Parameters:
projenrcJsonOptions- Options for .projenrc.json.- Returns:
this
-
renovatebot
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder renovatebot(Boolean renovatebot)
Sets the value ofProjectOptions.getRenovatebot()- Parameters:
renovatebot- Use renovatebot to handle dependency upgrades.- Returns:
this
-
renovatebotOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder renovatebotOptions(io.github.cdklabs.projen.RenovatebotOptions renovatebotOptions)
Sets the value ofProjectOptions.getRenovatebotOptions()- Parameters:
renovatebotOptions- Options for renovatebot.- Returns:
this
-
authorEmail
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder authorEmail(String authorEmail)
Sets the value ofPythonPackagingOptions.getAuthorEmail()- Parameters:
authorEmail- Author's e-mail. This parameter is required.- Returns:
this
-
authorName
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder authorName(String authorName)
Sets the value ofPythonPackagingOptions.getAuthorName()- Parameters:
authorName- Author's name. This parameter is required.- Returns:
this
-
version
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder version(String version)
Sets the value ofPythonPackagingOptions.getVersion()- Parameters:
version- Version of the package. This parameter is required.- Returns:
this
-
classifiers
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder classifiers(List<String> classifiers)
Sets the value ofPythonPackagingOptions.getClassifiers()- Parameters:
classifiers- A list of PyPI trove classifiers that describe the project.- Returns:
this
-
description
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder description(String description)
Sets the value ofPythonPackagingOptions.getDescription()- Parameters:
description- A short description of the package.- Returns:
this
-
homepage
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder homepage(String homepage)
Sets the value ofPythonPackagingOptions.getHomepage()- Parameters:
homepage- A URL to the website of the project.- Returns:
this
-
license
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder license(String license)
Sets the value ofPythonPackagingOptions.getLicense()- Parameters:
license- License of this package as an SPDX identifier.- Returns:
this
-
packageName
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder packageName(String packageName)
Sets the value ofPythonPackagingOptions.getPackageName()- Parameters:
packageName- Package name.- Returns:
this
-
poetryOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder poetryOptions(io.github.cdklabs.projen.python.PoetryPyprojectOptionsWithoutDeps poetryOptions)
Sets the value ofPythonPackagingOptions.getPoetryOptions()- Parameters:
poetryOptions- Additional options to set for poetry if using poetry.- Returns:
this
-
setupConfig
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder setupConfig(Map<String,? extends Object> setupConfig)
Sets the value ofPythonPackagingOptions.getSetupConfig()- Parameters:
setupConfig- Additional fields to pass in the setup() function if using setuptools.- Returns:
this
-
serviceName
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder serviceName(SmithyServiceName serviceName)
Sets the value ofSmithyApiGatewayProjectOptions.getServiceName()- Parameters:
serviceName- The name of the Smithy service from your model which will be targeted for deployment and client generation. This parameter is required. On initial project synthesis this service name will be written to the sample "hello world" model. If you change this value after initial synthesis you will need to manually update your Smithy models to match, unless you delete the "model" directory. Likewise, if you change the namespace or service name in your Smithy models you will need to update this value to ensure your service can be found.- Returns:
this
-
gradleWrapperPath
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder gradleWrapperPath(String gradleWrapperPath)
Sets the value ofSmithyApiGatewayProjectOptions.getGradleWrapperPath()- Parameters:
gradleWrapperPath- Path to a directory containing a custom gradle wrapper (gradlew) to use instead of the one provided by the PDK, relative to the project outdir. Use this if you would like to own and check in the gradle wrapper instead of using the provided one.- Returns:
this
-
ignoreSmithyBuildOutput
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder ignoreSmithyBuildOutput(Boolean ignoreSmithyBuildOutput)
Sets the value ofSmithyApiGatewayProjectOptions.getIgnoreSmithyBuildOutput()- Parameters:
ignoreSmithyBuildOutput- Set to false if you would like to check in your smithy build output or have more fine-grained control over what is checked in, eg if you add other projections to the smithy-build.json file.- Returns:
this
-
modelDir
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder modelDir(String modelDir)
Sets the value ofSmithyApiGatewayProjectOptions.getModelDir()- Parameters:
modelDir- The path to the Smithy model directory, relative to the project source directory (srcdir).- Returns:
this
-
smithyBuildOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder smithyBuildOptions(SmithyBuildOptions smithyBuildOptions)
Sets the value ofSmithyApiGatewayProjectOptions.getSmithyBuildOptions()- Parameters:
smithyBuildOptions- Any additional properties you'd like to add your smithy-build.json. The smithy-build.json will automatically include the "openapi" plugin, but you can add extra configuration for that via this option if you like.- Returns:
this
-
clientLanguages
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder clientLanguages(List<? extends ClientLanguage> clientLanguages)
Sets the value ofCommonApiProjectOptions.getClientLanguages()- Parameters:
clientLanguages- The list of languages for which clients will be generated. This parameter is required. A typescript client will always be generated.- Returns:
this
-
apiSrcDir
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder apiSrcDir(String apiSrcDir)
Sets the value ofCommonApiProjectOptions.getApiSrcDir()- Parameters:
apiSrcDir- The directory in which the api generated code will reside, relative to the project srcdir.- Returns:
this
-
documentationFormats
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder documentationFormats(List<? extends DocumentationFormat> documentationFormats)
Sets the value ofCommonApiProjectOptions.getDocumentationFormats()- Parameters:
documentationFormats- Formats to generate documentation in.- Returns:
this
-
forceGenerateCodeAndDocs
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder forceGenerateCodeAndDocs(Boolean forceGenerateCodeAndDocs)
Sets the value ofCommonApiProjectOptions.getForceGenerateCodeAndDocs()- Parameters:
forceGenerateCodeAndDocs- Force to generate code and docs even if there were no changes in spec.- Returns:
this
-
generatedCodeDir
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder generatedCodeDir(String generatedCodeDir)
Sets the value ofCommonApiProjectOptions.getGeneratedCodeDir()- Parameters:
generatedCodeDir- The directory in which generated client code will be generated, relative to the outdir of this project.- Returns:
this
-
javaClientOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder javaClientOptions(io.github.cdklabs.projen.java.JavaProjectOptions javaClientOptions)
Sets the value ofCommonApiProjectOptions.getJavaClientOptions()- Parameters:
javaClientOptions- Options for the generated java client (if specified in clientLanguages). These override the default inferred options.- Returns:
this
-
parsedSpecFileName
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder parsedSpecFileName(String parsedSpecFileName)
Sets the value ofCommonApiProjectOptions.getParsedSpecFileName()- Parameters:
parsedSpecFileName- The name of the output parsed OpenAPI specification file. Must end with .json.- Returns:
this
-
pythonClientOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder pythonClientOptions(io.github.cdklabs.projen.python.PythonProjectOptions pythonClientOptions)
Sets the value ofCommonApiProjectOptions.getPythonClientOptions()- Parameters:
pythonClientOptions- Options for the generated python client (if specified in clientLanguages). These override the default inferred options.- Returns:
this
-
typescriptClientOptions
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions.Builder typescriptClientOptions(io.github.cdklabs.projen.typescript.TypeScriptProjectOptions typescriptClientOptions)
Sets the value ofCommonApiProjectOptions.getTypescriptClientOptions()- Parameters:
typescriptClientOptions- Options for the generated typescript client. These override the default inferred options.- Returns:
this
-
build
@Stability(Experimental) public SmithyApiGatewayPythonProjectOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SmithyApiGatewayPythonProjectOptions>- Returns:
- a new instance of
SmithyApiGatewayPythonProjectOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-