Class ImmutableObjectTickets

java.lang.Object
io.riada.insight.model.ObjectTickets
io.riada.insight.model.ImmutableObjectTickets

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableObjectTickets extends ObjectTickets
Immutable implementation of ObjectTickets.

Use the builder to create immutable instances: ImmutableObjectTickets.builder().

  • Method Details

    • tickets

      public com.google.common.collect.ImmutableList<Ticket> tickets()
      Specified by:
      tickets in class ObjectTickets
      Returns:
      The value of the tickets attribute
    • allTicketsQuery

      public String allTicketsQuery()
      A query string which would return all the related tickets listed for the object
      Specified by:
      allTicketsQuery in class ObjectTickets
      Returns:
      the query string
    • withTickets

      public final ImmutableObjectTickets withTickets(Ticket... elements)
      Copy the current immutable object with elements that replace the content of tickets.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withTickets

      public final ImmutableObjectTickets withTickets(Iterable<? extends Ticket> elements)
      Copy the current immutable object with elements that replace the content of tickets. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of tickets elements to set
      Returns:
      A modified copy of this object
    • withAllTicketsQuery

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableObjectTickets 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: tickets, allTicketsQuery.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableObjectTickets copyOf(ObjectTickets instance)
      Creates an immutable copy of a ObjectTickets 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 ObjectTickets instance
    • builder

      public static ImmutableObjectTickets.Builder builder()
      Creates a builder for ImmutableObjectTickets.
       ImmutableObjectTickets.builder()
          .addTickets|addAllTickets(io.riada.insight.model.Ticket) // tickets elements
          .setAllTicketsQuery(String) // required allTicketsQuery
          .build();
       
      Returns:
      A new ImmutableObjectTickets builder