@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTicket extends Ticket
Ticket.
Use the builder to create immutable instances:
ImmutableTicket.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTicket.Builder
Builds instances of type
ImmutableTicket. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTicket.Builder |
builder()
Creates a builder for
ImmutableTicket. |
static ImmutableTicket |
copyOf(Ticket instance)
Creates an immutable copy of a
Ticket value. |
Instant |
created() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTicket that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, key, reporter, created, updated, ticketStatus, title, type, priority. |
Long |
id() |
String |
key() |
Optional<TicketPriority> |
priority() |
Optional<String> |
reporter() |
Optional<TicketStatus> |
ticketStatus() |
Optional<String> |
title() |
String |
toString()
Prints the immutable value
Ticket with attribute values. |
Optional<TicketType> |
type() |
Instant |
updated() |
ImmutableTicket |
withCreated(Instant value)
Copy the current immutable object by setting a value for the
created attribute. |
ImmutableTicket |
withId(Long value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableTicket |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableTicket |
withPriority(Optional<? extends TicketPriority> optional)
Copy the current immutable object by setting an optional value for the
priority attribute. |
ImmutableTicket |
withPriority(TicketPriority value)
Copy the current immutable object by setting a present value for the optional
priority attribute. |
ImmutableTicket |
withReporter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
reporter attribute. |
ImmutableTicket |
withReporter(String value)
Copy the current immutable object by setting a present value for the optional
reporter attribute. |
ImmutableTicket |
withTicketStatus(Optional<? extends TicketStatus> optional)
Copy the current immutable object by setting an optional value for the
ticketStatus attribute. |
ImmutableTicket |
withTicketStatus(TicketStatus value)
Copy the current immutable object by setting a present value for the optional
ticketStatus attribute. |
ImmutableTicket |
withTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
title attribute. |
ImmutableTicket |
withTitle(String value)
Copy the current immutable object by setting a present value for the optional
title attribute. |
ImmutableTicket |
withType(Optional<? extends TicketType> optional)
Copy the current immutable object by setting an optional value for the
type attribute. |
ImmutableTicket |
withType(TicketType value)
Copy the current immutable object by setting a present value for the optional
type attribute. |
ImmutableTicket |
withUpdated(Instant value)
Copy the current immutable object by setting a value for the
updated attribute. |
public Instant created()
public Instant updated()
public Optional<TicketStatus> ticketStatus()
ticketStatus in class TicketticketStatus attributepublic Optional<TicketType> type()
public Optional<TicketPriority> priority()
public final ImmutableTicket withId(Long value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutableTicket withKey(String value)
key attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for keythis objectpublic final ImmutableTicket withReporter(String value)
reporter attribute.value - The value for reporterthis objectpublic final ImmutableTicket withReporter(Optional<String> optional)
reporter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for reporterthis objectpublic final ImmutableTicket withCreated(Instant value)
created attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for createdthis objectpublic final ImmutableTicket withUpdated(Instant value)
updated attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for updatedthis objectpublic final ImmutableTicket withTicketStatus(TicketStatus value)
ticketStatus attribute.value - The value for ticketStatusthis objectpublic final ImmutableTicket withTicketStatus(Optional<? extends TicketStatus> optional)
ticketStatus attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for ticketStatusthis objectpublic final ImmutableTicket withTitle(String value)
title attribute.value - The value for titlethis objectpublic final ImmutableTicket withTitle(Optional<String> optional)
title attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for titlethis objectpublic final ImmutableTicket withType(TicketType value)
type attribute.value - The value for typethis objectpublic final ImmutableTicket withType(Optional<? extends TicketType> optional)
type attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for typethis objectpublic final ImmutableTicket withPriority(TicketPriority value)
priority attribute.value - The value for prioritythis objectpublic final ImmutableTicket withPriority(Optional<? extends TicketPriority> optional)
priority attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for prioritythis objectpublic boolean equals(@Nullable Object another)
ImmutableTicket that have equal attribute values.public int hashCode()
id, key, reporter, created, updated, ticketStatus, title, type, priority.public String toString()
Ticket with attribute values.public static ImmutableTicket copyOf(Ticket instance)
Ticket value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableTicket.Builder builder()
ImmutableTicket.
ImmutableTicket.builder()
.setId(Long) // required id
.setKey(String) // required key
.setReporter(String) // optional reporter
.setCreated(java.time.Instant) // required created
.setUpdated(java.time.Instant) // required updated
.setTicketStatus(io.riada.insight.model.TicketStatus) // optional ticketStatus
.setTitle(String) // optional title
.setType(io.riada.insight.model.TicketType) // optional type
.setPriority(io.riada.insight.model.TicketPriority) // optional priority
.build();
Copyright © 2024 Atlassian. All rights reserved.