Class IsDefaultBranchProps.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.pipeline.IsDefaultBranchProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IsDefaultBranchProps>
- Enclosing interface:
- IsDefaultBranchProps
@Stability(Stable) public static final class IsDefaultBranchProps.Builder extends Object implements software.amazon.jsii.Builder<IsDefaultBranchProps>
A builder forIsDefaultBranchProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsDefaultBranchPropsbuild()Builds the configured instance.IsDefaultBranchProps.BuilderdefaultBranchName(String defaultBranchName)Sets the value ofIsDefaultBranchProps.getDefaultBranchName()IsDefaultBranchProps.Buildernode(software.constructs.Node node)Sets the value ofIsDefaultBranchProps.getNode()
-
-
-
Method Detail
-
defaultBranchName
@Stability(Stable) public IsDefaultBranchProps.Builder defaultBranchName(String defaultBranchName)
Sets the value ofIsDefaultBranchProps.getDefaultBranchName()- Parameters:
defaultBranchName- Specify the default branch name without context.- Returns:
this
-
node
@Stability(Stable) public IsDefaultBranchProps.Builder node(software.constructs.Node node)
Sets the value ofIsDefaultBranchProps.getNode()- Parameters:
node- The current node to fetch defaultBranchName from context.- Returns:
this
-
build
@Stability(Stable) public IsDefaultBranchProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IsDefaultBranchProps>- Returns:
- a new instance of
IsDefaultBranchProps - Throws:
NullPointerException- if any required attribute was not provided
-
-