Class RepositoryAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.RepositoryAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RepositoryAttributes>
- Enclosing interface:
RepositoryAttributes
@Stability(Stable)
public static final class RepositoryAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<RepositoryAttributes>
A builder for
RepositoryAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.repositoryArn
(String repositoryArn) Sets the value ofRepositoryAttributes.getRepositoryArn()
repositoryName
(String repositoryName) Sets the value ofRepositoryAttributes.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryArn
Sets the value ofRepositoryAttributes.getRepositoryArn()
- Parameters:
repositoryArn
- the value to be set. This parameter is required.- Returns:
this
-
repositoryName
Sets the value ofRepositoryAttributes.getRepositoryName()
- Parameters:
repositoryName
- the value to be set. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RepositoryAttributes>
- Returns:
- a new instance of
RepositoryAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-