forked from meraki/dashboard-api-go
/
model_get_network_sm_device_connectivity_200_response_inner.go
164 lines (133 loc) · 5.73 KB
/
model_get_network_sm_device_connectivity_200_response_inner.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
Meraki Dashboard API
A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale. > Date: 02 August, 2023 > > [Recent Updates](https://meraki.io/whats-new/) --- [API Documentation](https://meraki.io/api) [Community Support](https://meraki.io/community) [Meraki Homepage](https://www.meraki.com)
API version: 1.36.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the GetNetworkSmDeviceConnectivity200ResponseInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetNetworkSmDeviceConnectivity200ResponseInner{}
// GetNetworkSmDeviceConnectivity200ResponseInner struct for GetNetworkSmDeviceConnectivity200ResponseInner
type GetNetworkSmDeviceConnectivity200ResponseInner struct {
// When the device was first seen as connected to the internet in each connection.
FirstSeenAt *string `json:"firstSeenAt,omitempty"`
// When the device was last seen as connected to the internet in each connection.
LastSeenAt *string `json:"lastSeenAt,omitempty"`
}
// NewGetNetworkSmDeviceConnectivity200ResponseInner instantiates a new GetNetworkSmDeviceConnectivity200ResponseInner 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 NewGetNetworkSmDeviceConnectivity200ResponseInner() *GetNetworkSmDeviceConnectivity200ResponseInner {
this := GetNetworkSmDeviceConnectivity200ResponseInner{}
return &this
}
// NewGetNetworkSmDeviceConnectivity200ResponseInnerWithDefaults instantiates a new GetNetworkSmDeviceConnectivity200ResponseInner 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 NewGetNetworkSmDeviceConnectivity200ResponseInnerWithDefaults() *GetNetworkSmDeviceConnectivity200ResponseInner {
this := GetNetworkSmDeviceConnectivity200ResponseInner{}
return &this
}
// GetFirstSeenAt returns the FirstSeenAt field value if set, zero value otherwise.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) GetFirstSeenAt() string {
if o == nil || IsNil(o.FirstSeenAt) {
var ret string
return ret
}
return *o.FirstSeenAt
}
// GetFirstSeenAtOk returns a tuple with the FirstSeenAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) GetFirstSeenAtOk() (*string, bool) {
if o == nil || IsNil(o.FirstSeenAt) {
return nil, false
}
return o.FirstSeenAt, true
}
// HasFirstSeenAt returns a boolean if a field has been set.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) HasFirstSeenAt() bool {
if o != nil && !IsNil(o.FirstSeenAt) {
return true
}
return false
}
// SetFirstSeenAt gets a reference to the given string and assigns it to the FirstSeenAt field.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) SetFirstSeenAt(v string) {
o.FirstSeenAt = &v
}
// GetLastSeenAt returns the LastSeenAt field value if set, zero value otherwise.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) GetLastSeenAt() string {
if o == nil || IsNil(o.LastSeenAt) {
var ret string
return ret
}
return *o.LastSeenAt
}
// GetLastSeenAtOk returns a tuple with the LastSeenAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) GetLastSeenAtOk() (*string, bool) {
if o == nil || IsNil(o.LastSeenAt) {
return nil, false
}
return o.LastSeenAt, true
}
// HasLastSeenAt returns a boolean if a field has been set.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) HasLastSeenAt() bool {
if o != nil && !IsNil(o.LastSeenAt) {
return true
}
return false
}
// SetLastSeenAt gets a reference to the given string and assigns it to the LastSeenAt field.
func (o *GetNetworkSmDeviceConnectivity200ResponseInner) SetLastSeenAt(v string) {
o.LastSeenAt = &v
}
func (o GetNetworkSmDeviceConnectivity200ResponseInner) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetNetworkSmDeviceConnectivity200ResponseInner) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.FirstSeenAt) {
toSerialize["firstSeenAt"] = o.FirstSeenAt
}
if !IsNil(o.LastSeenAt) {
toSerialize["lastSeenAt"] = o.LastSeenAt
}
return toSerialize, nil
}
type NullableGetNetworkSmDeviceConnectivity200ResponseInner struct {
value *GetNetworkSmDeviceConnectivity200ResponseInner
isSet bool
}
func (v NullableGetNetworkSmDeviceConnectivity200ResponseInner) Get() *GetNetworkSmDeviceConnectivity200ResponseInner {
return v.value
}
func (v *NullableGetNetworkSmDeviceConnectivity200ResponseInner) Set(val *GetNetworkSmDeviceConnectivity200ResponseInner) {
v.value = val
v.isSet = true
}
func (v NullableGetNetworkSmDeviceConnectivity200ResponseInner) IsSet() bool {
return v.isSet
}
func (v *NullableGetNetworkSmDeviceConnectivity200ResponseInner) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetNetworkSmDeviceConnectivity200ResponseInner(val *GetNetworkSmDeviceConnectivity200ResponseInner) *NullableGetNetworkSmDeviceConnectivity200ResponseInner {
return &NullableGetNetworkSmDeviceConnectivity200ResponseInner{value: val, isSet: true}
}
func (v NullableGetNetworkSmDeviceConnectivity200ResponseInner) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetNetworkSmDeviceConnectivity200ResponseInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}