This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_management_node_single_all_of_attributes.go
304 lines (255 loc) · 9.46 KB
/
model_management_node_single_all_of_attributes.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
/*
Provisioning MnS
OAS 3.0.1 definition of the Provisioning MnS © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_ProvMnS
import (
"encoding/json"
)
// checks if the ManagementNodeSingleAllOfAttributes type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ManagementNodeSingleAllOfAttributes{}
// ManagementNodeSingleAllOfAttributes struct for ManagementNodeSingleAllOfAttributes
type ManagementNodeSingleAllOfAttributes struct {
UserLabel *string `json:"userLabel,omitempty"`
ManagedElements []string `json:"managedElements,omitempty"`
VendorName *string `json:"vendorName,omitempty"`
UserDefinedState *string `json:"userDefinedState,omitempty"`
LocationName *string `json:"locationName,omitempty"`
SwVersion *string `json:"swVersion,omitempty"`
}
// NewManagementNodeSingleAllOfAttributes instantiates a new ManagementNodeSingleAllOfAttributes 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 NewManagementNodeSingleAllOfAttributes() *ManagementNodeSingleAllOfAttributes {
this := ManagementNodeSingleAllOfAttributes{}
return &this
}
// NewManagementNodeSingleAllOfAttributesWithDefaults instantiates a new ManagementNodeSingleAllOfAttributes 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 NewManagementNodeSingleAllOfAttributesWithDefaults() *ManagementNodeSingleAllOfAttributes {
this := ManagementNodeSingleAllOfAttributes{}
return &this
}
// GetUserLabel returns the UserLabel field value if set, zero value otherwise.
func (o *ManagementNodeSingleAllOfAttributes) GetUserLabel() string {
if o == nil || IsNil(o.UserLabel) {
var ret string
return ret
}
return *o.UserLabel
}
// GetUserLabelOk returns a tuple with the UserLabel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagementNodeSingleAllOfAttributes) GetUserLabelOk() (*string, bool) {
if o == nil || IsNil(o.UserLabel) {
return nil, false
}
return o.UserLabel, true
}
// HasUserLabel returns a boolean if a field has been set.
func (o *ManagementNodeSingleAllOfAttributes) HasUserLabel() bool {
if o != nil && !IsNil(o.UserLabel) {
return true
}
return false
}
// SetUserLabel gets a reference to the given string and assigns it to the UserLabel field.
func (o *ManagementNodeSingleAllOfAttributes) SetUserLabel(v string) {
o.UserLabel = &v
}
// GetManagedElements returns the ManagedElements field value if set, zero value otherwise.
func (o *ManagementNodeSingleAllOfAttributes) GetManagedElements() []string {
if o == nil || IsNil(o.ManagedElements) {
var ret []string
return ret
}
return o.ManagedElements
}
// GetManagedElementsOk returns a tuple with the ManagedElements field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagementNodeSingleAllOfAttributes) GetManagedElementsOk() ([]string, bool) {
if o == nil || IsNil(o.ManagedElements) {
return nil, false
}
return o.ManagedElements, true
}
// HasManagedElements returns a boolean if a field has been set.
func (o *ManagementNodeSingleAllOfAttributes) HasManagedElements() bool {
if o != nil && !IsNil(o.ManagedElements) {
return true
}
return false
}
// SetManagedElements gets a reference to the given []string and assigns it to the ManagedElements field.
func (o *ManagementNodeSingleAllOfAttributes) SetManagedElements(v []string) {
o.ManagedElements = v
}
// GetVendorName returns the VendorName field value if set, zero value otherwise.
func (o *ManagementNodeSingleAllOfAttributes) GetVendorName() string {
if o == nil || IsNil(o.VendorName) {
var ret string
return ret
}
return *o.VendorName
}
// GetVendorNameOk returns a tuple with the VendorName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagementNodeSingleAllOfAttributes) GetVendorNameOk() (*string, bool) {
if o == nil || IsNil(o.VendorName) {
return nil, false
}
return o.VendorName, true
}
// HasVendorName returns a boolean if a field has been set.
func (o *ManagementNodeSingleAllOfAttributes) HasVendorName() bool {
if o != nil && !IsNil(o.VendorName) {
return true
}
return false
}
// SetVendorName gets a reference to the given string and assigns it to the VendorName field.
func (o *ManagementNodeSingleAllOfAttributes) SetVendorName(v string) {
o.VendorName = &v
}
// GetUserDefinedState returns the UserDefinedState field value if set, zero value otherwise.
func (o *ManagementNodeSingleAllOfAttributes) GetUserDefinedState() string {
if o == nil || IsNil(o.UserDefinedState) {
var ret string
return ret
}
return *o.UserDefinedState
}
// GetUserDefinedStateOk returns a tuple with the UserDefinedState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagementNodeSingleAllOfAttributes) GetUserDefinedStateOk() (*string, bool) {
if o == nil || IsNil(o.UserDefinedState) {
return nil, false
}
return o.UserDefinedState, true
}
// HasUserDefinedState returns a boolean if a field has been set.
func (o *ManagementNodeSingleAllOfAttributes) HasUserDefinedState() bool {
if o != nil && !IsNil(o.UserDefinedState) {
return true
}
return false
}
// SetUserDefinedState gets a reference to the given string and assigns it to the UserDefinedState field.
func (o *ManagementNodeSingleAllOfAttributes) SetUserDefinedState(v string) {
o.UserDefinedState = &v
}
// GetLocationName returns the LocationName field value if set, zero value otherwise.
func (o *ManagementNodeSingleAllOfAttributes) GetLocationName() string {
if o == nil || IsNil(o.LocationName) {
var ret string
return ret
}
return *o.LocationName
}
// GetLocationNameOk returns a tuple with the LocationName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagementNodeSingleAllOfAttributes) GetLocationNameOk() (*string, bool) {
if o == nil || IsNil(o.LocationName) {
return nil, false
}
return o.LocationName, true
}
// HasLocationName returns a boolean if a field has been set.
func (o *ManagementNodeSingleAllOfAttributes) HasLocationName() bool {
if o != nil && !IsNil(o.LocationName) {
return true
}
return false
}
// SetLocationName gets a reference to the given string and assigns it to the LocationName field.
func (o *ManagementNodeSingleAllOfAttributes) SetLocationName(v string) {
o.LocationName = &v
}
// GetSwVersion returns the SwVersion field value if set, zero value otherwise.
func (o *ManagementNodeSingleAllOfAttributes) GetSwVersion() string {
if o == nil || IsNil(o.SwVersion) {
var ret string
return ret
}
return *o.SwVersion
}
// GetSwVersionOk returns a tuple with the SwVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagementNodeSingleAllOfAttributes) GetSwVersionOk() (*string, bool) {
if o == nil || IsNil(o.SwVersion) {
return nil, false
}
return o.SwVersion, true
}
// HasSwVersion returns a boolean if a field has been set.
func (o *ManagementNodeSingleAllOfAttributes) HasSwVersion() bool {
if o != nil && !IsNil(o.SwVersion) {
return true
}
return false
}
// SetSwVersion gets a reference to the given string and assigns it to the SwVersion field.
func (o *ManagementNodeSingleAllOfAttributes) SetSwVersion(v string) {
o.SwVersion = &v
}
func (o ManagementNodeSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ManagementNodeSingleAllOfAttributes) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.UserLabel) {
toSerialize["userLabel"] = o.UserLabel
}
if !IsNil(o.ManagedElements) {
toSerialize["managedElements"] = o.ManagedElements
}
if !IsNil(o.VendorName) {
toSerialize["vendorName"] = o.VendorName
}
if !IsNil(o.UserDefinedState) {
toSerialize["userDefinedState"] = o.UserDefinedState
}
if !IsNil(o.LocationName) {
toSerialize["locationName"] = o.LocationName
}
if !IsNil(o.SwVersion) {
toSerialize["swVersion"] = o.SwVersion
}
return toSerialize, nil
}
type NullableManagementNodeSingleAllOfAttributes struct {
value *ManagementNodeSingleAllOfAttributes
isSet bool
}
func (v NullableManagementNodeSingleAllOfAttributes) Get() *ManagementNodeSingleAllOfAttributes {
return v.value
}
func (v *NullableManagementNodeSingleAllOfAttributes) Set(val *ManagementNodeSingleAllOfAttributes) {
v.value = val
v.isSet = true
}
func (v NullableManagementNodeSingleAllOfAttributes) IsSet() bool {
return v.isSet
}
func (v *NullableManagementNodeSingleAllOfAttributes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableManagementNodeSingleAllOfAttributes(val *ManagementNodeSingleAllOfAttributes) *NullableManagementNodeSingleAllOfAttributes {
return &NullableManagementNodeSingleAllOfAttributes{value: val, isSet: true}
}
func (v NullableManagementNodeSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableManagementNodeSingleAllOfAttributes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}