Package io.github.cdklabs.projen.java
Class MavenRepository.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.java.MavenRepository.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MavenRepository>
- Enclosing interface:
- MavenRepository
@Stability(Experimental) public static final class MavenRepository.Builder extends Object implements software.amazon.jsii.Builder<MavenRepository>
A builder forMavenRepository
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MavenRepositorybuild()Builds the configured instance.MavenRepository.Builderid(String id)Sets the value ofMavenRepository.getId()MavenRepository.Builderlayout(String layout)Sets the value ofMavenRepository.getLayout()MavenRepository.Buildername(String name)Sets the value ofMavenRepository.getName()MavenRepository.Builderurl(String url)Sets the value ofMavenRepository.getUrl()
-
-
-
Method Detail
-
id
@Stability(Experimental) public MavenRepository.Builder id(String id)
Sets the value ofMavenRepository.getId()- Parameters:
id- The identifier for the repository. This parameter is required.- Returns:
this
-
url
@Stability(Experimental) public MavenRepository.Builder url(String url)
Sets the value ofMavenRepository.getUrl()- Parameters:
url- The url of the repository. This parameter is required.- Returns:
this
-
layout
@Stability(Experimental) public MavenRepository.Builder layout(String layout)
Sets the value ofMavenRepository.getLayout()- Parameters:
layout- The layout of the repository.- Returns:
this
-
name
@Stability(Experimental) public MavenRepository.Builder name(String name)
Sets the value ofMavenRepository.getName()- Parameters:
name- The name of the repository.- Returns:
this
-
build
@Stability(Experimental) public MavenRepository build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MavenRepository>- Returns:
- a new instance of
MavenRepository - Throws:
NullPointerException- if any required attribute was not provided
-
-