Class PublicRepositoryReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ecr.PublicRepositoryReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublicRepositoryReference>
- Enclosing interface:
PublicRepositoryReference
@Stability(Stable)
public static final class PublicRepositoryReference.Builder
extends Object
implements software.amazon.jsii.Builder<PublicRepositoryReference>
A builder for
PublicRepositoryReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.publicRepositoryArn(String publicRepositoryArn) Sets the value ofPublicRepositoryReference.getPublicRepositoryArn()repositoryName(String repositoryName) Sets the value ofPublicRepositoryReference.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
publicRepositoryArn
@Stability(Stable) public PublicRepositoryReference.Builder publicRepositoryArn(String publicRepositoryArn) Sets the value ofPublicRepositoryReference.getPublicRepositoryArn()- Parameters:
publicRepositoryArn- The ARN of the PublicRepository resource. This parameter is required.- Returns:
this
-
repositoryName
Sets the value ofPublicRepositoryReference.getRepositoryName()- Parameters:
repositoryName- The RepositoryName of the PublicRepository resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PublicRepositoryReference>- Returns:
- a new instance of
PublicRepositoryReference - Throws:
NullPointerException- if any required attribute was not provided
-