@Experimental @Generated @ThreadSafe @Immutable public class MailingList extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
MailingList.Builder
Builder class used to create MailingList instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getArchive()
The link to a URL where you can browse the mailing list archive.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getName()
The name of the mailing list.
|
List<String> |
getOtherArchives()
The link to alternate URLs where you can browse the list archive.
|
String |
getPost()
The email address or link that can be used to post to
the mailing list.
|
String |
getSubscribe()
The email address or link that can be used to subscribe to
the mailing list.
|
String |
getUnsubscribe()
The email address or link that can be used to unsubscribe to
the mailing list.
|
static MailingList.Builder |
newBuilder()
Creates a new
MailingList builder instance. |
static MailingList.Builder |
newBuilder(boolean withDefaults)
Creates a new
MailingList builder instance using default values or not. |
static MailingList.Builder |
newBuilder(MailingList from)
Creates a new
MailingList builder instance using the specified object as a basis. |
static MailingList.Builder |
newBuilder(MailingList from,
boolean forceCopy)
Creates a new
MailingList builder instance using the specified object as a basis. |
static MailingList |
newInstance()
Creates a new
MailingList instance. |
static MailingList |
newInstance(boolean withDefaults)
Creates a new
MailingList instance using default values or not. |
MailingList.Builder |
with()
Creates a new builder with this object as the basis.
|
MailingList |
withArchive(String archive)
Creates a new
MailingList instance using the specified archive. |
MailingList |
withName(String name)
Creates a new
MailingList instance using the specified name. |
MailingList |
withOtherArchives(Collection<String> otherArchives)
Creates a new
MailingList instance using the specified otherArchives. |
MailingList |
withPost(String post)
Creates a new
MailingList instance using the specified post. |
MailingList |
withSubscribe(String subscribe)
Creates a new
MailingList instance using the specified subscribe. |
MailingList |
withUnsubscribe(String unsubscribe)
Creates a new
MailingList instance using the specified unsubscribe. |
public String getName()
String
public String getSubscribe()
mailto:
link will automatically be created
when the documentation is created.String
public String getUnsubscribe()
mailto:
link will automatically be created
when the documentation is created.String
public String getPost()
mailto:
link will automatically be created
when the documentation is created.String
public String getArchive()
String
@Nonnull public List<String> getOtherArchives()
List<String>
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public MailingList.Builder with()
Builder
@Nonnull public MailingList withName(String name)
MailingList
instance using the specified name.name
- the new String
to useMailingList
with the specified name@Nonnull public MailingList withSubscribe(String subscribe)
MailingList
instance using the specified subscribe.subscribe
- the new String
to useMailingList
with the specified subscribe@Nonnull public MailingList withUnsubscribe(String unsubscribe)
MailingList
instance using the specified unsubscribe.unsubscribe
- the new String
to useMailingList
with the specified unsubscribe@Nonnull public MailingList withPost(String post)
MailingList
instance using the specified post.post
- the new String
to useMailingList
with the specified post@Nonnull public MailingList withArchive(String archive)
MailingList
instance using the specified archive.archive
- the new String
to useMailingList
with the specified archive@Nonnull public MailingList withOtherArchives(Collection<String> otherArchives)
MailingList
instance using the specified otherArchives.otherArchives
- the new Collection<String>
to useMailingList
with the specified otherArchives@Nonnull public static MailingList newInstance()
MailingList
instance.
Equivalent to newInstance( true )
.MailingList
newInstance(boolean)
@Nonnull public static MailingList newInstance(boolean withDefaults)
MailingList
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedMailingList
@Nonnull public static MailingList.Builder newBuilder()
MailingList
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static MailingList.Builder newBuilder(boolean withDefaults)
MailingList
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static MailingList.Builder newBuilder(MailingList from)
MailingList
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the MailingList
instance to use as a basisBuilder
@Nonnull public static MailingList.Builder newBuilder(MailingList from, boolean forceCopy)
MailingList
builder instance using the specified object as a basis.from
- the MailingList
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.