Class MailingList

java.lang.Object
org.apache.maven.api.model.MailingList
All Implemented Interfaces:
Serializable, InputLocationTracker

This element describes all of the mailing lists associated with a project. The auto-generated site references this information.
See Also:
  • Method Details

    • getName

      public String getName()
      The name of the mailing list.
      Returns:
      a String
    • getSubscribe

      public String getSubscribe()
      The email address or link that can be used to subscribe to the mailing list. If this is an email address, a mailto: link will automatically be created when the documentation is created.
      Returns:
      a String
    • getUnsubscribe

      public String getUnsubscribe()
      The email address or link that can be used to unsubscribe to the mailing list. If this is an email address, a mailto: link will automatically be created when the documentation is created.
      Returns:
      a String
    • getPost

      public String getPost()
      The email address or link that can be used to post to the mailing list. If this is an email address, a mailto: link will automatically be created when the documentation is created.
      Returns:
      a String
    • getArchive

      public String getArchive()
      The link to a URL where you can browse the mailing list archive.
      Returns:
      a String
    • getOtherArchives

      @Nonnull public List<String> getOtherArchives()
      The link to alternate URLs where you can browse the list archive.
      Returns:
      a List<String>
    • getLocation

      public InputLocation getLocation(Object key)
      Gets the location of the specified field in the input source.
      Specified by:
      getLocation in interface InputLocationTracker
    • with

      Creates a new builder with this object as the basis.
      Returns:
      a Builder
    • withName

      @Nonnull public MailingList withName(String name)
      Creates a new MailingList instance using the specified name.
      Parameters:
      name - the new String to use
      Returns:
      a MailingList with the specified name
    • withSubscribe

      @Nonnull public MailingList withSubscribe(String subscribe)
      Creates a new MailingList instance using the specified subscribe.
      Parameters:
      subscribe - the new String to use
      Returns:
      a MailingList with the specified subscribe
    • withUnsubscribe

      @Nonnull public MailingList withUnsubscribe(String unsubscribe)
      Creates a new MailingList instance using the specified unsubscribe.
      Parameters:
      unsubscribe - the new String to use
      Returns:
      a MailingList with the specified unsubscribe
    • withPost

      @Nonnull public MailingList withPost(String post)
      Creates a new MailingList instance using the specified post.
      Parameters:
      post - the new String to use
      Returns:
      a MailingList with the specified post
    • withArchive

      @Nonnull public MailingList withArchive(String archive)
      Creates a new MailingList instance using the specified archive.
      Parameters:
      archive - the new String to use
      Returns:
      a MailingList with the specified archive
    • withOtherArchives

      @Nonnull public MailingList withOtherArchives(Collection<String> otherArchives)
      Creates a new MailingList instance using the specified otherArchives.
      Parameters:
      otherArchives - the new Collection<String> to use
      Returns:
      a MailingList with the specified otherArchives
    • newInstance

      @Nonnull public static MailingList newInstance()
      Creates a new MailingList instance. Equivalent to newInstance( true ).
      Returns:
      a new MailingList
      See Also:
    • newInstance

      @Nonnull public static MailingList newInstance(boolean withDefaults)
      Creates a new MailingList instance using default values or not. Equivalent to newBuilder( withDefaults ).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new MailingList
    • newBuilder

      @Nonnull public static MailingList.Builder newBuilder()
      Creates a new MailingList builder instance. Equivalent to newBuilder( true ).
      Returns:
      a new Builder
      See Also:
    • newBuilder

      @Nonnull public static MailingList.Builder newBuilder(boolean withDefaults)
      Creates a new MailingList builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static MailingList.Builder newBuilder(MailingList from)
      Creates a new MailingList builder instance using the specified object as a basis. Equivalent to newBuilder( from, false ).
      Parameters:
      from - the MailingList instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static MailingList.Builder newBuilder(MailingList from, boolean forceCopy)
      Creates a new MailingList builder instance using the specified object as a basis.
      Parameters:
      from - the MailingList instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: