@Stability(value=Experimental) public static final class AwsCdkJavaAppOptions.Builder extends Object implements software.amazon.jsii.Builder<AwsCdkJavaAppOptions>
AwsCdkJavaAppOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder cdkVersion(String cdkVersion)
AwsCdkJavaAppOptions.getCdkVersion()cdkVersion - AWS CDK version to use (you can use semantic versioning). This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder mainClass(String mainClass)
AwsCdkJavaAppOptions.getMainClass()mainClass - The name of the Java class with the static `main()` method. This parameter is required.
This method
should call app.synth() on the CDK app.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder cdkDependencies(List<String> cdkDependencies)
AwsCdkJavaAppOptions.getCdkDependencies()cdkDependencies - Which AWS CDK modules this app uses.
The core module is included by
default and you can add additional modules here by stating only the package
name (e.g. aws-lambda).this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder sample(Boolean sample)
JavaProjectOptions.getSample()sample - Include sample code and test if the relevant directories don't exist.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder sampleJavaPackage(String sampleJavaPackage)
JavaProjectOptions.getSampleJavaPackage()sampleJavaPackage - The java package to use for the code sample.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder compileOptions(MavenCompileOptions compileOptions)
JavaProjectCommonOptions.getCompileOptions()compileOptions - Compile options.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder deps(List<String> deps)
JavaProjectCommonOptions.getDeps()deps - List of runtime dependencies for this project.
Dependencies use the format: <groupId>/<artifactId>@<semver>
Additional dependencies can be added via project.addDependency().
this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder distdir(String distdir)
JavaProjectCommonOptions.getDistdir()distdir - Final artifact output directory.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder junit(Boolean junit)
JavaProjectCommonOptions.getJunit()junit - Include junit tests.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder junitOptions(JunitOptions junitOptions)
JavaProjectCommonOptions.getJunitOptions()junitOptions - junit options.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder packagingOptions(MavenPackagingOptions packagingOptions)
JavaProjectCommonOptions.getPackagingOptions()packagingOptions - Packaging options.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder projenrcJava(Boolean projenrcJava)
JavaProjectCommonOptions.getProjenrcJava()projenrcJava - Use projenrc in java.
This will install projen as a java dependency and will add a synth task which
will compile & execute main() from src/main/java/projenrc.java.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder projenrcJavaOptions(ProjenrcOptions projenrcJavaOptions)
JavaProjectCommonOptions.getProjenrcJavaOptions()projenrcJavaOptions - Options related to projenrc in java.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder testDeps(List<String> testDeps)
JavaProjectCommonOptions.getTestDeps()testDeps - List of test dependencies for this project.
Dependencies use the format: <groupId>/<artifactId>@<semver>
Additional dependencies can be added via project.addTestDependency().
this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder autoApproveOptions(AutoApproveOptions autoApproveOptions)
GitHubProjectOptions.getAutoApproveOptions()autoApproveOptions - Enable and configure the 'auto approve' workflow.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder autoMergeOptions(AutoMergeOptions autoMergeOptions)
GitHubProjectOptions.getAutoMergeOptions()autoMergeOptions - Configure options for automatic merging on GitHub.
Has no effect if
github.mergify is set to false.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder clobber(Boolean clobber)
GitHubProjectOptions.getClobber()clobber - Add a `clobber` task which resets the repo to origin.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder devContainer(Boolean devContainer)
GitHubProjectOptions.getDevContainer()devContainer - Add a VSCode development environment (used for GitHub Codespaces).this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder github(Boolean github)
GitHubProjectOptions.getGithub()github - Enable GitHub integration.
Enabled by default for root projects. Disabled for non-root projects.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder githubOptions(GitHubOptions githubOptions)
GitHubProjectOptions.getGithubOptions()githubOptions - Options for GitHub integration.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder gitpod(Boolean gitpod)
GitHubProjectOptions.getGitpod()gitpod - Add a Gitpod development environment.this@Stability(value=Deprecated) @Deprecated public AwsCdkJavaAppOptions.Builder mergify(Boolean mergify)
GitHubProjectOptions.getMergify()mergify - Whether mergify should be enabled on this repository or not.this@Stability(value=Deprecated) @Deprecated public AwsCdkJavaAppOptions.Builder mergifyOptions(MergifyOptions mergifyOptions)
GitHubProjectOptions.getMergifyOptions()mergifyOptions - Options for mergify.this@Stability(value=Deprecated) @Deprecated public AwsCdkJavaAppOptions.Builder projectType(ProjectType projectType)
GitHubProjectOptions.getProjectType()projectType - Which type of project this is (library/app).this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder readme(SampleReadmeProps readme)
GitHubProjectOptions.getReadme()readme - The README setup.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder stale(Boolean stale)
GitHubProjectOptions.getStale()stale - Auto-close of stale issues and pull request.
See staleOptions for options.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder staleOptions(StaleOptions staleOptions)
GitHubProjectOptions.getStaleOptions()staleOptions - Auto-close stale issues and pull requests.
To disable set stale to false.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder vscode(Boolean vscode)
GitHubProjectOptions.getVscode()vscode - Enable VSCode integration.
Enabled by default for root projects. Disabled for non-root projects.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder name(String name)
ProjectOptions.getName()name - This is the name of your project. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder logging(LoggerOptions logging)
ProjectOptions.getLogging()logging - Configure logging options such as verbosity.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder outdir(String outdir)
ProjectOptions.getOutdir()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.
this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder parent(Project parent)
ProjectOptions.getParent()parent - The parent project, if this project is part of a bigger project.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder projenCommand(String projenCommand)
ProjectOptions.getProjenCommand()projenCommand - The shell command to use in order to run the projen CLI.
Can be used to customize in special environments.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder projenrcJson(Boolean projenrcJson)
ProjectOptions.getProjenrcJson()projenrcJson - Generate (once) .projenrc.json (in JSON). Set to `false` in order to disable .projenrc.json generation.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder projenrcJsonOptions(ProjenrcOptions projenrcJsonOptions)
ProjectOptions.getProjenrcJsonOptions()projenrcJsonOptions - Options for .projenrc.json.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder artifactId(String artifactId)
PomOptions.getArtifactId()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.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder groupId(String groupId)
PomOptions.getGroupId()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.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder version(String version)
PomOptions.getVersion()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.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder description(String description)
PomOptions.getDescription()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.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder packaging(String packaging)
PomOptions.getPackaging()packaging - Project packaging format.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder url(String url)
PomOptions.getUrl()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.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder buildCommand(String buildCommand)
CdkConfigCommonOptions.getBuildCommand()buildCommand - A command to execute before synthesis.
This command will be called when
running cdk synth or when cdk watch identifies a change in your source
code before redeployment.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder cdkout(String cdkout)
CdkConfigCommonOptions.getCdkout()cdkout - cdk.out directory.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder context(Map<String,String> context)
CdkConfigCommonOptions.getContext()context - Additional context to include in `cdk.json`.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder featureFlags(Boolean featureFlags)
CdkConfigCommonOptions.getFeatureFlags()featureFlags - Include all feature flags in cdk.json.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder requireApproval(ApprovalLevel requireApproval)
CdkConfigCommonOptions.getRequireApproval()requireApproval - To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder watchExcludes(List<String> watchExcludes)
CdkConfigCommonOptions.getWatchExcludes()watchExcludes - Glob patterns to exclude from `cdk watch`.this@Stability(value=Experimental) public AwsCdkJavaAppOptions.Builder watchIncludes(List<String> watchIncludes)
CdkConfigCommonOptions.getWatchIncludes()watchIncludes - Glob patterns to include in `cdk watch`.this@Stability(value=Experimental) public AwsCdkJavaAppOptions build()
build in interface software.amazon.jsii.Builder<AwsCdkJavaAppOptions>AwsCdkJavaAppOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.