Name | Type | Description | Notes |
---|---|---|---|
ConnectionId | string | The ID of the connection. | |
UserId | string | The ID of the user. | |
ResourceId | string | The ID of the resource. | |
AccessLevel | ResourceAccessLevel | ||
ExpirationDate | time.Time | The day and time the user's access will expire. |
func NewSession(connectionId string, userId string, resourceId string, accessLevel ResourceAccessLevel, expirationDate time.Time, ) *Session
NewSession instantiates a new Session object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewSessionWithDefaults() *Session
NewSessionWithDefaults instantiates a new Session object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Session) GetConnectionId() string
GetConnectionId returns the ConnectionId field if non-nil, zero value otherwise.
func (o *Session) GetConnectionIdOk() (*string, bool)
GetConnectionIdOk returns a tuple with the ConnectionId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Session) SetConnectionId(v string)
SetConnectionId sets ConnectionId field to given value.
func (o *Session) GetUserId() string
GetUserId returns the UserId field if non-nil, zero value otherwise.
func (o *Session) GetUserIdOk() (*string, bool)
GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Session) SetUserId(v string)
SetUserId sets UserId field to given value.
func (o *Session) GetResourceId() string
GetResourceId returns the ResourceId field if non-nil, zero value otherwise.
func (o *Session) GetResourceIdOk() (*string, bool)
GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Session) SetResourceId(v string)
SetResourceId sets ResourceId field to given value.
func (o *Session) GetAccessLevel() ResourceAccessLevel
GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise.
func (o *Session) GetAccessLevelOk() (*ResourceAccessLevel, bool)
GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Session) SetAccessLevel(v ResourceAccessLevel)
SetAccessLevel sets AccessLevel field to given value.
func (o *Session) GetExpirationDate() time.Time
GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise.
func (o *Session) GetExpirationDateOk() (*time.Time, bool)
GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Session) SetExpirationDate(v time.Time)
SetExpirationDate sets ExpirationDate field to given value.