@NotThreadSafe public static final class ImmutableObjectTicketConnection.Builder extends Object
ImmutableObjectTicketConnection.
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 |
|---|---|
ImmutableObjectTicketConnection |
build()
Builds a new
ImmutableObjectTicketConnection. |
ImmutableObjectTicketConnection.Builder |
from(ObjectTicketConnection instance)
Fill a builder with attribute values from the provided
ObjectTicketConnection instance. |
ImmutableObjectTicketConnection.Builder |
setConnectionId(Long connectionId)
Initializes the value for the
connectionId attribute. |
ImmutableObjectTicketConnection.Builder |
setId(Long id)
Initializes the value for the
id attribute. |
ImmutableObjectTicketConnection.Builder |
setObjectId(Integer objectId)
Initializes the value for the
objectId attribute. |
ImmutableObjectTicketConnection.Builder |
setTicketId(Long ticketId)
Initializes the value for the
ticketId attribute. |
@CanIgnoreReturnValue public final ImmutableObjectTicketConnection.Builder from(ObjectTicketConnection instance)
ObjectTicketConnection instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTicketConnection.Builder setId(Long id)
id attribute.id - The value for idthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTicketConnection.Builder setTicketId(Long ticketId)
ticketId attribute.ticketId - The value for ticketIdthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTicketConnection.Builder setObjectId(Integer objectId)
objectId attribute.objectId - The value for objectIdthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTicketConnection.Builder setConnectionId(Long connectionId)
connectionId attribute.connectionId - The value for connectionIdthis builder for use in a chained invocationpublic ImmutableObjectTicketConnection build()
ImmutableObjectTicketConnection.IllegalStateException - if any required attributes are missingCopyright © 2023 Atlassian. All rights reserved.