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:
  • Method Details

    • id

      public Long id()
      Specified by:
      id in class ObjectTicketConnection
      Returns:
      The value of the id attribute
    • ticketId

      public Long ticketId()
      Specified by:
      ticketId in class ObjectTicketConnection
      Returns:
      The value of the ticketId attribute
    • objectId

      public Integer objectId()
      Specified by:
      objectId in class ObjectTicketConnection
      Returns:
      The value of the objectId attribute
    • connectionId

      public Long 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 class ObjectTicketConnection
    • withId

      public final ImmutableObjectTicketConnection withId(Long value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id
      Returns:
      A modified copy of the this object
    • withTicketId

      public final ImmutableObjectTicketConnection withTicketId(Long value)
      Copy the current immutable object by setting a value for the ticketId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for ticketId
      Returns:
      A modified copy of the this object
    • withObjectId

      public final ImmutableObjectTicketConnection withObjectId(Integer value)
      Copy the current immutable object by setting a value for the objectId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for objectId
      Returns:
      A modified copy of the this object
    • withConnectionId

      public final ImmutableObjectTicketConnection withConnectionId(Long value)
      Copy the current immutable object by setting a value for the connectionId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for connectionId
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableObjectTicketConnection that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: id, ticketId, objectId, connectionId.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ObjectTicketConnection with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a ObjectTicketConnection 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

      public static ImmutableObjectTicketConnection.Builder builder()
      Creates a builder for ImmutableObjectTicketConnection.
       ImmutableObjectTicketConnection.builder()
          .setId(Long) // required id
          .setTicketId(Long) // required ticketId
          .setObjectId(Integer) // required objectId
          .setConnectionId(Long) // required connectionId
          .build();
       
      Returns:
      A new ImmutableObjectTicketConnection builder