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 @NonNull SourceCodeManagementbuild()Create a newSourceCodeManagementinstance.@NonNull SourceCodeManagement.Builderconnection(@NonNull String connection)Set a read-only access to the project's repository.@NonNull SourceCodeManagement.BuilderdeveloperConnection(@NonNull String developerConnection)Set a read-write access to the project's repository.@NonNull SourceCodeManagement.Builderurl(@NonNull String url)Get a web URL to view this project's repository.
-
-
-
Method Detail
-
connection
@NonNull SourceCodeManagement.Builder connection(@NonNull 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
@NonNull SourceCodeManagement.Builder developerConnection(@NonNull 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
@NonNull SourceCodeManagement.Builder url(@NonNull 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
@NonNull SourceCodeManagement build()
Create a newSourceCodeManagementinstance.The
connection(String),developerConnection(String), andurl(String)properties must be set.- Returns:
- a new
SourceCodeManagementinstance - Since:
- 2.0.0
-
-