Package io.resys.thena.api.envelope
Class ImmutableQueryEnvelopeList.Builder<T extends ThenaContainer>
java.lang.Object
io.resys.thena.api.envelope.ImmutableQueryEnvelopeList.Builder<T>
- Enclosing class:
ImmutableQueryEnvelopeList<T extends ThenaContainer>
@Generated(from="QueryEnvelopeList",
generator="Immutables")
public static final class ImmutableQueryEnvelopeList.Builder<T extends ThenaContainer>
extends Object
Builds instances of type
ImmutableQueryEnvelopeList.
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.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllMessages(Iterable<? extends Message> elements) Adds elements tomessageslist.addAllObjects(Iterable<? extends T> elements) Adds elements toobjectslist.addMessages(Message element) Adds one element tomessageslist.addMessages(Message... elements) Adds elements tomessageslist.addObjects(T element) Adds one element toobjectslist.addObjects(T... elements) Adds elements toobjectslist.build()Builds a newImmutableQueryEnvelopeList.from(QueryEnvelopeList<T> instance) Fill a builder with attribute values from the providedQueryEnvelopeListinstance.Sets or replaces all elements formessageslist.Sets or replaces all elements forobjectslist.Initializes the value for therepoattribute.Initializes the value for thestatusattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> from(QueryEnvelopeList<T> instance) Fill a builder with attribute values from the providedQueryEnvelopeListinstance. 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.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
repo
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> repo(@Nullable Tenant repo) Initializes the value for therepoattribute.- Parameters:
repo- The value for repo (can benull)- Returns:
thisbuilder for use in a chained invocation
-
addObjects
Adds one element toobjectslist.- Parameters:
element- A objects element- Returns:
thisbuilder for use in a chained invocation
-
addObjects
@CanIgnoreReturnValue @SafeVarargs public final ImmutableQueryEnvelopeList.Builder<T> addObjects(T... elements) Adds elements toobjectslist.- Parameters:
elements- An array of objects elements- Returns:
thisbuilder for use in a chained invocation
-
objects
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> objects(@Nullable Iterable<? extends T> elements) Sets or replaces all elements forobjectslist.- Parameters:
elements- An iterable of objects elements- Returns:
thisbuilder for use in a chained invocation
-
addAllObjects
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> addAllObjects(Iterable<? extends T> elements) Adds elements toobjectslist.- Parameters:
elements- An iterable of objects elements- Returns:
thisbuilder for use in a chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> status(QueryEnvelope.QueryEnvelopeStatus status) Initializes the value for thestatusattribute.- Parameters:
status- The value for status- Returns:
thisbuilder for use in a chained invocation
-
addMessages
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> addMessages(Message element) Adds one element tomessageslist.- Parameters:
element- A messages element- Returns:
thisbuilder for use in a chained invocation
-
addMessages
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> addMessages(Message... elements) Adds elements tomessageslist.- Parameters:
elements- An array of messages elements- Returns:
thisbuilder for use in a chained invocation
-
messages
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> messages(Iterable<? extends Message> elements) Sets or replaces all elements formessageslist.- Parameters:
elements- An iterable of messages elements- Returns:
thisbuilder for use in a chained invocation
-
addAllMessages
@CanIgnoreReturnValue public final ImmutableQueryEnvelopeList.Builder<T> addAllMessages(Iterable<? extends Message> elements) Adds elements tomessageslist.- Parameters:
elements- An iterable of messages elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableQueryEnvelopeList.- Returns:
- An immutable instance of QueryEnvelopeList
- Throws:
IllegalStateException- if any required attributes are missing
-