Class CfnRepositoryPropsMixin.CodeProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codecommit.mixins.CfnRepositoryPropsMixin.CodeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryPropsMixin.CodeProperty>
- Enclosing interface:
CfnRepositoryPropsMixin.CodeProperty
@Stability(Stable)
public static final class CfnRepositoryPropsMixin.CodeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepositoryPropsMixin.CodeProperty>
A builder for
CfnRepositoryPropsMixin.CodeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranchName(String branchName) Sets the value ofCfnRepositoryPropsMixin.CodeProperty.getBranchName()build()Builds the configured instance.s3(IResolvable s3) Sets the value ofCfnRepositoryPropsMixin.CodeProperty.getS3()Sets the value ofCfnRepositoryPropsMixin.CodeProperty.getS3()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
branchName
@Stability(Stable) public CfnRepositoryPropsMixin.CodeProperty.Builder branchName(String branchName) Sets the value ofCfnRepositoryPropsMixin.CodeProperty.getBranchName()- Parameters:
branchName- Optional. Specifies a branch name to be used as the default branch when importing code into a repository on initial creation. If this property is not set, the name main will be used for the default branch for the repository. Changes to this property are ignored after initial resource creation. We recommend using this parameter to set the name to main to align with the default behavior of CodeCommit unless another name is needed.- Returns:
this
-
s3
Sets the value ofCfnRepositoryPropsMixin.CodeProperty.getS3()- Parameters:
s3- Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository. Changes to this property are ignored after initial resource creation.- Returns:
this
-
s3
@Stability(Stable) public CfnRepositoryPropsMixin.CodeProperty.Builder s3(CfnRepositoryPropsMixin.S3Property s3) Sets the value ofCfnRepositoryPropsMixin.CodeProperty.getS3()- Parameters:
s3- Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository. Changes to this property are ignored after initial resource creation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryPropsMixin.CodeProperty>- Returns:
- a new instance of
CfnRepositoryPropsMixin.CodeProperty - Throws:
NullPointerException- if any required attribute was not provided
-