Class JenkinsActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.JenkinsActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JenkinsActionProps>
- Enclosing interface:
JenkinsActionProps
@Stability(Stable)
public static final class JenkinsActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<JenkinsActionProps>
A builder for
JenkinsActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
build()
Builds the configured instance.Sets the value ofJenkinsActionProps.getInputs()
jenkinsProvider
(IJenkinsProvider jenkinsProvider) Sets the value ofJenkinsActionProps.getJenkinsProvider()
Sets the value ofJenkinsActionProps.getOutputs()
projectName
(String projectName) Sets the value ofJenkinsActionProps.getProjectName()
Sets the value ofCommonActionProps.getRunOrder()
type
(JenkinsActionType type) Sets the value ofJenkinsActionProps.getType()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jenkinsProvider
@Stability(Stable) public JenkinsActionProps.Builder jenkinsProvider(IJenkinsProvider jenkinsProvider) Sets the value ofJenkinsActionProps.getJenkinsProvider()
- Parameters:
jenkinsProvider
- The Jenkins Provider for this Action. This parameter is required.- Returns:
this
-
projectName
Sets the value ofJenkinsActionProps.getProjectName()
- Parameters:
projectName
- The name of the project (sometimes also called job, or task) on your Jenkins installation that will be invoked by this Action. This parameter is required.- Returns:
this
-
type
Sets the value ofJenkinsActionProps.getType()
- Parameters:
type
- The type of the Action - Build, or Test. This parameter is required.- Returns:
this
-
inputs
Sets the value ofJenkinsActionProps.getInputs()
- Parameters:
inputs
- The source to use as input for this build.- Returns:
this
-
outputs
Sets the value ofJenkinsActionProps.getOutputs()
- Parameters:
outputs
- the value to be set.- Returns:
this
-
actionName
Sets the value ofCommonActionProps.getActionName()
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required. Note that Action names must be unique within a single Stage.- Returns:
this
-
runOrder
Sets the value ofCommonActionProps.getRunOrder()
- Parameters:
runOrder
- The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.- Returns:
this
-
variablesNamespace
Sets the value ofCommonActionProps.getVariablesNamespace()
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<JenkinsActionProps>
- Returns:
- a new instance of
JenkinsActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-