Class RepositoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.codecommit.RepositoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RepositoryProps>
- Enclosing interface:
RepositoryProps
@Stability(Stable)
public static final class RepositoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<RepositoryProps>
A builder for
RepositoryProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofRepositoryProps.getCode()
description
(String description) Sets the value ofRepositoryProps.getDescription()
Sets the value ofRepositoryProps.getKmsKey()
repositoryName
(String repositoryName) Sets the value ofRepositoryProps.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryName
Sets the value ofRepositoryProps.getRepositoryName()
- Parameters:
repositoryName
- Name of the repository. This parameter is required. This property is required for all CodeCommit repositories.- Returns:
this
-
code
Sets the value ofRepositoryProps.getCode()
- Parameters:
code
- The contents with which to initialize the repository after it has been created.- Returns:
this
-
description
Sets the value ofRepositoryProps.getDescription()
- Parameters:
description
- A description of the repository. Use the description to identify the purpose of the repository.- Returns:
this
-
kmsKey
Sets the value ofRepositoryProps.getKmsKey()
- Parameters:
kmsKey
- The customer managed key used to encrypt and decrypt the data in repository.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RepositoryProps>
- Returns:
- a new instance of
RepositoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-