Class Repository.Builder
java.lang.Object
software.amazon.awscdk.services.codecommit.Repository.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Repository>
- Enclosing class:
- Repository
@Stability(Stable)
public static final class Repository.Builder
extends Object
implements software.amazon.jsii.Builder<Repository>
A fluent builder for
Repository
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The contents with which to initialize the repository after it has been created.static Repository.Builder
description
(String description) A description of the repository.repositoryName
(String repositoryName) Name of the repository.
-
Method Details
-
create
@Stability(Stable) public static Repository.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Repository.Builder
.
-
repositoryName
Name of the repository.This property is required for all CodeCommit repositories.
- Parameters:
repositoryName
- Name of the repository. This parameter is required.- Returns:
this
-
code
The contents with which to initialize the repository after it has been created.Default: - No initialization (create empty repo)
- Parameters:
code
- The contents with which to initialize the repository after it has been created. This parameter is required.- Returns:
this
-
description
A description of the repository.Use the description to identify the purpose of the repository.
Default: - No description.
- Parameters:
description
- A description of the repository. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Repository>
- Returns:
- a newly built instance of
Repository
.
-