Class ActionProperties.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.ActionProperties.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ActionProperties>
- Enclosing interface:
ActionProperties
@Stability(Stable)
public static final class ActionProperties.Builder
extends Object
implements software.amazon.jsii.Builder<ActionProperties>
A builder for
ActionProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofActionProperties.getAccount()
actionName
(String actionName) Sets the value ofActionProperties.getActionName()
artifactBounds
(ActionArtifactBounds artifactBounds) Sets the value ofActionProperties.getArtifactBounds()
build()
Builds the configured instance.category
(ActionCategory category) Sets the value ofActionProperties.getCategory()
Sets the value ofActionProperties.getInputs()
Sets the value ofActionProperties.getOutputs()
Sets the value ofActionProperties.getOwner()
Sets the value ofActionProperties.getProvider()
Sets the value ofActionProperties.getRegion()
Sets the value ofActionProperties.getResource()
Sets the value ofActionProperties.getRole()
Sets the value ofActionProperties.getRunOrder()
variablesNamespace
(String variablesNamespace) Sets the value ofActionProperties.getVariablesNamespace()
Sets the value ofActionProperties.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionName
Sets the value ofActionProperties.getActionName()
- Parameters:
actionName
- the value to be set. This parameter is required.- Returns:
this
-
artifactBounds
@Stability(Stable) public ActionProperties.Builder artifactBounds(ActionArtifactBounds artifactBounds) Sets the value ofActionProperties.getArtifactBounds()
- Parameters:
artifactBounds
- the value to be set. This parameter is required.- Returns:
this
-
category
Sets the value ofActionProperties.getCategory()
- Parameters:
category
- The category of the action. This parameter is required. The category defines which action type the owner (the entity that performs the action) performs.- Returns:
this
-
provider
Sets the value ofActionProperties.getProvider()
- Parameters:
provider
- The service provider that the action calls. This parameter is required.- Returns:
this
-
account
Sets the value ofActionProperties.getAccount()
- Parameters:
account
- The account the Action is supposed to live in. For Actions backed by resources, this is inferred from the Stackresource
is part of. However, some Actions, like the CloudFormation ones, are not backed by any resource, and they still might want to be cross-account. In general, a concrete Action class should specify eitherresource
, oraccount
- but not both.- Returns:
this
-
inputs
Sets the value ofActionProperties.getInputs()
- Parameters:
inputs
- the value to be set.- Returns:
this
-
outputs
Sets the value ofActionProperties.getOutputs()
- Parameters:
outputs
- the value to be set.- Returns:
this
-
owner
Sets the value ofActionProperties.getOwner()
- Parameters:
owner
- the value to be set.- Returns:
this
-
region
Sets the value ofActionProperties.getRegion()
- Parameters:
region
- The AWS region the given Action resides in. Note that a cross-region Pipeline requires replication buckets to function correctly. You can provide their names with theinvalid @link
PipelineProps#crossRegionReplicationBuckets
- Returns:
this
-
resource
Sets the value ofActionProperties.getResource()
- Parameters:
resource
- The optional resource that is backing this Action. This is used for automatically handling Actions backed by resources from a different account and/or region.- Returns:
this
-
role
Sets the value ofActionProperties.getRole()
- Parameters:
role
- the value to be set.- Returns:
this
-
runOrder
Sets the value ofActionProperties.getRunOrder()
- Parameters:
runOrder
- The order in which AWS CodePipeline runs this action. For more information, see the AWS CodePipeline User Guide. https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements- Returns:
this
-
variablesNamespace
Sets the value ofActionProperties.getVariablesNamespace()
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action.- Returns:
this
-
version
Sets the value ofActionProperties.getVersion()
- Parameters:
version
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ActionProperties>
- Returns:
- a new instance of
ActionProperties
- Throws:
NullPointerException
- if any required attribute was not provided
-