public static class BatchDeliveryReport.Builder extends Object
public final BatchDeliveryReport.Builder using(BatchDeliveryReport instance)
BatchDeliveryReport
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 BatchDeliveryReport.Builder batchId(BatchId batchId)
batchId
attribute.batchId
- The value for batchIdthis
builder for use in a chained invocationpublic final BatchDeliveryReport.Builder totalMessageCount(int totalMessageCount)
totalMessageCount
attribute.totalMessageCount
- The value for totalMessageCountthis
builder for use in a chained invocationpublic final BatchDeliveryReport.Builder addStatus(BatchDeliveryReport.Status element)
statuses
list.element
- A statuses elementthis
builder for use in a chained invocationpublic final BatchDeliveryReport.Builder addStatus(BatchDeliveryReport.Status... elements)
statuses
list.elements
- An array of statuses elementsthis
builder for use in a chained invocationpublic final BatchDeliveryReport.Builder statuses(Iterable<? extends BatchDeliveryReport.Status> elements)
statuses
list.elements
- An iterable of statuses elementsthis
builder for use in a chained invocationpublic final BatchDeliveryReport.Builder addAllStatuses(Iterable<? extends BatchDeliveryReport.Status> elements)
statuses
list.elements
- An iterable of statuses elementsthis
builder for use in a chained invocationpublic BatchDeliveryReport build()
BatchDeliveryReport
.IllegalStateException
- if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.