Package net.kyori.indra.api.model
Interface SourceCodeManagement.Builder
-
- Enclosing interface:
- SourceCodeManagement
public static interface SourceCodeManagement.BuilderA builder forSourceCodeManagementinstances.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @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.Builderurl(@NotNull String url)Get a web URL to view this project's repository.
-
-
-
Method Detail
-
connection
@NotNull @NotNull SourceCodeManagement.Builder connection(@NotNull @NotNull String 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
@NotNull @NotNull SourceCodeManagement.Builder url(@NotNull @NotNull String 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
@NotNull @NotNull SourceCodeManagement build()
Creates a newSourceCodeManagementinstance.The
connection(String),developerConnection(String), andurl(String)properties must be set.- Returns:
- a new
SourceCodeManagementinstance - Since:
- 2.0.0
-
-