Interface License.Builder

Enclosing interface:
License

public static interface License.Builder
A builder for Licenses.
Since:
2.0.0
  • Method Details

    • from

      @NotNull @NotNull License.Builder from(License instance)
      Fill a builder with attribute values from the provided Issues instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder
      Since:
      2.0.0
    • spdx

      @NotNull @NotNull License.Builder spdx(@NotNull @NotNull 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

      @NotNull @NotNull License.Builder name(@NotNull @NotNull String name)
      Set the display name of this license.
      Parameters:
      name - the license name
      Returns:
      this builder
      Since:
      2.0.0
    • url

      @NotNull @NotNull License.Builder url(@NotNull @NotNull String url)
      Set the URL of this license.
      Parameters:
      url - the license URL
      Returns:
      this builder
      Since:
      2.0.0
    • build

      @NotNull @NotNull License build()
      Creates a new License instance.

      All fields but spdx(String) must be set.

      Returns:
      a new License instance
      Since:
      2.0.0