Class MavenLicense.Builder

java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenLicense.Builder
Enclosing class:
MavenLicense

public static class MavenLicense.Builder extends Object
Builder for a MavenLicense.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public MavenLicense.Builder name(String name)
      Set the name of the license.
      Parameters:
      name - the name of the license or null
      Returns:
      this for method chaining
    • url

      public MavenLicense.Builder url(String url)
      Set the URL of the license.
      Parameters:
      url - the URL of the license or null
      Returns:
      this for method chaining
    • distribution

      public MavenLicense.Builder distribution(MavenLicense.Distribution distribution)
      Set the distribution mechanism of the project associated with the license.
      Parameters:
      distribution - the distribution mechanism of the project or null
      Returns:
      this for method chaining
    • comments

      public MavenLicense.Builder comments(String comments)
      Set comments associated with the license.
      Parameters:
      comments - the comments for the license or null
      Returns:
      this for method chaining
    • build

      public MavenLicense build()