@NotThreadSafe public static class AutoUpdate.Builder extends Object
Modifier and Type | Method and Description |
---|---|
AutoUpdate.Builder |
add(KeywordPair add)
Initializes the value for the
add attribute. |
AutoUpdate.Builder |
add(String firstWord,
String secondWord)
The keyword trigger to use for adding a number to a group.
|
AutoUpdate |
build()
Builds a new
AutoUpdate . |
AutoUpdate.Builder |
recipient(String recipient)
Initializes the value for the
recipient attribute. |
AutoUpdate.Builder |
remove(KeywordPair remove)
Initializes the value for the
remove attribute. |
AutoUpdate.Builder |
remove(String firstWord,
String secondWord)
The keyword trigger to use for removing a number to a group.
|
AutoUpdate.Builder |
using(AutoUpdate instance)
Fill a builder with attribute values from the provided
AutoUpdate instance. |
public AutoUpdate.Builder add(String firstWord, String secondWord)
firstWord
- the first keyword, can be null
secondWord
- the second keyword, can be null
public AutoUpdate.Builder remove(String firstWord, String secondWord)
firstWord
- the first keyword, can be null
secondWord
- the second keyword, can be null
public final AutoUpdate.Builder using(AutoUpdate instance)
AutoUpdate
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AutoUpdate.Builder recipient(String recipient)
recipient
attribute.recipient
- The value for recipientthis
builder for use in a chained invocationpublic final AutoUpdate.Builder add(@Nullable KeywordPair add)
add
attribute.add
- The value for add (can be null
)this
builder for use in a chained invocationpublic final AutoUpdate.Builder remove(@Nullable KeywordPair remove)
remove
attribute.remove
- The value for remove (can be null
)this
builder for use in a chained invocationpublic AutoUpdate build()
AutoUpdate
.IllegalStateException
- if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.