public static final class R2MaskInstances.Builder extends Object
R2MaskInstances.
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.
public final R2MaskInstances.Builder from(R2MaskInstancesType instance)
R2MaskInstancesType 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 R2MaskInstances.Builder addSingles(R2InstanceSingleType element)
singles list.element - A singles elementthis builder for use in a chained invocationpublic final R2MaskInstances.Builder addSingles(R2InstanceSingleType... elements)
singles list.elements - An array of singles elementsthis builder for use in a chained invocationpublic final R2MaskInstances.Builder setSingles(Iterable<? extends R2InstanceSingleType> elements)
singles list.elements - An iterable of singles elementsthis builder for use in a chained invocationpublic final R2MaskInstances.Builder addAllSingles(Iterable<? extends R2InstanceSingleType> elements)
singles list.elements - An iterable of singles elementsthis builder for use in a chained invocationpublic final R2MaskInstances.Builder addBatched(R2InstanceBatchedType element)
batched list.element - A batched elementthis builder for use in a chained invocationpublic final R2MaskInstances.Builder addBatched(R2InstanceBatchedType... elements)
batched list.elements - An array of batched elementsthis builder for use in a chained invocationpublic final R2MaskInstances.Builder setBatched(Iterable<? extends R2InstanceBatchedType> elements)
batched list.elements - An iterable of batched elementsthis builder for use in a chained invocationpublic final R2MaskInstances.Builder addAllBatched(Iterable<? extends R2InstanceBatchedType> elements)
batched list.elements - An iterable of batched elementsthis builder for use in a chained invocationpublic R2MaskInstances build()
R2MaskInstances.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com