Package net.kyori.indra.api.model
Interface SourceCodeManagement.Builder
- Enclosing interface:
- SourceCodeManagement
public static interface SourceCodeManagement.Builder
A builder for
SourceCodeManagement instances.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull SourceCodeManagementbuild()Creates a newSourceCodeManagementinstance.@NotNull SourceCodeManagement.Builderconnection(@NotNull String connection) Set a read-only access to the project's repository.@NotNull SourceCodeManagement.BuilderdeveloperConnection(@NotNull String developerConnection) Set a read-write access to the project's repository.@NotNull SourceCodeManagement.BuilderGet a web URL to view this project's repository.
-
Method Details
-
connection
Set a read-only access to the project's repository.This must be in a
scm:[provider]:[provider-specific arguments]format.- Parameters:
connection- the read-only project repository- Returns:
- this builder
- Since:
- 2.0.0
-
developerConnection
@NotNull @NotNull SourceCodeManagement.Builder developerConnection(@NotNull @NotNull String developerConnection) Set a read-write access to the project's repository.This must be in a
scm:[provider]:[provider-specific arguments]format.- Parameters:
developerConnection- the read-write project repository- Returns:
- this builder
- Since:
- 2.0.0
-
url
Get a web URL to view this project's repository.- Parameters:
url- the project's SCM web URL- Returns:
- this builder
- Since:
- 2.0.0
-
build
Creates a newSourceCodeManagementinstance.The
connection(String),developerConnection(String), andurl(String)properties must be set.- Returns:
- a new
SourceCodeManagementinstance - Since:
- 2.0.0
-