Package io.github.cdklabs.projen.cdk
Class JsiiDotNetTarget.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.cdk.JsiiDotNetTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<JsiiDotNetTarget>
- Enclosing interface:
- JsiiDotNetTarget
@Stability(Experimental) public static final class JsiiDotNetTarget.Builder extends Object implements software.amazon.jsii.Builder<JsiiDotNetTarget>
A builder forJsiiDotNetTarget
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
dotNetNamespace
@Stability(Experimental) public JsiiDotNetTarget.Builder dotNetNamespace(String dotNetNamespace)
Sets the value ofJsiiDotNetTarget.getDotNetNamespace()- Parameters:
dotNetNamespace- the value to be set. This parameter is required.- Returns:
this
-
packageId
@Stability(Experimental) public JsiiDotNetTarget.Builder packageId(String packageId)
Sets the value ofJsiiDotNetTarget.getPackageId()- Parameters:
packageId- the value to be set. This parameter is required.- Returns:
this
-
iconUrl
@Stability(Experimental) public JsiiDotNetTarget.Builder iconUrl(String iconUrl)
Sets the value ofJsiiDotNetTarget.getIconUrl()- Parameters:
iconUrl- the value to be set.- Returns:
this
-
nugetApiKeySecret
@Stability(Experimental) public JsiiDotNetTarget.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 JsiiDotNetTarget.Builder nugetServer(String nugetServer)
Sets the value ofNugetPublishOptions.getNugetServer()- Parameters:
nugetServer- NuGet Server URL (defaults to nuget.org).- Returns:
this
-
postPublishSteps
@Stability(Experimental) public JsiiDotNetTarget.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 JsiiDotNetTarget.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 JsiiDotNetTarget.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 JsiiDotNetTarget build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<JsiiDotNetTarget>- Returns:
- a new instance of
JsiiDotNetTarget - Throws:
NullPointerException- if any required attribute was not provided
-
-