@NotThreadSafe public static final class ImmutableObjectTickets.Builder extends Object
ImmutableObjectTickets.
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 |
|---|---|
ImmutableObjectTickets.Builder |
addAllTickets(Iterable<? extends Ticket> elements)
Adds elements to
tickets list. |
ImmutableObjectTickets.Builder |
addTickets(Ticket... elements)
Adds elements to
tickets list. |
ImmutableObjectTickets.Builder |
addTickets(Ticket element)
Adds one element to
tickets list. |
ImmutableObjectTickets |
build()
Builds a new
ImmutableObjectTickets. |
ImmutableObjectTickets.Builder |
from(ObjectTickets instance)
Fill a builder with attribute values from the provided
ObjectTickets instance. |
ImmutableObjectTickets.Builder |
setAllTicketsQuery(String allTicketsQuery)
Initializes the value for the
allTicketsQuery attribute. |
ImmutableObjectTickets.Builder |
setTickets(Iterable<? extends Ticket> elements)
Sets or replaces all elements for
tickets list. |
@CanIgnoreReturnValue public final ImmutableObjectTickets.Builder from(ObjectTickets instance)
ObjectTickets 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 invocation@CanIgnoreReturnValue public final ImmutableObjectTickets.Builder addTickets(Ticket element)
tickets list.element - A tickets elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTickets.Builder addTickets(Ticket... elements)
tickets list.elements - An array of tickets elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTickets.Builder setTickets(Iterable<? extends Ticket> elements)
tickets list.elements - An iterable of tickets elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTickets.Builder addAllTickets(Iterable<? extends Ticket> elements)
tickets list.elements - An iterable of tickets elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTickets.Builder setAllTicketsQuery(String allTicketsQuery)
allTicketsQuery attribute.allTicketsQuery - The value for allTicketsQuerythis builder for use in a chained invocationpublic ImmutableObjectTickets build()
ImmutableObjectTickets.IllegalStateException - if any required attributes are missingCopyright © 2023 Atlassian. All rights reserved.