Files
sdk/model_connection.go

968 lines
25 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the Connection type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Connection{}
// Connection struct for Connection
type Connection struct {
ClientIp *string `json:"clientIp,omitempty"`
ClientIpDesc *string `json:"clientIpDesc,omitempty"`
Code *int32 `json:"code,omitempty"`
CommandCount *int32 `json:"commandCount,omitempty"`
ConnectionId *string `json:"connectionId,omitempty"`
CreatedTime *string `json:"createdTime,omitempty"`
Creator *string `json:"creator,omitempty"`
EndTime *string `json:"endTime,omitempty"`
Height *int32 `json:"height,omitempty"`
Message *string `json:"message,omitempty"`
Mode *string `json:"mode,omitempty"`
Name *string `json:"name,omitempty"`
Node *string `json:"node,omitempty"`
Operations []string `json:"operations,omitempty"`
Owner *string `json:"owner,omitempty"`
Protocol *string `json:"protocol,omitempty"`
Recording *string `json:"recording,omitempty"`
Reviewed *bool `json:"reviewed,omitempty"`
StartTime *string `json:"startTime,omitempty"`
Status *string `json:"status,omitempty"`
UserAgent *string `json:"userAgent,omitempty"`
UserAgentDesc *string `json:"userAgentDesc,omitempty"`
Width *int32 `json:"width,omitempty"`
AdditionalProperties map[string]interface{}
}
type _Connection Connection
// NewConnection instantiates a new Connection 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 NewConnection() *Connection {
this := Connection{}
return &this
}
// NewConnectionWithDefaults instantiates a new Connection 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 NewConnectionWithDefaults() *Connection {
this := Connection{}
return &this
}
// GetClientIp returns the ClientIp field value if set, zero value otherwise.
func (o *Connection) GetClientIp() string {
if o == nil || IsNil(o.ClientIp) {
var ret string
return ret
}
return *o.ClientIp
}
// GetClientIpOk returns a tuple with the ClientIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetClientIpOk() (*string, bool) {
if o == nil || IsNil(o.ClientIp) {
return nil, false
}
return o.ClientIp, true
}
// HasClientIp returns a boolean if a field has been set.
func (o *Connection) HasClientIp() bool {
if o != nil && !IsNil(o.ClientIp) {
return true
}
return false
}
// SetClientIp gets a reference to the given string and assigns it to the ClientIp field.
func (o *Connection) SetClientIp(v string) {
o.ClientIp = &v
}
// GetClientIpDesc returns the ClientIpDesc field value if set, zero value otherwise.
func (o *Connection) GetClientIpDesc() string {
if o == nil || IsNil(o.ClientIpDesc) {
var ret string
return ret
}
return *o.ClientIpDesc
}
// GetClientIpDescOk returns a tuple with the ClientIpDesc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetClientIpDescOk() (*string, bool) {
if o == nil || IsNil(o.ClientIpDesc) {
return nil, false
}
return o.ClientIpDesc, true
}
// HasClientIpDesc returns a boolean if a field has been set.
func (o *Connection) HasClientIpDesc() bool {
if o != nil && !IsNil(o.ClientIpDesc) {
return true
}
return false
}
// SetClientIpDesc gets a reference to the given string and assigns it to the ClientIpDesc field.
func (o *Connection) SetClientIpDesc(v string) {
o.ClientIpDesc = &v
}
// GetCode returns the Code field value if set, zero value otherwise.
func (o *Connection) GetCode() int32 {
if o == nil || IsNil(o.Code) {
var ret int32
return ret
}
return *o.Code
}
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetCodeOk() (*int32, bool) {
if o == nil || IsNil(o.Code) {
return nil, false
}
return o.Code, true
}
// HasCode returns a boolean if a field has been set.
func (o *Connection) HasCode() bool {
if o != nil && !IsNil(o.Code) {
return true
}
return false
}
// SetCode gets a reference to the given int32 and assigns it to the Code field.
func (o *Connection) SetCode(v int32) {
o.Code = &v
}
// GetCommandCount returns the CommandCount field value if set, zero value otherwise.
func (o *Connection) GetCommandCount() int32 {
if o == nil || IsNil(o.CommandCount) {
var ret int32
return ret
}
return *o.CommandCount
}
// GetCommandCountOk returns a tuple with the CommandCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetCommandCountOk() (*int32, bool) {
if o == nil || IsNil(o.CommandCount) {
return nil, false
}
return o.CommandCount, true
}
// HasCommandCount returns a boolean if a field has been set.
func (o *Connection) HasCommandCount() bool {
if o != nil && !IsNil(o.CommandCount) {
return true
}
return false
}
// SetCommandCount gets a reference to the given int32 and assigns it to the CommandCount field.
func (o *Connection) SetCommandCount(v int32) {
o.CommandCount = &v
}
// GetConnectionId returns the ConnectionId field value if set, zero value otherwise.
func (o *Connection) GetConnectionId() string {
if o == nil || IsNil(o.ConnectionId) {
var ret string
return ret
}
return *o.ConnectionId
}
// GetConnectionIdOk returns a tuple with the ConnectionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetConnectionIdOk() (*string, bool) {
if o == nil || IsNil(o.ConnectionId) {
return nil, false
}
return o.ConnectionId, true
}
// HasConnectionId returns a boolean if a field has been set.
func (o *Connection) HasConnectionId() bool {
if o != nil && !IsNil(o.ConnectionId) {
return true
}
return false
}
// SetConnectionId gets a reference to the given string and assigns it to the ConnectionId field.
func (o *Connection) SetConnectionId(v string) {
o.ConnectionId = &v
}
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
func (o *Connection) GetCreatedTime() string {
if o == nil || IsNil(o.CreatedTime) {
var ret string
return ret
}
return *o.CreatedTime
}
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetCreatedTimeOk() (*string, bool) {
if o == nil || IsNil(o.CreatedTime) {
return nil, false
}
return o.CreatedTime, true
}
// HasCreatedTime returns a boolean if a field has been set.
func (o *Connection) HasCreatedTime() bool {
if o != nil && !IsNil(o.CreatedTime) {
return true
}
return false
}
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
func (o *Connection) SetCreatedTime(v string) {
o.CreatedTime = &v
}
// GetCreator returns the Creator field value if set, zero value otherwise.
func (o *Connection) GetCreator() string {
if o == nil || IsNil(o.Creator) {
var ret string
return ret
}
return *o.Creator
}
// GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetCreatorOk() (*string, bool) {
if o == nil || IsNil(o.Creator) {
return nil, false
}
return o.Creator, true
}
// HasCreator returns a boolean if a field has been set.
func (o *Connection) HasCreator() bool {
if o != nil && !IsNil(o.Creator) {
return true
}
return false
}
// SetCreator gets a reference to the given string and assigns it to the Creator field.
func (o *Connection) SetCreator(v string) {
o.Creator = &v
}
// GetEndTime returns the EndTime field value if set, zero value otherwise.
func (o *Connection) GetEndTime() string {
if o == nil || IsNil(o.EndTime) {
var ret string
return ret
}
return *o.EndTime
}
// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetEndTimeOk() (*string, bool) {
if o == nil || IsNil(o.EndTime) {
return nil, false
}
return o.EndTime, true
}
// HasEndTime returns a boolean if a field has been set.
func (o *Connection) HasEndTime() bool {
if o != nil && !IsNil(o.EndTime) {
return true
}
return false
}
// SetEndTime gets a reference to the given string and assigns it to the EndTime field.
func (o *Connection) SetEndTime(v string) {
o.EndTime = &v
}
// GetHeight returns the Height field value if set, zero value otherwise.
func (o *Connection) GetHeight() int32 {
if o == nil || IsNil(o.Height) {
var ret int32
return ret
}
return *o.Height
}
// GetHeightOk returns a tuple with the Height field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetHeightOk() (*int32, bool) {
if o == nil || IsNil(o.Height) {
return nil, false
}
return o.Height, true
}
// HasHeight returns a boolean if a field has been set.
func (o *Connection) HasHeight() bool {
if o != nil && !IsNil(o.Height) {
return true
}
return false
}
// SetHeight gets a reference to the given int32 and assigns it to the Height field.
func (o *Connection) SetHeight(v int32) {
o.Height = &v
}
// GetMessage returns the Message field value if set, zero value otherwise.
func (o *Connection) GetMessage() string {
if o == nil || IsNil(o.Message) {
var ret string
return ret
}
return *o.Message
}
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetMessageOk() (*string, bool) {
if o == nil || IsNil(o.Message) {
return nil, false
}
return o.Message, true
}
// HasMessage returns a boolean if a field has been set.
func (o *Connection) HasMessage() bool {
if o != nil && !IsNil(o.Message) {
return true
}
return false
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *Connection) SetMessage(v string) {
o.Message = &v
}
// GetMode returns the Mode field value if set, zero value otherwise.
func (o *Connection) GetMode() string {
if o == nil || IsNil(o.Mode) {
var ret string
return ret
}
return *o.Mode
}
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetModeOk() (*string, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
return o.Mode, true
}
// HasMode returns a boolean if a field has been set.
func (o *Connection) HasMode() bool {
if o != nil && !IsNil(o.Mode) {
return true
}
return false
}
// SetMode gets a reference to the given string and assigns it to the Mode field.
func (o *Connection) SetMode(v string) {
o.Mode = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *Connection) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *Connection) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *Connection) SetName(v string) {
o.Name = &v
}
// GetNode returns the Node field value if set, zero value otherwise.
func (o *Connection) GetNode() string {
if o == nil || IsNil(o.Node) {
var ret string
return ret
}
return *o.Node
}
// GetNodeOk returns a tuple with the Node field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetNodeOk() (*string, bool) {
if o == nil || IsNil(o.Node) {
return nil, false
}
return o.Node, true
}
// HasNode returns a boolean if a field has been set.
func (o *Connection) HasNode() bool {
if o != nil && !IsNil(o.Node) {
return true
}
return false
}
// SetNode gets a reference to the given string and assigns it to the Node field.
func (o *Connection) SetNode(v string) {
o.Node = &v
}
// GetOperations returns the Operations field value if set, zero value otherwise.
func (o *Connection) GetOperations() []string {
if o == nil || IsNil(o.Operations) {
var ret []string
return ret
}
return o.Operations
}
// GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetOperationsOk() ([]string, bool) {
if o == nil || IsNil(o.Operations) {
return nil, false
}
return o.Operations, true
}
// HasOperations returns a boolean if a field has been set.
func (o *Connection) HasOperations() bool {
if o != nil && !IsNil(o.Operations) {
return true
}
return false
}
// SetOperations gets a reference to the given []string and assigns it to the Operations field.
func (o *Connection) SetOperations(v []string) {
o.Operations = v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *Connection) GetOwner() string {
if o == nil || IsNil(o.Owner) {
var ret string
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetOwnerOk() (*string, bool) {
if o == nil || IsNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *Connection) HasOwner() bool {
if o != nil && !IsNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given string and assigns it to the Owner field.
func (o *Connection) SetOwner(v string) {
o.Owner = &v
}
// GetProtocol returns the Protocol field value if set, zero value otherwise.
func (o *Connection) GetProtocol() string {
if o == nil || IsNil(o.Protocol) {
var ret string
return ret
}
return *o.Protocol
}
// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetProtocolOk() (*string, bool) {
if o == nil || IsNil(o.Protocol) {
return nil, false
}
return o.Protocol, true
}
// HasProtocol returns a boolean if a field has been set.
func (o *Connection) HasProtocol() bool {
if o != nil && !IsNil(o.Protocol) {
return true
}
return false
}
// SetProtocol gets a reference to the given string and assigns it to the Protocol field.
func (o *Connection) SetProtocol(v string) {
o.Protocol = &v
}
// GetRecording returns the Recording field value if set, zero value otherwise.
func (o *Connection) GetRecording() string {
if o == nil || IsNil(o.Recording) {
var ret string
return ret
}
return *o.Recording
}
// GetRecordingOk returns a tuple with the Recording field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetRecordingOk() (*string, bool) {
if o == nil || IsNil(o.Recording) {
return nil, false
}
return o.Recording, true
}
// HasRecording returns a boolean if a field has been set.
func (o *Connection) HasRecording() bool {
if o != nil && !IsNil(o.Recording) {
return true
}
return false
}
// SetRecording gets a reference to the given string and assigns it to the Recording field.
func (o *Connection) SetRecording(v string) {
o.Recording = &v
}
// GetReviewed returns the Reviewed field value if set, zero value otherwise.
func (o *Connection) GetReviewed() bool {
if o == nil || IsNil(o.Reviewed) {
var ret bool
return ret
}
return *o.Reviewed
}
// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetReviewedOk() (*bool, bool) {
if o == nil || IsNil(o.Reviewed) {
return nil, false
}
return o.Reviewed, true
}
// HasReviewed returns a boolean if a field has been set.
func (o *Connection) HasReviewed() bool {
if o != nil && !IsNil(o.Reviewed) {
return true
}
return false
}
// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field.
func (o *Connection) SetReviewed(v bool) {
o.Reviewed = &v
}
// GetStartTime returns the StartTime field value if set, zero value otherwise.
func (o *Connection) GetStartTime() string {
if o == nil || IsNil(o.StartTime) {
var ret string
return ret
}
return *o.StartTime
}
// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetStartTimeOk() (*string, bool) {
if o == nil || IsNil(o.StartTime) {
return nil, false
}
return o.StartTime, true
}
// HasStartTime returns a boolean if a field has been set.
func (o *Connection) HasStartTime() bool {
if o != nil && !IsNil(o.StartTime) {
return true
}
return false
}
// SetStartTime gets a reference to the given string and assigns it to the StartTime field.
func (o *Connection) SetStartTime(v string) {
o.StartTime = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *Connection) GetStatus() string {
if o == nil || IsNil(o.Status) {
var ret string
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetStatusOk() (*string, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *Connection) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *Connection) SetStatus(v string) {
o.Status = &v
}
// GetUserAgent returns the UserAgent field value if set, zero value otherwise.
func (o *Connection) GetUserAgent() string {
if o == nil || IsNil(o.UserAgent) {
var ret string
return ret
}
return *o.UserAgent
}
// GetUserAgentOk returns a tuple with the UserAgent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetUserAgentOk() (*string, bool) {
if o == nil || IsNil(o.UserAgent) {
return nil, false
}
return o.UserAgent, true
}
// HasUserAgent returns a boolean if a field has been set.
func (o *Connection) HasUserAgent() bool {
if o != nil && !IsNil(o.UserAgent) {
return true
}
return false
}
// SetUserAgent gets a reference to the given string and assigns it to the UserAgent field.
func (o *Connection) SetUserAgent(v string) {
o.UserAgent = &v
}
// GetUserAgentDesc returns the UserAgentDesc field value if set, zero value otherwise.
func (o *Connection) GetUserAgentDesc() string {
if o == nil || IsNil(o.UserAgentDesc) {
var ret string
return ret
}
return *o.UserAgentDesc
}
// GetUserAgentDescOk returns a tuple with the UserAgentDesc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetUserAgentDescOk() (*string, bool) {
if o == nil || IsNil(o.UserAgentDesc) {
return nil, false
}
return o.UserAgentDesc, true
}
// HasUserAgentDesc returns a boolean if a field has been set.
func (o *Connection) HasUserAgentDesc() bool {
if o != nil && !IsNil(o.UserAgentDesc) {
return true
}
return false
}
// SetUserAgentDesc gets a reference to the given string and assigns it to the UserAgentDesc field.
func (o *Connection) SetUserAgentDesc(v string) {
o.UserAgentDesc = &v
}
// GetWidth returns the Width field value if set, zero value otherwise.
func (o *Connection) GetWidth() int32 {
if o == nil || IsNil(o.Width) {
var ret int32
return ret
}
return *o.Width
}
// GetWidthOk returns a tuple with the Width field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Connection) GetWidthOk() (*int32, bool) {
if o == nil || IsNil(o.Width) {
return nil, false
}
return o.Width, true
}
// HasWidth returns a boolean if a field has been set.
func (o *Connection) HasWidth() bool {
if o != nil && !IsNil(o.Width) {
return true
}
return false
}
// SetWidth gets a reference to the given int32 and assigns it to the Width field.
func (o *Connection) SetWidth(v int32) {
o.Width = &v
}
func (o Connection) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Connection) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ClientIp) {
toSerialize["clientIp"] = o.ClientIp
}
if !IsNil(o.ClientIpDesc) {
toSerialize["clientIpDesc"] = o.ClientIpDesc
}
if !IsNil(o.Code) {
toSerialize["code"] = o.Code
}
if !IsNil(o.CommandCount) {
toSerialize["commandCount"] = o.CommandCount
}
if !IsNil(o.ConnectionId) {
toSerialize["connectionId"] = o.ConnectionId
}
if !IsNil(o.CreatedTime) {
toSerialize["createdTime"] = o.CreatedTime
}
if !IsNil(o.Creator) {
toSerialize["creator"] = o.Creator
}
if !IsNil(o.EndTime) {
toSerialize["endTime"] = o.EndTime
}
if !IsNil(o.Height) {
toSerialize["height"] = o.Height
}
if !IsNil(o.Message) {
toSerialize["message"] = o.Message
}
if !IsNil(o.Mode) {
toSerialize["mode"] = o.Mode
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Node) {
toSerialize["node"] = o.Node
}
if !IsNil(o.Operations) {
toSerialize["operations"] = o.Operations
}
if !IsNil(o.Owner) {
toSerialize["owner"] = o.Owner
}
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
}
if !IsNil(o.Recording) {
toSerialize["recording"] = o.Recording
}
if !IsNil(o.Reviewed) {
toSerialize["reviewed"] = o.Reviewed
}
if !IsNil(o.StartTime) {
toSerialize["startTime"] = o.StartTime
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.UserAgent) {
toSerialize["userAgent"] = o.UserAgent
}
if !IsNil(o.UserAgentDesc) {
toSerialize["userAgentDesc"] = o.UserAgentDesc
}
if !IsNil(o.Width) {
toSerialize["width"] = o.Width
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *Connection) UnmarshalJSON(data []byte) (err error) {
varConnection := _Connection{}
err = json.Unmarshal(data, &varConnection)
if err != nil {
return err
}
*o = Connection(varConnection)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "clientIp")
delete(additionalProperties, "clientIpDesc")
delete(additionalProperties, "code")
delete(additionalProperties, "commandCount")
delete(additionalProperties, "connectionId")
delete(additionalProperties, "createdTime")
delete(additionalProperties, "creator")
delete(additionalProperties, "endTime")
delete(additionalProperties, "height")
delete(additionalProperties, "message")
delete(additionalProperties, "mode")
delete(additionalProperties, "name")
delete(additionalProperties, "node")
delete(additionalProperties, "operations")
delete(additionalProperties, "owner")
delete(additionalProperties, "protocol")
delete(additionalProperties, "recording")
delete(additionalProperties, "reviewed")
delete(additionalProperties, "startTime")
delete(additionalProperties, "status")
delete(additionalProperties, "userAgent")
delete(additionalProperties, "userAgentDesc")
delete(additionalProperties, "width")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableConnection struct {
value *Connection
isSet bool
}
func (v NullableConnection) Get() *Connection {
return v.value
}
func (v *NullableConnection) Set(val *Connection) {
v.value = val
v.isSet = true
}
func (v NullableConnection) IsSet() bool {
return v.isSet
}
func (v *NullableConnection) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableConnection(val *Connection) *NullableConnection {
return &NullableConnection{value: val, isSet: true}
}
func (v NullableConnection) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableConnection) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}