public static class MtBatchTextSmsCreate.Builder extends Object
Modifier and Type | Method and Description |
---|---|
MtBatchTextSmsCreate.Builder |
addAllRecipients(Iterable<String> elements)
Adds elements to
recipients list. |
MtBatchTextSmsCreate.Builder |
addAllTags(Iterable<String> elements)
Adds elements to
tags set. |
MtBatchTextSmsCreate.Builder |
addRecipient(String... elements)
Adds elements to
recipients list. |
MtBatchTextSmsCreate.Builder |
addRecipient(String element)
Adds one element to
recipients list. |
MtBatchTextSmsCreate.Builder |
addTag(String... elements)
Adds elements to
tags set. |
MtBatchTextSmsCreate.Builder |
addTag(String element)
Adds one element to
tags set. |
MtBatchTextSmsCreate.Builder |
body(String body)
Initializes the value for the
body attribute. |
MtBatchTextSmsCreate |
build()
Builds a new
MtBatchTextSmsCreate . |
MtBatchTextSmsCreate.Builder |
callbackUrl(URI callbackUrl)
Initializes the value for the
callbackUrl attribute. |
MtBatchTextSmsCreate.Builder |
deliveryReport(ReportType deliveryReport)
Initializes the value for the
deliveryReport attribute. |
MtBatchTextSmsCreate.Builder |
expireAt(OffsetDateTime expireAt)
Initializes the value for the
expireAt attribute. |
MtBatchTextSmsCreate.Builder |
parameters(Map<String,? extends ParameterValues> parameters)
Sets or replaces all mappings from the specified map as entries for the
parameters map. |
MtBatchTextSmsCreate.Builder |
putAllParameters(Map<String,? extends ParameterValues> parameters)
Put all mappings from the specified map as entries to
parameters map. |
MtBatchTextSmsCreate.Builder |
putParameter(Map.Entry<String,? extends ParameterValues> entry)
Put one entry to the
parameters map. |
MtBatchTextSmsCreate.Builder |
putParameter(String key,
ParameterValues value)
Put one entry to the
parameters map. |
MtBatchTextSmsCreate.Builder |
recipients(Iterable<String> elements)
Sets or replaces all elements for
recipients list. |
MtBatchTextSmsCreate.Builder |
sendAt(OffsetDateTime sendAt)
Initializes the value for the
sendAt attribute. |
MtBatchTextSmsCreate.Builder |
sender(String sender)
Initializes the value for the
sender attribute. |
MtBatchTextSmsCreate.Builder |
tags(Iterable<String> elements)
Sets or replaces all elements for
tags set. |
MtBatchTextSmsCreate.Builder |
using(MtBatchSmsCreate instance)
Fill a builder with attribute values from the provided
com.clxcommunications.xms.api.MtBatchSmsCreate instance. |
MtBatchTextSmsCreate.Builder |
using(MtBatchTextSmsCreate instance)
Fill a builder with attribute values from the provided
com.clxcommunications.xms.api.MtBatchTextSmsCreate instance. |
public final MtBatchTextSmsCreate.Builder using(MtBatchSmsCreate instance)
com.clxcommunications.xms.api.MtBatchSmsCreate
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder using(MtBatchTextSmsCreate instance)
com.clxcommunications.xms.api.MtBatchTextSmsCreate
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder body(String body)
body
attribute.body
- The value for bodythis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder putParameter(String key, ParameterValues value)
parameters
map.key
- The key in the parameters mapvalue
- The associated value in the parameters mapthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder putParameter(Map.Entry<String,? extends ParameterValues> entry)
parameters
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder parameters(Map<String,? extends ParameterValues> parameters)
parameters
map. Nulls are not permittedparameters
- The entries that will be added to the parameters mapthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder putAllParameters(Map<String,? extends ParameterValues> parameters)
parameters
map. Nulls are not permittedparameters
- The entries that will be added to the parameters mapthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder addRecipient(String element)
recipients
list.element
- A recipients elementthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder addRecipient(String... elements)
recipients
list.elements
- An array of recipients elementsthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder recipients(Iterable<String> elements)
recipients
list.elements
- An iterable of recipients elementsthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder addAllRecipients(Iterable<String> elements)
recipients
list.elements
- An iterable of recipients elementsthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder sender(String sender)
sender
attribute.sender
- The value for senderthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder deliveryReport(@Nullable ReportType deliveryReport)
deliveryReport
attribute.deliveryReport
- The value for deliveryReport (can be null
)this
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder sendAt(@Nullable OffsetDateTime sendAt)
sendAt
attribute.sendAt
- The value for sendAt (can be null
)this
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder expireAt(@Nullable OffsetDateTime expireAt)
expireAt
attribute.expireAt
- The value for expireAt (can be null
)this
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder callbackUrl(@Nullable URI callbackUrl)
callbackUrl
attribute.callbackUrl
- The value for callbackUrl (can be null
)this
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder addTag(String element)
tags
set.element
- A tags elementthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder addTag(String... elements)
tags
set.elements
- An array of tags elementsthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder tags(Iterable<String> elements)
tags
set.elements
- An iterable of tags elementsthis
builder for use in a chained invocationpublic final MtBatchTextSmsCreate.Builder addAllTags(Iterable<String> elements)
tags
set.elements
- An iterable of tags elementsthis
builder for use in a chained invocationpublic MtBatchTextSmsCreate build()
MtBatchTextSmsCreate
.IllegalStateException
- if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.