Package io.github.cdklabs.projen.release
Class NugetPublishOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.release.NugetPublishOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NugetPublishOptions>
- Enclosing interface:
- NugetPublishOptions
@Stability(Experimental) public static final class NugetPublishOptions.Builder extends Object implements software.amazon.jsii.Builder<NugetPublishOptions>
A builder forNugetPublishOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NugetPublishOptionsbuild()Builds the configured instance.NugetPublishOptions.BuildernugetApiKeySecret(String nugetApiKeySecret)Sets the value ofNugetPublishOptions.getNugetApiKeySecret()NugetPublishOptions.BuildernugetServer(String nugetServer)Sets the value ofNugetPublishOptions.getNugetServer()NugetPublishOptions.BuilderpostPublishSteps(List<? extends JobStep> postPublishSteps)Sets the value ofCommonPublishOptions.getPostPublishSteps()NugetPublishOptions.BuilderprePublishSteps(List<? extends JobStep> prePublishSteps)Sets the value ofCommonPublishOptions.getPrePublishSteps()NugetPublishOptions.BuilderpublishTools(Tools publishTools)Sets the value ofCommonPublishOptions.getPublishTools()
-
-
-
Method Detail
-
nugetApiKeySecret
@Stability(Experimental) public NugetPublishOptions.Builder nugetApiKeySecret(String nugetApiKeySecret)
Sets the value ofNugetPublishOptions.getNugetApiKeySecret()- Parameters:
nugetApiKeySecret- GitHub secret which contains the API key for NuGet.- Returns:
this
-
nugetServer
@Stability(Experimental) public NugetPublishOptions.Builder nugetServer(String nugetServer)
Sets the value ofNugetPublishOptions.getNugetServer()- Parameters:
nugetServer- NuGet Server URL (defaults to nuget.org).- Returns:
this
-
postPublishSteps
@Stability(Experimental) public NugetPublishOptions.Builder postPublishSteps(List<? extends JobStep> postPublishSteps)
Sets the value ofCommonPublishOptions.getPostPublishSteps()- Parameters:
postPublishSteps- Steps to execute after executing the publishing command. These can be used to add/update the release artifacts ot any other tasks needed.Note that when using this in
publishToGitHubReleasesthis will override steps added viaaddGitHubPostPublishingSteps.- Returns:
this
-
prePublishSteps
@Stability(Experimental) public NugetPublishOptions.Builder prePublishSteps(List<? extends JobStep> prePublishSteps)
Sets the value ofCommonPublishOptions.getPrePublishSteps()- Parameters:
prePublishSteps- Steps to execute before executing the publishing command. These can be used to prepare the artifact for publishing if neede. These steps are executed afterdist/has been populated with the build output.Note that when using this in
publishToGitHubReleasesthis will override steps added viaaddGitHubPrePublishingSteps.- Returns:
this
-
publishTools
@Stability(Experimental) public NugetPublishOptions.Builder publishTools(Tools publishTools)
Sets the value ofCommonPublishOptions.getPublishTools()- Parameters:
publishTools- Additional tools to install in the publishing job.- Returns:
this
-
build
@Stability(Experimental) public NugetPublishOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NugetPublishOptions>- Returns:
- a new instance of
NugetPublishOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-