Class UserPatch.Builder

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

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

    • name

      public UserPatch.Builder name(@Nullable String name)
      Sets Name: The unique name of the user.
      Parameters:
      name - the value; null sends an explicit null
      Returns:
      this builder
    • friendlyName

      @Since("10.2.2.5") public UserPatch.Builder friendlyName(@Nullable String friendlyName)
      Sets FriendlyName: The friendly name, also known as the display name, of the user.
      Parameters:
      friendlyName - the value; null sends an explicit null
      Returns:
      this builder
    • password

      public UserPatch.Builder password(@Nullable String password)
      Sets Password: The password for the user.
      Parameters:
      password - the value; null sends an explicit null
      Returns:
      this builder
    • type

      @Since("10.2.2.4") public UserPatch.Builder type(@Nullable UserType type)
      Sets Type: The type of the user.
      Parameters:
      type - the value; null sends an explicit null
      Returns:
      this builder
    • isActive

      public UserPatch.Builder isActive(@Nullable Boolean isActive)
      Sets IsActive: A Boolean that indicates whether the user is currently logged in to the TM1 server.
      Parameters:
      isActive - the value; null sends an explicit null
      Returns:
      this builder
    • enabled

      @Since("11.0.0") public UserPatch.Builder enabled(@Nullable Boolean enabled)
      Sets Enabled: A Boolean that indicates whether the user is enabled.
      Parameters:
      enabled - the value; null sends an explicit null
      Returns:
      this builder
    • groups

      public UserPatch.Builder groups(@Nullable List<GroupPatch> groups)
      Sets Groups: The defined groups that the user belongs to. (nested, for a deep insert)
      Parameters:
      groups - the value; null sends an explicit null
      Returns:
      this builder
    • bindGroups

      public UserPatch.Builder bindGroups(ODataPath... targets)
      Binds Groups to existing entities (Groups@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • sessions

      @Since("10.2.2.5") public UserPatch.Builder sessions(@Nullable List<SessionPatch> sessions)
      Sets Sessions: The set of currently active sessions of this user. (nested, for a deep insert)
      Parameters:
      sessions - the value; null sends an explicit null
      Returns:
      this builder
    • bindSessions

      @Since("10.2.2.5") public UserPatch.Builder bindSessions(ODataPath... targets)
      Binds Sessions to existing entities (Sessions@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • build

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