Class SessionPatch.Builder

java.lang.Object
io.skipcheck.tm1.client.model.SessionPatch.Builder
Enclosing class:
SessionPatch

public static final class SessionPatch.Builder extends Object
Builds a SessionPatch; each setter replaces what an earlier call set.
  • Method Details

    • id

      public SessionPatch.Builder id(@Nullable Long id)
      Sets ID: The ID uniquely identifying the session.
      Parameters:
      id - the value; null sends an explicit null
      Returns:
      this builder
    • context

      @Since("11.1.0") public SessionPatch.Builder context(@Nullable String context)
      Sets Context: The Context specified by the client to help identifying the consumer of this session.
      Parameters:
      context - the value; null sends an explicit null
      Returns:
      this builder
    • active

      @Since("11.5.0") public SessionPatch.Builder active(@Nullable Boolean active)
      Sets Active: A Boolean indicating that the session is still considered active vs.
      Parameters:
      active - the value; null sends an explicit null
      Returns:
      this builder
    • user

      public SessionPatch.Builder user(@Nullable UserPatch user)
      Sets User: The user that is associated to this session. (nested, for a deep insert)
      Parameters:
      user - the value; null sends an explicit null
      Returns:
      this builder
    • bindUser

      public SessionPatch.Builder bindUser(ODataPath target)
      Binds User to an existing entity (User@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • threads

      public SessionPatch.Builder threads(@Nullable List<ThreadPatch> threads)
      Sets Threads: The names of users in a given group. (nested, for a deep insert)
      Parameters:
      threads - the value; null sends an explicit null
      Returns:
      this builder
    • bindThreads

      public SessionPatch.Builder bindThreads(ODataPath... targets)
      Binds Threads to existing entities (Threads@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • build

      public SessionPatch build()
      The patch, with what's been set so far.
      Returns:
      the patch