Package net.kyori.indra.api.model
Interface License.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull Licensebuild()Create a new license.@NonNull License.Builderfrom(License instance)Fill a builder with attribute values from the providedIssuesinstance.@NonNull License.Buildername(@NonNull String name)Set the display name of this license.@NonNull License.Builderspdx(@NonNull String spdx)Set the SPDX identifier that describes this license.@NonNull License.Builderurl(@NonNull String url)Set the URL of this license.
-
-
-
Method Detail
-
from
@NonNull License.Builder from(License instance)
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
@NonNull License.Builder spdx(@NonNull String 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
@NonNull License.Builder name(@NonNull String name)
Set the display name of this license.- Parameters:
name- the license name- Returns:
- this builder
- Since:
- 2.0.0
-
url
@NonNull License.Builder url(@NonNull String url)
Set the URL of this license.- Parameters:
url- the license URL- Returns:
- this builder
- Since:
- 2.0.0
-
build
@NonNull License build()
Create a new license.All fields but
spdx(String)must be set.- Returns:
- a new
License - Since:
- 2.0.0
-
-