Class SmithyApiGatewayJavaProjectOptions.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.SmithyApiGatewayJavaProjectOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SmithyApiGatewayJavaProjectOptions>
- Enclosing interface:
- SmithyApiGatewayJavaProjectOptions
@Stability(Experimental) public static final class SmithyApiGatewayJavaProjectOptions.Builder extends Object implements software.amazon.jsii.Builder<SmithyApiGatewayJavaProjectOptions>
A builder forSmithyApiGatewayJavaProjectOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SmithyApiGatewayJavaProjectOptions.BuilderapiSrcDir(String apiSrcDir)Sets the value ofCommonApiProjectOptions.getApiSrcDir()SmithyApiGatewayJavaProjectOptions.BuilderartifactId(String artifactId)Sets the value ofPomOptions.getArtifactId()SmithyApiGatewayJavaProjectOptions.BuilderautoApproveOptions(io.github.cdklabs.projen.github.AutoApproveOptions autoApproveOptions)Sets the value ofGitHubProjectOptions.getAutoApproveOptions()SmithyApiGatewayJavaProjectOptions.BuilderautoMerge(Boolean autoMerge)Sets the value ofGitHubProjectOptions.getAutoMerge()SmithyApiGatewayJavaProjectOptions.BuilderautoMergeOptions(io.github.cdklabs.projen.github.AutoMergeOptions autoMergeOptions)Sets the value ofGitHubProjectOptions.getAutoMergeOptions()SmithyApiGatewayJavaProjectOptionsbuild()Builds the configured instance.SmithyApiGatewayJavaProjectOptions.BuilderclientLanguages(List<? extends ClientLanguage> clientLanguages)Sets the value ofCommonApiProjectOptions.getClientLanguages()SmithyApiGatewayJavaProjectOptions.Builderclobber(Boolean clobber)Sets the value ofGitHubProjectOptions.getClobber()SmithyApiGatewayJavaProjectOptions.BuildercommitGenerated(Boolean commitGenerated)Sets the value ofProjectOptions.getCommitGenerated()SmithyApiGatewayJavaProjectOptions.BuildercompileOptions(io.github.cdklabs.projen.java.MavenCompileOptions compileOptions)Sets the value ofJavaProjectCommonOptions.getCompileOptions()SmithyApiGatewayJavaProjectOptions.Builderdeps(List<String> deps)Sets the value ofJavaProjectCommonOptions.getDeps()SmithyApiGatewayJavaProjectOptions.Builderdescription(String description)Sets the value ofPomOptions.getDescription()SmithyApiGatewayJavaProjectOptions.BuilderdevContainer(Boolean devContainer)Sets the value ofGitHubProjectOptions.getDevContainer()SmithyApiGatewayJavaProjectOptions.Builderdistdir(String distdir)Sets the value ofJavaProjectCommonOptions.getDistdir()SmithyApiGatewayJavaProjectOptions.BuilderdocumentationFormats(List<? extends DocumentationFormat> documentationFormats)Sets the value ofCommonApiProjectOptions.getDocumentationFormats()SmithyApiGatewayJavaProjectOptions.BuilderforceGenerateCodeAndDocs(Boolean forceGenerateCodeAndDocs)Sets the value ofCommonApiProjectOptions.getForceGenerateCodeAndDocs()SmithyApiGatewayJavaProjectOptions.BuildergeneratedCodeDir(String generatedCodeDir)Sets the value ofCommonApiProjectOptions.getGeneratedCodeDir()SmithyApiGatewayJavaProjectOptions.Buildergithub(Boolean github)Sets the value ofGitHubProjectOptions.getGithub()SmithyApiGatewayJavaProjectOptions.BuildergithubOptions(io.github.cdklabs.projen.github.GitHubOptions githubOptions)Sets the value ofGitHubProjectOptions.getGithubOptions()SmithyApiGatewayJavaProjectOptions.Buildergitpod(Boolean gitpod)Sets the value ofGitHubProjectOptions.getGitpod()SmithyApiGatewayJavaProjectOptions.BuildergroupId(String groupId)Sets the value ofPomOptions.getGroupId()SmithyApiGatewayJavaProjectOptions.BuilderignoreGradleWrapper(Boolean ignoreGradleWrapper)Sets the value ofSmithyApiGatewayProjectOptions.getIgnoreGradleWrapper()SmithyApiGatewayJavaProjectOptions.BuilderignoreSmithyBuildOutput(Boolean ignoreSmithyBuildOutput)Sets the value ofSmithyApiGatewayProjectOptions.getIgnoreSmithyBuildOutput()SmithyApiGatewayJavaProjectOptions.BuilderjavaClientOptions(io.github.cdklabs.projen.java.JavaProjectOptions javaClientOptions)Sets the value ofCommonApiProjectOptions.getJavaClientOptions()SmithyApiGatewayJavaProjectOptions.Builderjunit(Boolean junit)Sets the value ofJavaProjectCommonOptions.getJunit()SmithyApiGatewayJavaProjectOptions.BuilderjunitOptions(io.github.cdklabs.projen.java.JunitOptions junitOptions)Sets the value ofJavaProjectCommonOptions.getJunitOptions()SmithyApiGatewayJavaProjectOptions.Builderlogging(io.github.cdklabs.projen.LoggerOptions logging)Sets the value ofProjectOptions.getLogging()SmithyApiGatewayJavaProjectOptions.Buildermergify(Boolean mergify)Deprecated.use `githubOptions.mergify` insteadSmithyApiGatewayJavaProjectOptions.BuildermergifyOptions(io.github.cdklabs.projen.github.MergifyOptions mergifyOptions)Deprecated.use `githubOptions.mergifyOptions` insteadSmithyApiGatewayJavaProjectOptions.BuildermodelDir(String modelDir)Sets the value ofSmithyApiGatewayProjectOptions.getModelDir()SmithyApiGatewayJavaProjectOptions.Buildername(String name)Sets the value ofProjectOptions.getName()SmithyApiGatewayJavaProjectOptions.Builderoutdir(String outdir)Sets the value ofProjectOptions.getOutdir()SmithyApiGatewayJavaProjectOptions.Builderpackaging(String packaging)Sets the value ofPomOptions.getPackaging()SmithyApiGatewayJavaProjectOptions.BuilderpackagingOptions(io.github.cdklabs.projen.java.MavenPackagingOptions packagingOptions)Sets the value ofJavaProjectCommonOptions.getPackagingOptions()SmithyApiGatewayJavaProjectOptions.Builderparent(io.github.cdklabs.projen.Project parent)Sets the value ofProjectOptions.getParent()SmithyApiGatewayJavaProjectOptions.BuilderparsedSpecFileName(String parsedSpecFileName)Sets the value ofCommonApiProjectOptions.getParsedSpecFileName()SmithyApiGatewayJavaProjectOptions.BuilderprojectType(io.github.cdklabs.projen.ProjectType projectType)Deprecated.no longer supported at the base project levelSmithyApiGatewayJavaProjectOptions.BuilderprojenCommand(String projenCommand)Sets the value ofProjectOptions.getProjenCommand()SmithyApiGatewayJavaProjectOptions.BuilderprojenCredentials(io.github.cdklabs.projen.github.GithubCredentials projenCredentials)Sets the value ofGitHubProjectOptions.getProjenCredentials()SmithyApiGatewayJavaProjectOptions.BuilderprojenrcJava(Boolean projenrcJava)Sets the value ofJavaProjectCommonOptions.getProjenrcJava()SmithyApiGatewayJavaProjectOptions.BuilderprojenrcJavaOptions(io.github.cdklabs.projen.java.ProjenrcOptions projenrcJavaOptions)Sets the value ofJavaProjectCommonOptions.getProjenrcJavaOptions()SmithyApiGatewayJavaProjectOptions.BuilderprojenrcJson(Boolean projenrcJson)Sets the value ofProjectOptions.getProjenrcJson()SmithyApiGatewayJavaProjectOptions.BuilderprojenrcJsonOptions(io.github.cdklabs.projen.ProjenrcOptions projenrcJsonOptions)Sets the value ofProjectOptions.getProjenrcJsonOptions()SmithyApiGatewayJavaProjectOptions.BuilderprojenTokenSecret(String projenTokenSecret)Deprecated.use `projenCredentials`SmithyApiGatewayJavaProjectOptions.BuilderpythonClientOptions(io.github.cdklabs.projen.python.PythonProjectOptions pythonClientOptions)Sets the value ofCommonApiProjectOptions.getPythonClientOptions()SmithyApiGatewayJavaProjectOptions.Builderreadme(io.github.cdklabs.projen.SampleReadmeProps readme)Sets the value ofGitHubProjectOptions.getReadme()SmithyApiGatewayJavaProjectOptions.Builderrenovatebot(Boolean renovatebot)Sets the value ofProjectOptions.getRenovatebot()SmithyApiGatewayJavaProjectOptions.BuilderrenovatebotOptions(io.github.cdklabs.projen.RenovatebotOptions renovatebotOptions)Sets the value ofProjectOptions.getRenovatebotOptions()SmithyApiGatewayJavaProjectOptions.Buildersample(Boolean sample)Sets the value ofJavaProjectOptions.getSample()SmithyApiGatewayJavaProjectOptions.BuildersampleJavaPackage(String sampleJavaPackage)Sets the value ofJavaProjectOptions.getSampleJavaPackage()SmithyApiGatewayJavaProjectOptions.BuilderserviceName(SmithyServiceName serviceName)Sets the value ofSmithyApiGatewayProjectOptions.getServiceName()SmithyApiGatewayJavaProjectOptions.BuildersmithyBuildOptions(SmithyBuildOptions smithyBuildOptions)Sets the value ofSmithyApiGatewayProjectOptions.getSmithyBuildOptions()SmithyApiGatewayJavaProjectOptions.Builderstale(Boolean stale)Sets the value ofGitHubProjectOptions.getStale()SmithyApiGatewayJavaProjectOptions.BuilderstaleOptions(io.github.cdklabs.projen.github.StaleOptions staleOptions)Sets the value ofGitHubProjectOptions.getStaleOptions()SmithyApiGatewayJavaProjectOptions.BuildertestDeps(List<String> testDeps)Sets the value ofJavaProjectCommonOptions.getTestDeps()SmithyApiGatewayJavaProjectOptions.BuildertypescriptClientOptions(io.github.cdklabs.projen.typescript.TypeScriptProjectOptions typescriptClientOptions)Sets the value ofCommonApiProjectOptions.getTypescriptClientOptions()SmithyApiGatewayJavaProjectOptions.Builderurl(String url)Sets the value ofPomOptions.getUrl()SmithyApiGatewayJavaProjectOptions.Builderversion(String version)Sets the value ofPomOptions.getVersion()SmithyApiGatewayJavaProjectOptions.Buildervscode(Boolean vscode)Sets the value ofGitHubProjectOptions.getVscode()
-
-
-
Method Detail
-
sample
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder sample(Boolean sample)
Sets the value ofJavaProjectOptions.getSample()- Parameters:
sample- Include sample code and test if the relevant directories don't exist.- Returns:
this
-
sampleJavaPackage
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder sampleJavaPackage(String sampleJavaPackage)
Sets the value ofJavaProjectOptions.getSampleJavaPackage()- Parameters:
sampleJavaPackage- The java package to use for the code sample.- Returns:
this
-
compileOptions
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder compileOptions(io.github.cdklabs.projen.java.MavenCompileOptions compileOptions)
Sets the value ofJavaProjectCommonOptions.getCompileOptions()- Parameters:
compileOptions- Compile options.- Returns:
this
-
deps
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder deps(List<String> deps)
Sets the value ofJavaProjectCommonOptions.getDeps()- Parameters:
deps- List of runtime dependencies for this project. Dependencies use the format:<groupId>/<artifactId>@<semver>Additional dependencies can be added via
project.addDependency().- Returns:
this
-
distdir
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder distdir(String distdir)
Sets the value ofJavaProjectCommonOptions.getDistdir()- Parameters:
distdir- Final artifact output directory.- Returns:
this
-
junit
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder junit(Boolean junit)
Sets the value ofJavaProjectCommonOptions.getJunit()- Parameters:
junit- Include junit tests.- Returns:
this
-
junitOptions
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder junitOptions(io.github.cdklabs.projen.java.JunitOptions junitOptions)
Sets the value ofJavaProjectCommonOptions.getJunitOptions()- Parameters:
junitOptions- junit options.- Returns:
this
-
packagingOptions
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder packagingOptions(io.github.cdklabs.projen.java.MavenPackagingOptions packagingOptions)
Sets the value ofJavaProjectCommonOptions.getPackagingOptions()- Parameters:
packagingOptions- Packaging options.- Returns:
this
-
projenrcJava
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder projenrcJava(Boolean projenrcJava)
Sets the value ofJavaProjectCommonOptions.getProjenrcJava()- Parameters:
projenrcJava- Use projenrc in java. This will installprojenas a java dependency and will add asynthtask which will compile & executemain()fromsrc/main/java/projenrc.java.- Returns:
this
-
projenrcJavaOptions
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder projenrcJavaOptions(io.github.cdklabs.projen.java.ProjenrcOptions projenrcJavaOptions)
Sets the value ofJavaProjectCommonOptions.getProjenrcJavaOptions()- Parameters:
projenrcJavaOptions- Options related to projenrc in java.- Returns:
this
-
testDeps
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder testDeps(List<String> testDeps)
Sets the value ofJavaProjectCommonOptions.getTestDeps()- Parameters:
testDeps- List of test dependencies for this project. Dependencies use the format:<groupId>/<artifactId>@<semver>Additional dependencies can be added via
project.addTestDependency().- Returns:
this
-
autoApproveOptions
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.Builder gitpod(Boolean gitpod)
Sets the value ofGitHubProjectOptions.getGitpod()- Parameters:
gitpod- Add a Gitpod development environment.- Returns:
this
-
mergify
@Stability(Deprecated) @Deprecated public SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.Builder readme(io.github.cdklabs.projen.SampleReadmeProps readme)
Sets the value ofGitHubProjectOptions.getReadme()- Parameters:
readme- The README setup.- Returns:
this
-
stale
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.Builder renovatebot(Boolean renovatebot)
Sets the value ofProjectOptions.getRenovatebot()- Parameters:
renovatebot- Use renovatebot to handle dependency upgrades.- Returns:
this
-
renovatebotOptions
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder renovatebotOptions(io.github.cdklabs.projen.RenovatebotOptions renovatebotOptions)
Sets the value ofProjectOptions.getRenovatebotOptions()- Parameters:
renovatebotOptions- Options for renovatebot.- Returns:
this
-
artifactId
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder artifactId(String artifactId)
Sets the value ofPomOptions.getArtifactId()- Parameters:
artifactId- The artifactId is generally the name that the project is known by. This parameter is required. Although the groupId is important, people within the group will rarely mention the groupId in discussion (they are often all be the same ID, such as the MojoHaus project groupId: org.codehaus.mojo). It, along with the groupId, creates a key that separates this project from every other project in the world (at least, it should :) ). Along with the groupId, the artifactId fully defines the artifact's living quarters within the repository. In the case of the above project, my-project lives in $M2_REPO/org/codehaus/mojo/my-project.- Returns:
this
-
groupId
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder groupId(String groupId)
Sets the value ofPomOptions.getGroupId()- Parameters:
groupId- This is generally unique amongst an organization or a project. This parameter is required. For example, all core Maven artifacts do (well, should) live under the groupId org.apache.maven. Group ID's do not necessarily use the dot notation, for example, the junit project. Note that the dot-notated groupId does not have to correspond to the package structure that the project contains. It is, however, a good practice to follow. When stored within a repository, the group acts much like the Java packaging structure does in an operating system. The dots are replaced by OS specific directory separators (such as '/' in Unix) which becomes a relative directory structure from the base repository. In the example given, the org.codehaus.mojo group lives within the directory $M2_REPO/org/codehaus/mojo.- Returns:
this
-
version
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder version(String version)
Sets the value ofPomOptions.getVersion()- Parameters:
version- This is the last piece of the naming puzzle. This parameter is required. groupId:artifactId denotes a single project but they cannot delineate which incarnation of that project we are talking about. Do we want the junit:junit of 2018 (version 4.12), or of 2007 (version 3.8.2)? In short: code changes, those changes should be versioned, and this element keeps those versions in line. It is also used within an artifact's repository to separate versions from each other. my-project version 1.0 files live in the directory structure $M2_REPO/org/codehaus/mojo/my-project/1.0.- Returns:
this
-
description
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder description(String description)
Sets the value ofPomOptions.getDescription()- Parameters:
description- Description of a project is always good. Although this should not replace formal documentation, a quick comment to any readers of the POM is always helpful.- Returns:
this
-
packaging
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder packaging(String packaging)
Sets the value ofPomOptions.getPackaging()- Parameters:
packaging- Project packaging format.- Returns:
this
-
url
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder url(String url)
Sets the value ofPomOptions.getUrl()- Parameters:
url- The URL, like the name, is not required. This is a nice gesture for projects users, however, so that they know where the project lives.- Returns:
this
-
serviceName
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.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
-
ignoreGradleWrapper
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.Builder ignoreGradleWrapper(Boolean ignoreGradleWrapper)
Sets the value ofSmithyApiGatewayProjectOptions.getIgnoreGradleWrapper()- Parameters:
ignoreGradleWrapper- Set to false if you would like to check in your gradle wrapper. Do so if you would like to use a different version of gradle to the one provided by default- Returns:
this
-
ignoreSmithyBuildOutput
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.Builder documentationFormats(List<? extends DocumentationFormat> documentationFormats)
Sets the value ofCommonApiProjectOptions.getDocumentationFormats()- Parameters:
documentationFormats- Formats to generate documentation in.- Returns:
this
-
forceGenerateCodeAndDocs
@Stability(Experimental) public SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions.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 SmithyApiGatewayJavaProjectOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SmithyApiGatewayJavaProjectOptions>- Returns:
- a new instance of
SmithyApiGatewayJavaProjectOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-