public static final class EnvelopeBatch.Builder extends Object
EnvelopeBatch.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
EnvelopeBatch.Builder |
addAllBatch(Iterable<? extends Envelope> elements)
Adds elements to
batch list. |
EnvelopeBatch.Builder |
batch(Envelope... elements)
Adds elements to
batch list. |
EnvelopeBatch.Builder |
batch(Envelope element)
Adds one element to
batch list. |
EnvelopeBatch.Builder |
batch(Iterable<? extends Envelope> elements)
Sets or replaces all elements for
batch list. |
EnvelopeBatch |
build()
Builds a new
EnvelopeBatch. |
EnvelopeBatch.Builder |
from(EnvelopeBatch instance)
Fill a builder with attribute values from the provided
EnvelopeBatch instance. |
public final EnvelopeBatch.Builder from(EnvelopeBatch instance)
EnvelopeBatch 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 EnvelopeBatch.Builder batch(Envelope element)
batch list.element - A batch elementthis builder for use in a chained invocationpublic final EnvelopeBatch.Builder batch(Envelope... elements)
batch list.elements - An array of batch elementsthis builder for use in a chained invocationpublic final EnvelopeBatch.Builder batch(Iterable<? extends Envelope> elements)
batch list.elements - An iterable of batch elementsthis builder for use in a chained invocationpublic final EnvelopeBatch.Builder addAllBatch(Iterable<? extends Envelope> elements)
batch list.elements - An iterable of batch elementsthis builder for use in a chained invocationpublic EnvelopeBatch build()
EnvelopeBatch.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.