Package net.kyori.indra.api.model
Interface ContinuousIntegration.Builder
- Enclosing interface:
- ContinuousIntegration
public static interface ContinuousIntegration.Builder
A builder for new continuous integration instances.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull ContinuousIntegrationbuild()Creates a newContinuousIntegrationinstance.@NotNull ContinuousIntegration.Builderfrom(ContinuousIntegration instance) Fill a builder with attribute values from the providedContinuousIntegrationinstance.@NotNull ContinuousIntegration.BuilderSets the name of the continuous integration system used.@NotNull ContinuousIntegration.BuilderSets the URL pointing to a web interface for the CI system.
-
Method Details
-
from
Fill a builder with attribute values from the providedContinuousIntegrationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
- this builder
- Since:
- 2.0.0
-
system
Sets the name of the continuous integration system used.- Parameters:
system- the name- Returns:
- this builder
- Since:
- 2.0.0
-
url
Sets the URL pointing to a web interface for the CI system.- Parameters:
url- the url- Returns:
- this builder
- Since:
- 2.0.0
-
build
Creates a newContinuousIntegrationinstance.The
system(String)andurl(String)properties must be set.- Returns:
- a new
ContinuousIntegrationinstance - Throws:
IllegalStateException- if a required property is not set- Since:
- 2.0.0
-