Class CfnPipeline.RuleDeclarationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.RuleDeclarationProperty>
- Enclosing interface:
CfnPipeline.RuleDeclarationProperty
@Stability(Stable)
public static final class CfnPipeline.RuleDeclarationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.RuleDeclarationProperty>
A builder for
CfnPipeline.RuleDeclarationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configuration(Object configuration) Sets the value ofCfnPipeline.RuleDeclarationProperty.getConfiguration()inputArtifacts(List<? extends Object> inputArtifacts) Sets the value ofCfnPipeline.RuleDeclarationProperty.getInputArtifacts()inputArtifacts(IResolvable inputArtifacts) Sets the value ofCfnPipeline.RuleDeclarationProperty.getInputArtifacts()Sets the value ofCfnPipeline.RuleDeclarationProperty.getName()Sets the value ofCfnPipeline.RuleDeclarationProperty.getRegion()Sets the value ofCfnPipeline.RuleDeclarationProperty.getRoleArn()ruleTypeId(IResolvable ruleTypeId) Sets the value ofCfnPipeline.RuleDeclarationProperty.getRuleTypeId()ruleTypeId(CfnPipeline.RuleTypeIdProperty ruleTypeId) Sets the value ofCfnPipeline.RuleDeclarationProperty.getRuleTypeId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
@Stability(Stable) public CfnPipeline.RuleDeclarationProperty.Builder configuration(Object configuration) Sets the value ofCfnPipeline.RuleDeclarationProperty.getConfiguration()- Parameters:
configuration- The action configuration fields for the rule.- Returns:
this
-
inputArtifacts
@Stability(Stable) public CfnPipeline.RuleDeclarationProperty.Builder inputArtifacts(IResolvable inputArtifacts) Sets the value ofCfnPipeline.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 CfnPipeline.RuleDeclarationProperty.Builder inputArtifacts(List<? extends Object> inputArtifacts) Sets the value ofCfnPipeline.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 ofCfnPipeline.RuleDeclarationProperty.getName()- Parameters:
name- The name of the rule that is created for the condition, such as CheckAllResults.- Returns:
this
-
region
Sets the value ofCfnPipeline.RuleDeclarationProperty.getRegion()- Parameters:
region- The Region for the condition associated with the rule.- Returns:
this
-
roleArn
Sets the value ofCfnPipeline.RuleDeclarationProperty.getRoleArn()- Parameters:
roleArn- The pipeline role ARN associated with the rule.- Returns:
this
-
ruleTypeId
@Stability(Stable) public CfnPipeline.RuleDeclarationProperty.Builder ruleTypeId(IResolvable ruleTypeId) Sets the value ofCfnPipeline.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 CfnPipeline.RuleDeclarationProperty.Builder ruleTypeId(CfnPipeline.RuleTypeIdProperty ruleTypeId) Sets the value ofCfnPipeline.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<CfnPipeline.RuleDeclarationProperty>- Returns:
- a new instance of
CfnPipeline.RuleDeclarationProperty - Throws:
NullPointerException- if any required attribute was not provided
-