Package io.riada.insight.model
Class ImmutableTicketPriority
java.lang.Object
io.riada.insight.model.TicketPriority
io.riada.insight.model.ImmutableTicketPriority
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableTicketPriority
extends TicketPriority
Immutable implementation of
TicketPriority.
Use the builder to create immutable instances:
ImmutableTicketPriority.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableTicketPriority. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableTicketPriority.static ImmutableTicketPrioritycopyOf(TicketPriority instance) Creates an immutable copy of aTicketPriorityvalue.booleanThis instance is equal to all instances ofImmutableTicketPrioritythat have equal attribute values.inthashCode()Computes a hash code from attributes:id,name,iconUrl.iconUrl()id()name()toString()Prints the immutable valueTicketPrioritywith attribute values.final ImmutableTicketPrioritywithIconUrl(String value) Copy the current immutable object by setting a present value for the optionaliconUrlattribute.final ImmutableTicketPrioritywithIconUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconUrlattribute.final ImmutableTicketPriorityCopy the current immutable object by setting a value for theidattribute.final ImmutableTicketPriorityCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
id
- Specified by:
idin classTicketPriority- Returns:
- The value of the
idattribute
-
name
- Specified by:
namein classTicketPriority- Returns:
- The value of the
nameattribute
-
iconUrl
- Specified by:
iconUrlin classTicketPriority- Returns:
- The value of the
iconUrlattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withIconUrl
Copy the current immutable object by setting a present value for the optionaliconUrlattribute.- Parameters:
value- The value for iconUrl- Returns:
- A modified copy of
thisobject
-
withIconUrl
Copy the current immutable object by setting an optional value for theiconUrlattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for iconUrl- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableTicketPrioritythat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,iconUrl. -
toString
Prints the immutable valueTicketPrioritywith attribute values. -
copyOf
Creates an immutable copy of aTicketPriorityvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable TicketPriority instance
-
builder
Creates a builder forImmutableTicketPriority.ImmutableTicketPriority.builder() .setId(String) // requiredid.setName(String) // requiredname.setIconUrl(String) // optionaliconUrl.build();- Returns:
- A new ImmutableTicketPriority builder
-