Package io.github.cdklabs.projen.release
Class GitPublishOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.release.GitPublishOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitPublishOptions>
- Enclosing interface:
- GitPublishOptions
@Stability(Experimental) public static final class GitPublishOptions.Builder extends Object implements software.amazon.jsii.Builder<GitPublishOptions>
A builder forGitPublishOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitPublishOptionsbuild()Builds the configured instance.GitPublishOptions.BuilderchangelogFile(String changelogFile)Sets the value ofGitPublishOptions.getChangelogFile()GitPublishOptions.BuildergitBranch(String gitBranch)Sets the value ofGitPublishOptions.getGitBranch()GitPublishOptions.BuildergitPushCommand(String gitPushCommand)Sets the value ofGitPublishOptions.getGitPushCommand()GitPublishOptions.BuilderprojectChangelogFile(String projectChangelogFile)Sets the value ofGitPublishOptions.getProjectChangelogFile()GitPublishOptions.BuilderreleaseTagFile(String releaseTagFile)Sets the value ofGitPublishOptions.getReleaseTagFile()GitPublishOptions.BuilderversionFile(String versionFile)Sets the value ofGitPublishOptions.getVersionFile()
-
-
-
Method Detail
-
changelogFile
@Stability(Experimental) public GitPublishOptions.Builder changelogFile(String changelogFile)
Sets the value ofGitPublishOptions.getChangelogFile()- Parameters:
changelogFile- The location of an .md file (relative todist/) that includes the changelog for the release. This parameter is required.- Returns:
this
-
releaseTagFile
@Stability(Experimental) public GitPublishOptions.Builder releaseTagFile(String releaseTagFile)
Sets the value ofGitPublishOptions.getReleaseTagFile()- Parameters:
releaseTagFile- The location of a text file (relative todist/) that contains the release tag. This parameter is required.- Returns:
this
-
versionFile
@Stability(Experimental) public GitPublishOptions.Builder versionFile(String versionFile)
Sets the value ofGitPublishOptions.getVersionFile()- Parameters:
versionFile- The location of a text file (relative todist/) that contains the version number. This parameter is required.- Returns:
this
-
gitBranch
@Stability(Experimental) public GitPublishOptions.Builder gitBranch(String gitBranch)
Sets the value ofGitPublishOptions.getGitBranch()- Parameters:
gitBranch- Branch to push to.- Returns:
this
-
gitPushCommand
@Stability(Experimental) public GitPublishOptions.Builder gitPushCommand(String gitPushCommand)
Sets the value ofGitPublishOptions.getGitPushCommand()- Parameters:
gitPushCommand- Override git-push command. Set to an empty string to disable pushing.- Returns:
this
-
projectChangelogFile
@Stability(Experimental) public GitPublishOptions.Builder projectChangelogFile(String projectChangelogFile)
Sets the value ofGitPublishOptions.getProjectChangelogFile()- Parameters:
projectChangelogFile- The location of an .md file that includes the project-level changelog.- Returns:
this
-
build
@Stability(Experimental) public GitPublishOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitPublishOptions>- Returns:
- a new instance of
GitPublishOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-