public static class BatchFilter.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
BatchFilter.Builder |
addAllSenders(Iterable<String> elements)
Adds elements to
senders set. |
BatchFilter.Builder |
addAllTags(Iterable<String> elements)
Adds elements to
tags set. |
BatchFilter.Builder |
addSender(String... elements)
Adds elements to
senders set. |
BatchFilter.Builder |
addSender(String element)
Adds one element to
senders set. |
BatchFilter.Builder |
addTag(String... elements)
Adds elements to
tags set. |
BatchFilter.Builder |
addTag(String element)
Adds one element to
tags set. |
BatchFilter |
build()
Builds a new
BatchFilter. |
BatchFilter.Builder |
endDate(LocalDate endDate)
Initializes the value for the
endDate attribute. |
BatchFilter.Builder |
pageSize(int pageSize)
Initializes the value for the
pageSize attribute. |
BatchFilter.Builder |
senders(Iterable<String> elements)
Sets or replaces all elements for
senders set. |
BatchFilter.Builder |
startDate(LocalDate startDate)
Initializes the value for the
startDate attribute. |
BatchFilter.Builder |
tags(Iterable<String> elements)
Sets or replaces all elements for
tags set. |
BatchFilter.Builder |
using(BatchFilter instance)
Fill a builder with attribute values from the provided
BatchFilter instance. |
public final BatchFilter.Builder using(BatchFilter instance)
BatchFilter 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 BatchFilter.Builder pageSize(int pageSize)
pageSize attribute.
If not set, this attribute will have a default value as returned by the initializer of pageSize.
pageSize - The value for pageSizethis builder for use in a chained invocationpublic final BatchFilter.Builder startDate(@Nullable LocalDate startDate)
startDate attribute.startDate - The value for startDate (can be null)this builder for use in a chained invocationpublic final BatchFilter.Builder endDate(@Nullable LocalDate endDate)
endDate attribute.endDate - The value for endDate (can be null)this builder for use in a chained invocationpublic final BatchFilter.Builder addSender(String element)
senders set.element - A senders elementthis builder for use in a chained invocationpublic final BatchFilter.Builder addSender(String... elements)
senders set.elements - An array of senders elementsthis builder for use in a chained invocationpublic final BatchFilter.Builder senders(Iterable<String> elements)
senders set.elements - An iterable of senders elementsthis builder for use in a chained invocationpublic final BatchFilter.Builder addAllSenders(Iterable<String> elements)
senders set.elements - An iterable of senders elementsthis builder for use in a chained invocationpublic final BatchFilter.Builder addTag(String element)
tags set.element - A tags elementthis builder for use in a chained invocationpublic final BatchFilter.Builder addTag(String... elements)
tags set.elements - An array of tags elementsthis builder for use in a chained invocationpublic final BatchFilter.Builder tags(Iterable<String> elements)
tags set.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final BatchFilter.Builder addAllTags(Iterable<String> elements)
tags set.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic BatchFilter build()
BatchFilter.IllegalStateException - if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.