Class CfnPipelinePropsMixin.RuleDeclarationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codepipeline.CfnPipelinePropsMixin.RuleDeclarationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipelinePropsMixin.RuleDeclarationProperty>
- Enclosing interface:
CfnPipelinePropsMixin.RuleDeclarationProperty
@Stability(Stable)
public static final class CfnPipelinePropsMixin.RuleDeclarationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipelinePropsMixin.RuleDeclarationProperty>
A builder for
CfnPipelinePropsMixin.RuleDeclarationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getCommands()configuration(Object configuration) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getConfiguration()inputArtifacts(List<? extends Object> inputArtifacts) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getInputArtifacts()inputArtifacts(IResolvable inputArtifacts) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getInputArtifacts()Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getName()Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRegion()Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRoleArn()ruleTypeId(CfnPipelinePropsMixin.RuleTypeIdProperty ruleTypeId) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRuleTypeId()ruleTypeId(IResolvable ruleTypeId) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRuleTypeId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
commands
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder commands(List<String> commands) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getCommands()- Parameters:
commands- The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.Using compute time for this action will incur separate charges in AWS CodeBuild .
- Returns:
this
-
configuration
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder configuration(Object configuration) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getConfiguration()- Parameters:
configuration- The action configuration fields for the rule.- Returns:
this
-
inputArtifacts
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder inputArtifacts(IResolvable inputArtifacts) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getInputArtifacts()- Parameters:
inputArtifacts- The input artifacts fields for the rule, such as specifying an input file for the rule.- Returns:
this
-
inputArtifacts
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder inputArtifacts(List<? extends Object> inputArtifacts) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getInputArtifacts()- Parameters:
inputArtifacts- The input artifacts fields for the rule, such as specifying an input file for the rule.- Returns:
this
-
name
Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getName()- Parameters:
name- The name of the rule that is created for the condition, such asVariableCheck.- Returns:
this
-
region
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder region(String region) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRegion()- Parameters:
region- The Region for the condition associated with the rule.- Returns:
this
-
roleArn
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder roleArn(String roleArn) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRoleArn()- Parameters:
roleArn- The pipeline role ARN associated with the rule.- Returns:
this
-
ruleTypeId
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder ruleTypeId(IResolvable ruleTypeId) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRuleTypeId()- Parameters:
ruleTypeId- The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.- Returns:
this
-
ruleTypeId
@Stability(Stable) public CfnPipelinePropsMixin.RuleDeclarationProperty.Builder ruleTypeId(CfnPipelinePropsMixin.RuleTypeIdProperty ruleTypeId) Sets the value ofCfnPipelinePropsMixin.RuleDeclarationProperty.getRuleTypeId()- Parameters:
ruleTypeId- The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipelinePropsMixin.RuleDeclarationProperty>- Returns:
- a new instance of
CfnPipelinePropsMixin.RuleDeclarationProperty - Throws:
NullPointerException- if any required attribute was not provided
-