Class CfnPipeline.VariableDeclarationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.VariableDeclarationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.VariableDeclarationProperty>
- Enclosing interface:
CfnPipeline.VariableDeclarationProperty
@Stability(Stable)
public static final class CfnPipeline.VariableDeclarationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.VariableDeclarationProperty>
A builder for
CfnPipeline.VariableDeclarationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultValue
(String defaultValue) Sets the value ofCfnPipeline.VariableDeclarationProperty.getDefaultValue()
description
(String description) Sets the value ofCfnPipeline.VariableDeclarationProperty.getDescription()
Sets the value ofCfnPipeline.VariableDeclarationProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPipeline.VariableDeclarationProperty.getName()
- Parameters:
name
- The name of a pipeline-level variable. This parameter is required.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnPipeline.VariableDeclarationProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnPipeline.VariableDeclarationProperty.getDefaultValue()
- Parameters:
defaultValue
- The value of a pipeline-level variable.- Returns:
this
-
description
@Stability(Stable) public CfnPipeline.VariableDeclarationProperty.Builder description(String description) Sets the value ofCfnPipeline.VariableDeclarationProperty.getDescription()
- Parameters:
description
- The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipeline.VariableDeclarationProperty>
- Returns:
- a new instance of
CfnPipeline.VariableDeclarationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-