Package io.riada.insight.model
Class ImmutableTicketType
java.lang.Object
io.riada.insight.model.TicketType
io.riada.insight.model.ImmutableTicketType
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableTicketType
extends TicketType
Immutable implementation of
TicketType
.
Use the builder to create immutable instances:
ImmutableTicketType.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableTicketType
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableTicketType.Builder
builder()
Creates a builder forImmutableTicketType
.static ImmutableTicketType
copyOf
(TicketType instance) Creates an immutable copy of aTicketType
value.boolean
This instance is equal to all instances ofImmutableTicketType
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,name
,description
,iconUrl
.iconUrl()
id()
name()
toString()
Prints the immutable valueTicketType
with attribute values.final ImmutableTicketType
withDescription
(String value) Copy the current immutable object by setting a present value for the optionaldescription
attribute.final ImmutableTicketType
withDescription
(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescription
attribute.final ImmutableTicketType
withIconUrl
(String value) Copy the current immutable object by setting a present value for the optionaliconUrl
attribute.final ImmutableTicketType
withIconUrl
(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconUrl
attribute.final ImmutableTicketType
Copy the current immutable object by setting a value for theid
attribute.final ImmutableTicketType
Copy the current immutable object by setting a value for thename
attribute.
-
Method Details
-
id
- Specified by:
id
in classTicketType
- Returns:
- The value of the
id
attribute
-
name
- Specified by:
name
in classTicketType
- Returns:
- The value of the
name
attribute
-
description
- Specified by:
description
in classTicketType
- Returns:
- The value of the
description
attribute
-
iconUrl
- Specified by:
iconUrl
in classTicketType
- 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
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescription
attribute.- Parameters:
value
- The value for description- Returns:
- A modified copy of
this
object
-
withDescription
Copy the current immutable object by setting an optional value for thedescription
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for description- Returns:
- A modified copy of
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 ofImmutableTicketType
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,name
,description
,iconUrl
. -
toString
Prints the immutable valueTicketType
with attribute values. -
copyOf
Creates an immutable copy of aTicketType
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 TicketType instance
-
builder
Creates a builder forImmutableTicketType
.ImmutableTicketType.builder() .setId(String) // required
id
.setName(String) // requiredname
.setDescription(String) // optionaldescription
.setIconUrl(String) // optionaliconUrl
.build();- Returns:
- A new ImmutableTicketType builder
-