Package net.kyori.indra.api.model
Interface License.Builder
- Enclosing interface:
- License
public static interface License.Builder
A builder for
Licenses.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Licensebuild()Creates a newLicenseinstance.@NotNull License.BuilderFill a builder with attribute values from the providedIssuesinstance.@NotNull License.BuilderSet the display name of this license.@NotNull License.BuilderSet the SPDX identifier that describes this license.@NotNull License.BuilderSet the URL of this license.
-
Method Details
-
from
Fill a builder with attribute values from the providedIssuesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
- this builder
- Since:
- 2.0.0
-
spdx
Set the SPDX identifier that describes this license.This field is optional.
- Parameters:
spdx- the license identifier- Returns:
- this builder
- Since:
- 2.0.0
-
name
Set the display name of this license.- Parameters:
name- the license name- Returns:
- this builder
- Since:
- 2.0.0
-
url
Set the URL of this license.- Parameters:
url- the license URL- Returns:
- this builder
- Since:
- 2.0.0
-
build
Creates a newLicenseinstance.All fields but
spdx(String)must be set.- Returns:
- a new
Licenseinstance - Since:
- 2.0.0
-