public static class MavenRepository.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
MavenRepository |
build()
Build a
MavenRepository with the current state of this builder. |
MavenRepository.Builder |
id(String id)
Set the id of the repository.
|
MavenRepository.Builder |
name(String name)
Set the name of the repository.
|
MavenRepository.Builder |
snapshotsEnabled(boolean snapshotsEnabled)
Specify whether snapshots are enabled.
|
MavenRepository.Builder |
url(String url)
Set the url of the repository.
|
public MavenRepository.Builder id(String id)
id - the identifierpublic MavenRepository.Builder name(String name)
name - the namepublic MavenRepository.Builder url(String url)
url - the urlpublic MavenRepository.Builder snapshotsEnabled(boolean snapshotsEnabled)
snapshotsEnabled - whether snapshots are served by the repositorypublic MavenRepository build()
MavenRepository with the current state of this builder.MavenRepositoryCopyright © 2020 Pivotal Software, Inc.. All rights reserved.