Package io.github.cdklabs.projen.cdk
Class JsiiPythonTarget.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.cdk.JsiiPythonTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<JsiiPythonTarget>
- Enclosing interface:
- JsiiPythonTarget
@Stability(Experimental) public static final class JsiiPythonTarget.Builder extends Object implements software.amazon.jsii.Builder<JsiiPythonTarget>
A builder forJsiiPythonTarget
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
distName
@Stability(Experimental) public JsiiPythonTarget.Builder distName(String distName)
Sets the value ofJsiiPythonTarget.getDistName()- Parameters:
distName- the value to be set. This parameter is required.- Returns:
this
-
module
@Stability(Experimental) public JsiiPythonTarget.Builder module(String module)
Sets the value ofJsiiPythonTarget.getModule()- Parameters:
module- the value to be set. This parameter is required.- Returns:
this
-
codeArtifactOptions
@Stability(Experimental) public JsiiPythonTarget.Builder codeArtifactOptions(CodeArtifactOptions codeArtifactOptions)
Sets the value ofPyPiPublishOptions.getCodeArtifactOptions()- Parameters:
codeArtifactOptions- Options for publishing to AWS CodeArtifact.- Returns:
this
-
twinePasswordSecret
@Stability(Experimental) public JsiiPythonTarget.Builder twinePasswordSecret(String twinePasswordSecret)
Sets the value ofPyPiPublishOptions.getTwinePasswordSecret()- Parameters:
twinePasswordSecret- The GitHub secret which contains PyPI password.- Returns:
this
-
twineRegistryUrl
@Stability(Experimental) public JsiiPythonTarget.Builder twineRegistryUrl(String twineRegistryUrl)
Sets the value ofPyPiPublishOptions.getTwineRegistryUrl()- Parameters:
twineRegistryUrl- The registry url to use when releasing packages.- Returns:
this
-
twineUsernameSecret
@Stability(Experimental) public JsiiPythonTarget.Builder twineUsernameSecret(String twineUsernameSecret)
Sets the value ofPyPiPublishOptions.getTwineUsernameSecret()- Parameters:
twineUsernameSecret- The GitHub secret which contains PyPI user name.- Returns:
this
-
postPublishSteps
@Stability(Experimental) public JsiiPythonTarget.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 JsiiPythonTarget.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 JsiiPythonTarget.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 JsiiPythonTarget build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<JsiiPythonTarget>- Returns:
- a new instance of
JsiiPythonTarget - Throws:
NullPointerException- if any required attribute was not provided
-
-