public static class PagedBatchResult.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
PagedBatchResult.Builder |
addAllContent(Iterable<? extends MtBatchSmsResult> elements)
Adds elements to
content list. |
PagedBatchResult.Builder |
addContent(MtBatchSmsResult... elements)
Adds elements to
content list. |
PagedBatchResult.Builder |
addContent(MtBatchSmsResult element)
Adds one element to
content list. |
PagedBatchResult |
build()
Builds a new
PagedBatchResult. |
PagedBatchResult.Builder |
content(Iterable<? extends MtBatchSmsResult> elements)
Sets or replaces all elements for
content list. |
PagedBatchResult.Builder |
page(int page)
Initializes the value for the
page attribute. |
PagedBatchResult.Builder |
size(int size)
Initializes the value for the
size attribute. |
PagedBatchResult.Builder |
totalSize(int totalSize)
Initializes the value for the
totalSize attribute. |
PagedBatchResult.Builder |
using(PagedBatchResult instance)
Fill a builder with attribute values from the provided
PagedBatchResult instance. |
public final PagedBatchResult.Builder using(PagedBatchResult instance)
PagedBatchResult instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PagedBatchResult.Builder addContent(MtBatchSmsResult element)
content list.element - A content elementthis builder for use in a chained invocationpublic final PagedBatchResult.Builder addContent(MtBatchSmsResult... elements)
content list.elements - An array of content elementsthis builder for use in a chained invocationpublic final PagedBatchResult.Builder content(Iterable<? extends MtBatchSmsResult> elements)
content list.elements - An iterable of content elementsthis builder for use in a chained invocationpublic final PagedBatchResult.Builder addAllContent(Iterable<? extends MtBatchSmsResult> elements)
content list.elements - An iterable of content elementsthis builder for use in a chained invocationpublic final PagedBatchResult.Builder page(int page)
page attribute.page - The value for pagethis builder for use in a chained invocationpublic final PagedBatchResult.Builder size(int size)
size attribute.size - The value for sizethis builder for use in a chained invocationpublic final PagedBatchResult.Builder totalSize(int totalSize)
totalSize attribute.totalSize - The value for totalSizethis builder for use in a chained invocationpublic PagedBatchResult build()
PagedBatchResult.IllegalStateException - if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.