Class RepositoryReference.Builder
java.lang.Object
software.amazon.awscdk.services.codecommit.RepositoryReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RepositoryReference>
- Enclosing interface:
RepositoryReference
@Stability(Stable)
public static final class RepositoryReference.Builder
extends Object
implements software.amazon.jsii.Builder<RepositoryReference>
A builder for
RepositoryReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.repositoryArn
(String repositoryArn) Sets the value ofRepositoryReference.getRepositoryArn()
repositoryId
(String repositoryId) Sets the value ofRepositoryReference.getRepositoryId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryArn
Sets the value ofRepositoryReference.getRepositoryArn()
- Parameters:
repositoryArn
- The ARN of the Repository resource. This parameter is required.- Returns:
this
-
repositoryId
Sets the value ofRepositoryReference.getRepositoryId()
- Parameters:
repositoryId
- The Id of the Repository resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RepositoryReference>
- Returns:
- a new instance of
RepositoryReference
- Throws:
NullPointerException
- if any required attribute was not provided
-