public static class MtBatchTextSmsResult.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
MtBatchTextSmsResult.Builder |
addAllRecipients(Iterable<String> elements)
Adds elements to
recipients list. |
MtBatchTextSmsResult.Builder |
addRecipient(String... elements)
Adds elements to
recipients list. |
MtBatchTextSmsResult.Builder |
addRecipient(String element)
Adds one element to
recipients list. |
MtBatchTextSmsResult.Builder |
body(String body)
Initializes the value for the
body attribute. |
MtBatchTextSmsResult |
build()
Builds a new
MtBatchTextSmsResult. |
MtBatchTextSmsResult.Builder |
callbackUrl(URI callbackUrl)
Initializes the value for the
callbackUrl attribute. |
MtBatchTextSmsResult.Builder |
canceled(boolean canceled)
Initializes the value for the
canceled attribute. |
MtBatchTextSmsResult.Builder |
createdAt(OffsetDateTime createdAt)
Initializes the value for the
createdAt attribute. |
MtBatchTextSmsResult.Builder |
deliveryReport(ReportType deliveryReport)
Initializes the value for the
deliveryReport attribute. |
MtBatchTextSmsResult.Builder |
expireAt(OffsetDateTime expireAt)
Initializes the value for the
expireAt attribute. |
MtBatchTextSmsResult.Builder |
id(BatchId id)
Initializes the value for the
id attribute. |
MtBatchTextSmsResult.Builder |
modifiedAt(OffsetDateTime modifiedAt)
Initializes the value for the
modifiedAt attribute. |
MtBatchTextSmsResult.Builder |
parameters(Map<String,? extends ParameterValues> parameters)
Sets or replaces all mappings from the specified map as entries for the
parameters map. |
MtBatchTextSmsResult.Builder |
putAllParameters(Map<String,? extends ParameterValues> parameters)
Put all mappings from the specified map as entries to
parameters map. |
MtBatchTextSmsResult.Builder |
putParameter(Map.Entry<String,? extends ParameterValues> entry)
Put one entry to the
parameters map. |
MtBatchTextSmsResult.Builder |
putParameter(String key,
ParameterValues value)
Put one entry to the
parameters map. |
MtBatchTextSmsResult.Builder |
recipients(Iterable<String> elements)
Sets or replaces all elements for
recipients list. |
MtBatchTextSmsResult.Builder |
sendAt(OffsetDateTime sendAt)
Initializes the value for the
sendAt attribute. |
MtBatchTextSmsResult.Builder |
sender(String sender)
Initializes the value for the
sender attribute. |
MtBatchTextSmsResult.Builder |
using(MtBatchSmsResult instance)
Fill a builder with attribute values from the provided
com.clxcommunications.xms.api.MtBatchSmsResult instance. |
MtBatchTextSmsResult.Builder |
using(MtBatchTextSmsResult instance)
Fill a builder with attribute values from the provided
com.clxcommunications.xms.api.MtBatchTextSmsResult instance. |
public final MtBatchTextSmsResult.Builder using(MtBatchSmsResult instance)
com.clxcommunications.xms.api.MtBatchSmsResult instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder using(MtBatchTextSmsResult instance)
com.clxcommunications.xms.api.MtBatchTextSmsResult instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder body(String body)
body attribute.body - The value for bodythis builder for use in a chained invocationpublic final MtBatchTextSmsResult.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 MtBatchTextSmsResult.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 MtBatchTextSmsResult.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 MtBatchTextSmsResult.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 MtBatchTextSmsResult.Builder id(BatchId id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder addRecipient(String element)
recipients list.element - A recipients elementthis builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder addRecipient(String... elements)
recipients list.elements - An array of recipients elementsthis builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder recipients(Iterable<String> elements)
recipients list.elements - An iterable of recipients elementsthis builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder addAllRecipients(Iterable<String> elements)
recipients list.elements - An iterable of recipients elementsthis builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder sender(@Nullable String sender)
sender attribute.sender - The value for sender (can be null)this builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder deliveryReport(@Nullable ReportType deliveryReport)
deliveryReport attribute.deliveryReport - The value for deliveryReport (can be null)this builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder callbackUrl(@Nullable URI callbackUrl)
callbackUrl attribute.callbackUrl - The value for callbackUrl (can be null)this builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder sendAt(@Nullable OffsetDateTime sendAt)
sendAt attribute.sendAt - The value for sendAt (can be null)this builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder expireAt(@Nullable OffsetDateTime expireAt)
expireAt attribute.expireAt - The value for expireAt (can be null)this builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder createdAt(@Nullable OffsetDateTime createdAt)
createdAt attribute.createdAt - The value for createdAt (can be null)this builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder modifiedAt(@Nullable OffsetDateTime modifiedAt)
modifiedAt attribute.modifiedAt - The value for modifiedAt (can be null)this builder for use in a chained invocationpublic final MtBatchTextSmsResult.Builder canceled(boolean canceled)
canceled attribute.canceled - The value for canceledthis builder for use in a chained invocationpublic MtBatchTextSmsResult build()
MtBatchTextSmsResult.IllegalStateException - if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.