Package io.riada.insight.model
Class ImmutableObjectTicketConnection
java.lang.Object
io.riada.insight.model.ObjectTicketConnection
io.riada.insight.model.ImmutableObjectTicketConnection
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableObjectTicketConnection
extends ObjectTicketConnection
Immutable implementation of
ObjectTicketConnection
.
Use the builder to create immutable instances:
ImmutableObjectTicketConnection.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableObjectTicketConnection
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableObjectTicketConnection
.The connection identifier e.g. the custom field id for a Jira APP integration and the Asset field in a Jira cloud implementationcopyOf
(ObjectTicketConnection instance) Creates an immutable copy of aObjectTicketConnection
value.boolean
This instance is equal to all instances ofImmutableObjectTicketConnection
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,ticketId
,objectId
,connectionId
.id()
objectId()
ticketId()
toString()
Prints the immutable valueObjectTicketConnection
with attribute values.withConnectionId
(Long value) Copy the current immutable object by setting a value for theconnectionId
attribute.Copy the current immutable object by setting a value for theid
attribute.withObjectId
(Integer value) Copy the current immutable object by setting a value for theobjectId
attribute.withTicketId
(Long value) Copy the current immutable object by setting a value for theticketId
attribute.
-
Method Details
-
id
- Specified by:
id
in classObjectTicketConnection
- Returns:
- The value of the
id
attribute
-
ticketId
- Specified by:
ticketId
in classObjectTicketConnection
- Returns:
- The value of the
ticketId
attribute
-
objectId
- Specified by:
objectId
in classObjectTicketConnection
- Returns:
- The value of the
objectId
attribute
-
connectionId
The connection identifier e.g. the custom field id for a Jira APP integration and the Asset field in a Jira cloud implementation- Specified by:
connectionId
in classObjectTicketConnection
-
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
-
withTicketId
Copy the current immutable object by setting a value for theticketId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ticketId- Returns:
- A modified copy of the
this
object
-
withObjectId
Copy the current immutable object by setting a value for theobjectId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for objectId- Returns:
- A modified copy of the
this
object
-
withConnectionId
Copy the current immutable object by setting a value for theconnectionId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for connectionId- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableObjectTicketConnection
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,ticketId
,objectId
,connectionId
. -
toString
Prints the immutable valueObjectTicketConnection
with attribute values. -
copyOf
Creates an immutable copy of aObjectTicketConnection
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 ObjectTicketConnection instance
-
builder
Creates a builder forImmutableObjectTicketConnection
.ImmutableObjectTicketConnection.builder() .setId(Long) // required
id
.setTicketId(Long) // requiredticketId
.setObjectId(Integer) // requiredobjectId
.setConnectionId(Long) // requiredconnectionId
.build();- Returns:
- A new ImmutableObjectTicketConnection builder
-