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 class
Builds instances of typeImmutableTicketPriority
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableTicketPriority
.static ImmutableTicketPriority
copyOf
(TicketPriority instance) Creates an immutable copy of aTicketPriority
value.boolean
This instance is equal to all instances ofImmutableTicketPriority
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,name
,iconUrl
.iconUrl()
id()
name()
toString()
Prints the immutable valueTicketPriority
with attribute values.final ImmutableTicketPriority
withIconUrl
(String value) Copy the current immutable object by setting a present value for the optionaliconUrl
attribute.final ImmutableTicketPriority
withIconUrl
(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconUrl
attribute.final ImmutableTicketPriority
Copy the current immutable object by setting a value for theid
attribute.final ImmutableTicketPriority
Copy the current immutable object by setting a value for thename
attribute.
-
Method Details
-
id
- Specified by:
id
in classTicketPriority
- Returns:
- The value of the
id
attribute
-
name
- Specified by:
name
in classTicketPriority
- Returns:
- The value of the
name
attribute
-
iconUrl
- Specified by:
iconUrl
in classTicketPriority
- Returns:
- The value of the
iconUrl
attribute
-
withId
Copy the current immutable object by setting a value for theid
attribute. 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
this
object
-
withName
Copy the current immutable object by setting a value for thename
attribute. 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
this
object
-
withIconUrl
Copy the current immutable object by setting a present value for the optionaliconUrl
attribute.- Parameters:
value
- The value for iconUrl- Returns:
- A modified copy of
this
object
-
withIconUrl
Copy the current immutable object by setting an optional value for theiconUrl
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableTicketPriority
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,name
,iconUrl
. -
toString
Prints the immutable valueTicketPriority
with attribute values. -
copyOf
Creates an immutable copy of aTicketPriority
value. 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) // required
id
.setName(String) // requiredname
.setIconUrl(String) // optionaliconUrl
.build();- Returns:
- A new ImmutableTicketPriority builder
-