Class PipelineInvokeActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.PipelineInvokeActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PipelineInvokeActionProps>
- Enclosing interface:
PipelineInvokeActionProps
@Stability(Stable)
public static final class PipelineInvokeActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<PipelineInvokeActionProps>
A builder for
PipelineInvokeActionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
build()
Builds the configured instance.Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
sourceRevisions
(List<? extends SourceRevision> sourceRevisions) Sets the value ofPipelineInvokeActionProps.getSourceRevisions()
targetPipeline
(IPipeline targetPipeline) Sets the value ofPipelineInvokeActionProps.getTargetPipeline()
Sets the value ofPipelineInvokeActionProps.getVariables()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetPipeline
@Stability(Stable) public PipelineInvokeActionProps.Builder targetPipeline(IPipeline targetPipeline) Sets the value ofPipelineInvokeActionProps.getTargetPipeline()
- Parameters:
targetPipeline
- The pipeline that will, upon running, start the current target pipeline. This parameter is required. You must have already created the invoking pipeline.- Returns:
this
-
sourceRevisions
@Stability(Stable) public PipelineInvokeActionProps.Builder sourceRevisions(List<? extends SourceRevision> sourceRevisions) Sets the value ofPipelineInvokeActionProps.getSourceRevisions()
- Parameters:
sourceRevisions
- The source revisions that you want the target pipeline to use when it is started by the invoking pipeline.- Returns:
this
-
variables
@Stability(Stable) public PipelineInvokeActionProps.Builder variables(List<? extends Variable> variables) Sets the value ofPipelineInvokeActionProps.getVariables()
- Parameters:
variables
- The names and values of variables that you want the action to support.- Returns:
this
-
role
Sets the value ofCommonAwsActionProps.getRole()
- Parameters:
role
- The Role in which context's this Action will be executing in. The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into yourIAction.bind
method in theActionBindOptions.role
property.- 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
@Stability(Stable) public PipelineInvokeActionProps.Builder variablesNamespace(String 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<PipelineInvokeActionProps>
- Returns:
- a new instance of
PipelineInvokeActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-