Record Class Session

java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.Session
Record Components:
etag - the entity's ETag (@odata.etag), for If-Match
id - The ID uniquely identifying the session.
context - The Context specified by the client to help identifying the consumer of this session. (since 11.1.0)
active - A Boolean indicating that the session is still considered active vs. (since 11.5.0)
user - The user that is associated to this session. (when expanded)
threads - The names of users in a given group. (when expanded)

@Generated("io.skipcheck.tm1.codegen") @Since("10.2.2.5") public record Session(@Nullable String etag, @Nullable Long id, @Since("11.1.0") @Nullable String context, @Since("11.5.0") @Nullable Boolean active, @Nullable User user, @Nullable List<Thread> threads) extends Record
Represents a unique user session with the server.

Generated from $metadata. Every component is nullable: $select can leave any property out, and navigation properties are only there when expanded. Null components aren't sent.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ODataProperty
    Active, for queries: A Boolean indicating that the session is still considered active vs.
    static final ODataProperty
    Context, for queries: The Context specified by the client to help identifying the consumer of this session.
    static final ODataProperty
    ID, for queries: The ID uniquely identifying the session.
    static final ODataProperty
    Threads, for queries: The names of users in a given group.
    static final ODataProperty
    User, for queries: The user that is associated to this session.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Session(@Nullable String etag, @Nullable Long id, @Nullable String context, @Nullable Boolean active, @Nullable User user, @Nullable List<Thread> threads)
    Creates an instance of a Session record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Boolean
    Returns the value of the active record component.
    @Nullable String
    Returns the value of the context record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @Nullable String
    Returns the value of the etag record component.
    final int
    Returns a hash code value for this object.
    @Nullable Long
    id()
    Returns the value of the id record component.
    @Nullable List<Thread>
    Returns the value of the threads record component.
    final String
    Returns a string representation of this record class.
    @Nullable User
    Returns the value of the user record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ID

      public static final ODataProperty ID
      ID, for queries: The ID uniquely identifying the session.
    • CONTEXT

      @Since("11.1.0") public static final ODataProperty CONTEXT
      Context, for queries: The Context specified by the client to help identifying the consumer of this session.
    • ACTIVE

      @Since("11.5.0") public static final ODataProperty ACTIVE
      Active, for queries: A Boolean indicating that the session is still considered active vs.
    • USER

      public static final ODataProperty USER
      User, for queries: The user that is associated to this session. (a navigation property, for $expand)
    • THREADS

      public static final ODataProperty THREADS
      Threads, for queries: The names of users in a given group. (a navigation property, for $expand)
  • Constructor Details

    • Session

      public Session(@Nullable String etag, @Nullable Long id, @Nullable String context, @Nullable Boolean active, @Nullable User user, @Nullable List<Thread> threads)
      Creates an instance of a Session record class.
      Parameters:
      etag - the value for the etag record component
      id - the value for the id record component
      context - the value for the context record component
      active - the value for the active record component
      user - the value for the user record component
      threads - the value for the threads record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • etag

      public @Nullable String etag()
      Returns the value of the etag record component.
      Returns:
      the value of the etag record component
    • id

      public @Nullable Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • context

      @Since("11.1.0") public @Nullable String context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • active

      @Since("11.5.0") public @Nullable Boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component
    • user

      public @Nullable User user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • threads

      public @Nullable List<Thread> threads()
      Returns the value of the threads record component.
      Returns:
      the value of the threads record component