Record Class Session
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.Session
- Record Components:
etag- the entity's ETag (@odata.etag), forIf-Matchid- 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
FieldsModifier and TypeFieldDescriptionstatic final ODataPropertyActive, for queries: A Boolean indicating that the session is still considered active vs.static final ODataPropertyContext, for queries: The Context specified by the client to help identifying the consumer of this session.static final ODataPropertyID, for queries: The ID uniquely identifying the session.static final ODataPropertyThreads, for queries: The names of users in a given group.static final ODataPropertyUser, for queries: The user that is associated to this session. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Booleanactive()Returns the value of theactiverecord component.@Nullable Stringcontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringetag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Longid()Returns the value of theidrecord component.threads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Useruser()Returns the value of theuserrecord component.
-
Field Details
-
ID
ID, for queries: The ID uniquely identifying the session. -
CONTEXT
Context, for queries: The Context specified by the client to help identifying the consumer of this session. -
ACTIVE
Active, for queries: A Boolean indicating that the session is still considered active vs. -
USER
User, for queries: The user that is associated to this session. (a navigation property, for$expand) -
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 aSessionrecord class.- Parameters:
etag- the value for theetagrecord componentid- the value for theidrecord componentcontext- the value for thecontextrecord componentactive- the value for theactiverecord componentuser- the value for theuserrecord componentthreads- the value for thethreadsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
etag
-
id
-
context
-
active
-
user
-
threads
-