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 classBuilds 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 aObjectTicketConnectionvalue.booleanThis instance is equal to all instances ofImmutableObjectTicketConnectionthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,ticketId,objectId,connectionId.id()objectId()ticketId()toString()Prints the immutable valueObjectTicketConnectionwith attribute values.withConnectionId(Long value) Copy the current immutable object by setting a value for theconnectionIdattribute.Copy the current immutable object by setting a value for theidattribute.withObjectId(Integer value) Copy the current immutable object by setting a value for theobjectIdattribute.withTicketId(Long value) Copy the current immutable object by setting a value for theticketIdattribute.
-
Method Details
-
id
- Specified by:
idin classObjectTicketConnection- Returns:
- The value of the
idattribute
-
ticketId
- Specified by:
ticketIdin classObjectTicketConnection- Returns:
- The value of the
ticketIdattribute
-
objectId
- Specified by:
objectIdin classObjectTicketConnection- Returns:
- The value of the
objectIdattribute
-
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:
connectionIdin classObjectTicketConnection
-
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
-
withTicketId
Copy the current immutable object by setting a value for theticketIdattribute. 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
thisobject
-
withObjectId
Copy the current immutable object by setting a value for theobjectIdattribute. 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
thisobject
-
withConnectionId
Copy the current immutable object by setting a value for theconnectionIdattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableObjectTicketConnectionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,ticketId,objectId,connectionId. -
toString
Prints the immutable valueObjectTicketConnectionwith attribute values. -
copyOf
Creates an immutable copy of aObjectTicketConnectionvalue. 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) // requiredid.setTicketId(Long) // requiredticketId.setObjectId(Integer) // requiredobjectId.setConnectionId(Long) // requiredconnectionId.build();- Returns:
- A new ImmutableObjectTicketConnection builder
-