Class CfnRepository.CodeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codecommit.CfnRepository.CodeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepository.CodeProperty>
- Enclosing interface:
CfnRepository.CodeProperty
@Stability(Stable)
public static final class CfnRepository.CodeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepository.CodeProperty>
A builder for
CfnRepository.CodeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbranchName
(String branchName) Sets the value ofCfnRepository.CodeProperty.getBranchName()
build()
Builds the configured instance.s3
(IResolvable s3) Sets the value ofCfnRepository.CodeProperty.getS3()
Sets the value ofCfnRepository.CodeProperty.getS3()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
s3
Sets the value ofCfnRepository.CodeProperty.getS3()
- Parameters:
s3
- Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository. This parameter is required. Changes to this property are ignored after initial resource creation.- Returns:
this
-
s3
Sets the value ofCfnRepository.CodeProperty.getS3()
- Parameters:
s3
- Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository. This parameter is required. Changes to this property are ignored after initial resource creation.- Returns:
this
-
branchName
Sets the value ofCfnRepository.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRepository.CodeProperty>
- Returns:
- a new instance of
CfnRepository.CodeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-