Package org.apache.maven.api.model
Class MailingList
java.lang.Object
org.apache.maven.api.model.MailingList
- All Implemented Interfaces:
Serializable,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class MailingList
extends Object
implements Serializable, InputLocationTracker
This element describes all of the mailing lists associated with a project. The
auto-generated site references this information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create MailingList instances. -
Method Summary
Modifier and TypeMethodDescriptionThe link to a URL where you can browse the mailing list archive.getLocation(Object key) Gets the location of the specified field in the input source.getName()The name of the mailing list.The link to alternate URLs where you can browse the list archive.getPost()The email address or link that can be used to post to the mailing list.The email address or link that can be used to subscribe to the mailing list.The email address or link that can be used to unsubscribe to the mailing list.static MailingList.BuilderCreates a newMailingListbuilder instance.static MailingList.BuildernewBuilder(boolean withDefaults) Creates a newMailingListbuilder instance using default values or not.static MailingList.BuildernewBuilder(MailingList from) Creates a newMailingListbuilder instance using the specified object as a basis.static MailingList.BuildernewBuilder(MailingList from, boolean forceCopy) Creates a newMailingListbuilder instance using the specified object as a basis.static MailingListCreates a newMailingListinstance.static MailingListnewInstance(boolean withDefaults) Creates a newMailingListinstance using default values or not.toString()with()Creates a new builder with this object as the basis.withArchive(String archive) Creates a newMailingListinstance using the specified archive.Creates a newMailingListinstance using the specified name.withOtherArchives(Collection<String> otherArchives) Creates a newMailingListinstance using the specified otherArchives.Creates a newMailingListinstance using the specified post.withSubscribe(String subscribe) Creates a newMailingListinstance using the specified subscribe.withUnsubscribe(String unsubscribe) Creates a newMailingListinstance using the specified unsubscribe.
-
Method Details
-
getName
The name of the mailing list.- Returns:
- a
String
-
getSubscribe
The email address or link that can be used to subscribe to the mailing list. If this is an email address, amailto:link will automatically be created when the documentation is created.- Returns:
- a
String
-
getUnsubscribe
The email address or link that can be used to unsubscribe to the mailing list. If this is an email address, amailto:link will automatically be created when the documentation is created.- Returns:
- a
String
-
getPost
The email address or link that can be used to post to the mailing list. If this is an email address, amailto:link will automatically be created when the documentation is created.- Returns:
- a
String
-
getArchive
The link to a URL where you can browse the mailing list archive.- Returns:
- a
String
-
getOtherArchives
The link to alternate URLs where you can browse the list archive.- Returns:
- a
List<String>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withName
Creates a newMailingListinstance using the specified name.- Parameters:
name- the newStringto use- Returns:
- a
MailingListwith the specified name
-
withSubscribe
Creates a newMailingListinstance using the specified subscribe.- Parameters:
subscribe- the newStringto use- Returns:
- a
MailingListwith the specified subscribe
-
withUnsubscribe
Creates a newMailingListinstance using the specified unsubscribe.- Parameters:
unsubscribe- the newStringto use- Returns:
- a
MailingListwith the specified unsubscribe
-
withPost
Creates a newMailingListinstance using the specified post.- Parameters:
post- the newStringto use- Returns:
- a
MailingListwith the specified post
-
withArchive
Creates a newMailingListinstance using the specified archive.- Parameters:
archive- the newStringto use- Returns:
- a
MailingListwith the specified archive
-
withOtherArchives
Creates a newMailingListinstance using the specified otherArchives.- Parameters:
otherArchives- the newCollection<String>to use- Returns:
- a
MailingListwith the specified otherArchives
-
newInstance
Creates a newMailingListinstance. Equivalent tonewInstance(true).- Returns:
- a new
MailingList - See Also:
-
newInstance
Creates a newMailingListinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
MailingList
-
newBuilder
Creates a newMailingListbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newMailingListbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newMailingListbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theMailingListinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newMailingListbuilder instance using the specified object as a basis.- Parameters:
from- theMailingListinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
-