ApiUserSession (cloudera-manager-api-swagger 7.8.1 API)
Date: 2022-11-17

com.cloudera.api.swagger.model

## Class ApiUserSession

- java.lang.Object
- - com.cloudera.api.swagger.model.ApiUserSession

-     @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
                 date="2022-11-17T16:22:50.425Z")
      public class ApiUserSession
      extends Object

  This is the model for interactive user session information in the API. <p> A user may have more than one active session. Each such session will have its own session object.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApiUserSession()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `getLastRequest()` The date and time of the last request received as part of this session.
    `String` | `getName()` The username associated with the session.
    `String` | `getRemoteAddr()` The remote IP address for the session.
    `int` | `hashCode()`
    `ApiUserSession` | `lastRequest(String lastRequest)`
    `ApiUserSession` | `name(String name)`
    `ApiUserSession` | `remoteAddr(String remoteAddr)`
    `void` | `setLastRequest(String lastRequest)`
    `void` | `setName(String name)`
    `void` | `setRemoteAddr(String remoteAddr)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ApiUserSession

          public ApiUserSession()

  - ### Method Detail

    - #### name

          public ApiUserSession name(String name)

    - #### getName

          public String getName()

      The username associated with the session. <p> This will be the same value shown to the logged in user in the UI, which will normally be the same value they typed when logging in, but it is possible that in certain external authentication scenarios, it will differ from that value.
      Returns:
        name

    - #### setName

          public void setName(String name)

    - #### remoteAddr

          public ApiUserSession remoteAddr(String remoteAddr)

    - #### getRemoteAddr

          public String getRemoteAddr()

      The remote IP address for the session. <p> This will be the remote IP address for the last request made as part of this session. It is not guaranteed to be the same IP address as was previously used, or the address used to initiate the session.
      Returns:
        remoteAddr

    - #### setRemoteAddr

          public void setRemoteAddr(String remoteAddr)

    - #### lastRequest

          public ApiUserSession lastRequest(String lastRequest)

    - #### getLastRequest

          public String getLastRequest()

      The date and time of the last request received as part of this session. <p> This will be returned in ISO 8601 format from the REST API.
      Returns:
        lastRequest

    - #### setLastRequest

          public void setLastRequest(String lastRequest)

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2022. All rights reserved.