Package software.amazon.awscdk.pipelines
Class ProduceActionOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.ProduceActionOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProduceActionOptions>
- Enclosing interface:
ProduceActionOptions
@Stability(Stable)
public static final class ProduceActionOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ProduceActionOptions>
A builder for
ProduceActionOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofProduceActionOptions.getActionName()
artifacts
(ArtifactMap artifacts) Sets the value ofProduceActionOptions.getArtifacts()
beforeSelfMutation
(Boolean beforeSelfMutation) Sets the value ofProduceActionOptions.getBeforeSelfMutation()
build()
Builds the configured instance.codeBuildDefaults
(CodeBuildOptions codeBuildDefaults) Sets the value ofProduceActionOptions.getCodeBuildDefaults()
fallbackArtifact
(Artifact fallbackArtifact) Sets the value ofProduceActionOptions.getFallbackArtifact()
pipeline
(CodePipeline pipeline) Sets the value ofProduceActionOptions.getPipeline()
Sets the value ofProduceActionOptions.getRunOrder()
scope
(software.constructs.Construct scope) Sets the value ofProduceActionOptions.getScope()
stackOutputsMap
(StackOutputsMap stackOutputsMap) Sets the value ofProduceActionOptions.getStackOutputsMap()
variablesNamespace
(String variablesNamespace) Sets the value ofProduceActionOptions.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionName
Sets the value ofProduceActionOptions.getActionName()
- Parameters:
actionName
- Name the action should get. This parameter is required.- Returns:
this
-
artifacts
Sets the value ofProduceActionOptions.getArtifacts()
- Parameters:
artifacts
- Helper object to translate FileSets to CodePipeline Artifacts. This parameter is required.- Returns:
this
-
pipeline
Sets the value ofProduceActionOptions.getPipeline()
- Parameters:
pipeline
- The pipeline the action is being generated for. This parameter is required.- Returns:
this
-
runOrder
Sets the value ofProduceActionOptions.getRunOrder()
- Parameters:
runOrder
- RunOrder the action should get. This parameter is required.- Returns:
this
-
scope
Sets the value ofProduceActionOptions.getScope()
- Parameters:
scope
- Scope in which to create constructs. This parameter is required.- Returns:
this
-
stackOutputsMap
@Stability(Stable) public ProduceActionOptions.Builder stackOutputsMap(StackOutputsMap stackOutputsMap) Sets the value ofProduceActionOptions.getStackOutputsMap()
- Parameters:
stackOutputsMap
- Helper object to produce variables exported from stack deployments. This parameter is required. If your step references outputs from a stack deployment, use this to map the output references to Codepipeline variable names.Note - Codepipeline variables can only be referenced in action configurations.
- Returns:
this
-
beforeSelfMutation
@Stability(Stable) public ProduceActionOptions.Builder beforeSelfMutation(Boolean beforeSelfMutation) Sets the value ofProduceActionOptions.getBeforeSelfMutation()
- Parameters:
beforeSelfMutation
- Whether or not this action is inserted before self mutation. If it is, the action should take care to reflect some part of its own definition in the pipeline action definition, to trigger a restart after self-mutation (if necessary).- Returns:
this
-
codeBuildDefaults
@Stability(Stable) public ProduceActionOptions.Builder codeBuildDefaults(CodeBuildOptions codeBuildDefaults) Sets the value ofProduceActionOptions.getCodeBuildDefaults()
- Parameters:
codeBuildDefaults
- If this action factory creates a CodeBuild step, default options to inherit.- Returns:
this
-
fallbackArtifact
Sets the value ofProduceActionOptions.getFallbackArtifact()
- Parameters:
fallbackArtifact
- An input artifact that CodeBuild projects that don't actually need an input artifact can use. CodeBuild Projects MUST have an input artifact in order to be added to the Pipeline. If the Project doesn't actually care about its input (it can be anything), it can use the Artifact passed here.- Returns:
this
-
variablesNamespace
@Stability(Stable) public ProduceActionOptions.Builder variablesNamespace(String variablesNamespace) Sets the value ofProduceActionOptions.getVariablesNamespace()
- Parameters:
variablesNamespace
- If this step is producing outputs, the variables namespace assigned to it. Pass this on to the Action you are creating.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ProduceActionOptions>
- Returns:
- a new instance of
ProduceActionOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-