Class CfnPipeline.RuleTypeIdProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.RuleTypeIdProperty>
- Enclosing interface:
CfnPipeline.RuleTypeIdProperty
@Stability(Stable)
public static final class CfnPipeline.RuleTypeIdProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.RuleTypeIdProperty>
A builder for
CfnPipeline.RuleTypeIdProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPipeline.RuleTypeIdProperty.getCategory()Sets the value ofCfnPipeline.RuleTypeIdProperty.getOwner()Sets the value ofCfnPipeline.RuleTypeIdProperty.getProvider()Sets the value ofCfnPipeline.RuleTypeIdProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
category
Sets the value ofCfnPipeline.RuleTypeIdProperty.getCategory()- Parameters:
category- A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category isRule.- Returns:
this
-
owner
Sets the value ofCfnPipeline.RuleTypeIdProperty.getOwner()- Parameters:
owner- The creator of the rule being called. The valid value for theOwnerfield in the rule category isAWS.- Returns:
this
-
provider
Sets the value ofCfnPipeline.RuleTypeIdProperty.getProvider()- Parameters:
provider- The rule provider, such as theDeploymentWindowrule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference .- Returns:
this
-
version
Sets the value ofCfnPipeline.RuleTypeIdProperty.getVersion()- Parameters:
version- A string that describes the rule version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipeline.RuleTypeIdProperty>- Returns:
- a new instance of
CfnPipeline.RuleTypeIdProperty - Throws:
NullPointerException- if any required attribute was not provided
-