Class CodeCommitSourceActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.CodeCommitSourceActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeCommitSourceActionProps>
- Enclosing interface:
CodeCommitSourceActionProps
@Stability(Stable)
public static final class CodeCommitSourceActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CodeCommitSourceActionProps>
A builder for
CodeCommitSourceActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
Sets the value ofCodeCommitSourceActionProps.getBranch()
build()
Builds the configured instance.codeBuildCloneOutput
(Boolean codeBuildCloneOutput) Sets the value ofCodeCommitSourceActionProps.getCodeBuildCloneOutput()
Sets the value ofCodeCommitSourceActionProps.getEventRole()
Sets the value ofCodeCommitSourceActionProps.getOutput()
repository
(IRepository repository) Sets the value ofCodeCommitSourceActionProps.getRepository()
Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
trigger
(CodeCommitTrigger trigger) Sets the value ofCodeCommitSourceActionProps.getTrigger()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
output
Sets the value ofCodeCommitSourceActionProps.getOutput()
- Parameters:
output
- the value to be set. This parameter is required.- Returns:
this
-
repository
Sets the value ofCodeCommitSourceActionProps.getRepository()
- Parameters:
repository
- The CodeCommit repository. This parameter is required.- Returns:
this
-
branch
Sets the value ofCodeCommitSourceActionProps.getBranch()
- Parameters:
branch
- the value to be set.- Returns:
this
-
codeBuildCloneOutput
@Stability(Stable) public CodeCommitSourceActionProps.Builder codeBuildCloneOutput(Boolean codeBuildCloneOutput) Sets the value ofCodeCommitSourceActionProps.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
-
eventRole
Sets the value ofCodeCommitSourceActionProps.getEventRole()
- Parameters:
eventRole
- Role to be used by on commit event rule. Used only when trigger value is CodeCommitTrigger.EVENTS.- Returns:
this
-
trigger
Sets the value ofCodeCommitSourceActionProps.getTrigger()
- Parameters:
trigger
- How should CodePipeline detect source changes for this Action.- 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 yourinvalid @link
IAction.bind
invalid @link
ActionBindOptions.role
- 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 CodeCommitSourceActionProps.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<CodeCommitSourceActionProps>
- Returns:
- a new instance of
CodeCommitSourceActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-