Class CodeStarConnectionsSourceActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.CodeStarConnectionsSourceActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeStarConnectionsSourceActionProps>
- Enclosing interface:
CodeStarConnectionsSourceActionProps
@Stability(Stable)
public static final class CodeStarConnectionsSourceActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CodeStarConnectionsSourceActionProps>
A builder for
CodeStarConnectionsSourceActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
Sets the value ofCodeStarConnectionsSourceActionProps.getBranch()
build()
Builds the configured instance.codeBuildCloneOutput
(Boolean codeBuildCloneOutput) Sets the value ofCodeStarConnectionsSourceActionProps.getCodeBuildCloneOutput()
connectionArn
(String connectionArn) Sets the value ofCodeStarConnectionsSourceActionProps.getConnectionArn()
Sets the value ofCodeStarConnectionsSourceActionProps.getOutput()
Sets the value ofCodeStarConnectionsSourceActionProps.getOwner()
Sets the value ofCodeStarConnectionsSourceActionProps.getRepo()
Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
triggerOnPush
(Boolean triggerOnPush) Sets the value ofCodeStarConnectionsSourceActionProps.getTriggerOnPush()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionArn
@Stability(Stable) public CodeStarConnectionsSourceActionProps.Builder connectionArn(String connectionArn) Sets the value ofCodeStarConnectionsSourceActionProps.getConnectionArn()
- Parameters:
connectionArn
- The ARN of the CodeStar Connection created in the AWS console that has permissions to access this GitHub or BitBucket repository. This parameter is required.- Returns:
this
-
output
Sets the value ofCodeStarConnectionsSourceActionProps.getOutput()
- Parameters:
output
- The output artifact that this action produces. This parameter is required. Can be used as input for further pipeline actions.- Returns:
this
-
owner
Sets the value ofCodeStarConnectionsSourceActionProps.getOwner()
- Parameters:
owner
- The owning user or organization of the repository. This parameter is required.- Returns:
this
-
repo
Sets the value ofCodeStarConnectionsSourceActionProps.getRepo()
- Parameters:
repo
- The name of the repository. This parameter is required.- Returns:
this
-
branch
Sets the value ofCodeStarConnectionsSourceActionProps.getBranch()
- Parameters:
branch
- The branch to build.- Returns:
this
-
codeBuildCloneOutput
@Stability(Stable) public CodeStarConnectionsSourceActionProps.Builder codeBuildCloneOutput(Boolean codeBuildCloneOutput) Sets the value ofCodeStarConnectionsSourceActionProps.getCodeBuildCloneOutput()
- Parameters:
codeBuildCloneOutput
- Whether the output should be the contents of the repository (which is the default), or a link that allows CodeBuild to clone the repository before building. Note: if this option is true, then only CodeBuild actions can use the resultingoutput
.- Returns:
this
-
triggerOnPush
@Stability(Stable) public CodeStarConnectionsSourceActionProps.Builder triggerOnPush(Boolean triggerOnPush) Sets the value ofCodeStarConnectionsSourceActionProps.getTriggerOnPush()
- Parameters:
triggerOnPush
- Controls automatically starting your pipeline when a new commit is made on the configured repository and branch. If unspecified, the default value is true, and the field does not display by default.- 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
@Stability(Stable) public CodeStarConnectionsSourceActionProps.Builder actionName(String 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 CodeStarConnectionsSourceActionProps.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<CodeStarConnectionsSourceActionProps>
- Returns:
- a new instance of
CodeStarConnectionsSourceActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-