This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_eth_flow_description.go
372 lines (314 loc) · 10.5 KB
/
model_eth_flow_description.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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
/*
Nmfaf_3caDataManagement
MFAF 3GPP Consumer Adaptor (3CA) Data Management Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Nmfaf_3caDataManagement
import (
"encoding/json"
)
// checks if the EthFlowDescription type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EthFlowDescription{}
// EthFlowDescription Identifies an Ethernet flow.
type EthFlowDescription struct {
// String identifying a MAC address formatted in the hexadecimal notation according to clause 1.1 and clause 2.1 of RFC 7042.
DestMacAddr *string `json:"destMacAddr,omitempty"`
EthType string `json:"ethType"`
// Defines a packet filter of an IP flow.
FDesc *string `json:"fDesc,omitempty"`
FDir *FlowDirection `json:"fDir,omitempty"`
// String identifying a MAC address formatted in the hexadecimal notation according to clause 1.1 and clause 2.1 of RFC 7042.
SourceMacAddr *string `json:"sourceMacAddr,omitempty"`
VlanTags []string `json:"vlanTags,omitempty"`
// String identifying a MAC address formatted in the hexadecimal notation according to clause 1.1 and clause 2.1 of RFC 7042.
SrcMacAddrEnd *string `json:"srcMacAddrEnd,omitempty"`
// String identifying a MAC address formatted in the hexadecimal notation according to clause 1.1 and clause 2.1 of RFC 7042.
DestMacAddrEnd *string `json:"destMacAddrEnd,omitempty"`
}
// NewEthFlowDescription instantiates a new EthFlowDescription 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 NewEthFlowDescription(ethType string) *EthFlowDescription {
this := EthFlowDescription{}
this.EthType = ethType
return &this
}
// NewEthFlowDescriptionWithDefaults instantiates a new EthFlowDescription 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 NewEthFlowDescriptionWithDefaults() *EthFlowDescription {
this := EthFlowDescription{}
return &this
}
// GetDestMacAddr returns the DestMacAddr field value if set, zero value otherwise.
func (o *EthFlowDescription) GetDestMacAddr() string {
if o == nil || IsNil(o.DestMacAddr) {
var ret string
return ret
}
return *o.DestMacAddr
}
// GetDestMacAddrOk returns a tuple with the DestMacAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetDestMacAddrOk() (*string, bool) {
if o == nil || IsNil(o.DestMacAddr) {
return nil, false
}
return o.DestMacAddr, true
}
// HasDestMacAddr returns a boolean if a field has been set.
func (o *EthFlowDescription) HasDestMacAddr() bool {
if o != nil && !IsNil(o.DestMacAddr) {
return true
}
return false
}
// SetDestMacAddr gets a reference to the given string and assigns it to the DestMacAddr field.
func (o *EthFlowDescription) SetDestMacAddr(v string) {
o.DestMacAddr = &v
}
// GetEthType returns the EthType field value
func (o *EthFlowDescription) GetEthType() string {
if o == nil {
var ret string
return ret
}
return o.EthType
}
// GetEthTypeOk returns a tuple with the EthType field value
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetEthTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.EthType, true
}
// SetEthType sets field value
func (o *EthFlowDescription) SetEthType(v string) {
o.EthType = v
}
// GetFDesc returns the FDesc field value if set, zero value otherwise.
func (o *EthFlowDescription) GetFDesc() string {
if o == nil || IsNil(o.FDesc) {
var ret string
return ret
}
return *o.FDesc
}
// GetFDescOk returns a tuple with the FDesc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetFDescOk() (*string, bool) {
if o == nil || IsNil(o.FDesc) {
return nil, false
}
return o.FDesc, true
}
// HasFDesc returns a boolean if a field has been set.
func (o *EthFlowDescription) HasFDesc() bool {
if o != nil && !IsNil(o.FDesc) {
return true
}
return false
}
// SetFDesc gets a reference to the given string and assigns it to the FDesc field.
func (o *EthFlowDescription) SetFDesc(v string) {
o.FDesc = &v
}
// GetFDir returns the FDir field value if set, zero value otherwise.
func (o *EthFlowDescription) GetFDir() FlowDirection {
if o == nil || IsNil(o.FDir) {
var ret FlowDirection
return ret
}
return *o.FDir
}
// GetFDirOk returns a tuple with the FDir field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetFDirOk() (*FlowDirection, bool) {
if o == nil || IsNil(o.FDir) {
return nil, false
}
return o.FDir, true
}
// HasFDir returns a boolean if a field has been set.
func (o *EthFlowDescription) HasFDir() bool {
if o != nil && !IsNil(o.FDir) {
return true
}
return false
}
// SetFDir gets a reference to the given FlowDirection and assigns it to the FDir field.
func (o *EthFlowDescription) SetFDir(v FlowDirection) {
o.FDir = &v
}
// GetSourceMacAddr returns the SourceMacAddr field value if set, zero value otherwise.
func (o *EthFlowDescription) GetSourceMacAddr() string {
if o == nil || IsNil(o.SourceMacAddr) {
var ret string
return ret
}
return *o.SourceMacAddr
}
// GetSourceMacAddrOk returns a tuple with the SourceMacAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetSourceMacAddrOk() (*string, bool) {
if o == nil || IsNil(o.SourceMacAddr) {
return nil, false
}
return o.SourceMacAddr, true
}
// HasSourceMacAddr returns a boolean if a field has been set.
func (o *EthFlowDescription) HasSourceMacAddr() bool {
if o != nil && !IsNil(o.SourceMacAddr) {
return true
}
return false
}
// SetSourceMacAddr gets a reference to the given string and assigns it to the SourceMacAddr field.
func (o *EthFlowDescription) SetSourceMacAddr(v string) {
o.SourceMacAddr = &v
}
// GetVlanTags returns the VlanTags field value if set, zero value otherwise.
func (o *EthFlowDescription) GetVlanTags() []string {
if o == nil || IsNil(o.VlanTags) {
var ret []string
return ret
}
return o.VlanTags
}
// GetVlanTagsOk returns a tuple with the VlanTags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetVlanTagsOk() ([]string, bool) {
if o == nil || IsNil(o.VlanTags) {
return nil, false
}
return o.VlanTags, true
}
// HasVlanTags returns a boolean if a field has been set.
func (o *EthFlowDescription) HasVlanTags() bool {
if o != nil && !IsNil(o.VlanTags) {
return true
}
return false
}
// SetVlanTags gets a reference to the given []string and assigns it to the VlanTags field.
func (o *EthFlowDescription) SetVlanTags(v []string) {
o.VlanTags = v
}
// GetSrcMacAddrEnd returns the SrcMacAddrEnd field value if set, zero value otherwise.
func (o *EthFlowDescription) GetSrcMacAddrEnd() string {
if o == nil || IsNil(o.SrcMacAddrEnd) {
var ret string
return ret
}
return *o.SrcMacAddrEnd
}
// GetSrcMacAddrEndOk returns a tuple with the SrcMacAddrEnd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetSrcMacAddrEndOk() (*string, bool) {
if o == nil || IsNil(o.SrcMacAddrEnd) {
return nil, false
}
return o.SrcMacAddrEnd, true
}
// HasSrcMacAddrEnd returns a boolean if a field has been set.
func (o *EthFlowDescription) HasSrcMacAddrEnd() bool {
if o != nil && !IsNil(o.SrcMacAddrEnd) {
return true
}
return false
}
// SetSrcMacAddrEnd gets a reference to the given string and assigns it to the SrcMacAddrEnd field.
func (o *EthFlowDescription) SetSrcMacAddrEnd(v string) {
o.SrcMacAddrEnd = &v
}
// GetDestMacAddrEnd returns the DestMacAddrEnd field value if set, zero value otherwise.
func (o *EthFlowDescription) GetDestMacAddrEnd() string {
if o == nil || IsNil(o.DestMacAddrEnd) {
var ret string
return ret
}
return *o.DestMacAddrEnd
}
// GetDestMacAddrEndOk returns a tuple with the DestMacAddrEnd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EthFlowDescription) GetDestMacAddrEndOk() (*string, bool) {
if o == nil || IsNil(o.DestMacAddrEnd) {
return nil, false
}
return o.DestMacAddrEnd, true
}
// HasDestMacAddrEnd returns a boolean if a field has been set.
func (o *EthFlowDescription) HasDestMacAddrEnd() bool {
if o != nil && !IsNil(o.DestMacAddrEnd) {
return true
}
return false
}
// SetDestMacAddrEnd gets a reference to the given string and assigns it to the DestMacAddrEnd field.
func (o *EthFlowDescription) SetDestMacAddrEnd(v string) {
o.DestMacAddrEnd = &v
}
func (o EthFlowDescription) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EthFlowDescription) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DestMacAddr) {
toSerialize["destMacAddr"] = o.DestMacAddr
}
toSerialize["ethType"] = o.EthType
if !IsNil(o.FDesc) {
toSerialize["fDesc"] = o.FDesc
}
if !IsNil(o.FDir) {
toSerialize["fDir"] = o.FDir
}
if !IsNil(o.SourceMacAddr) {
toSerialize["sourceMacAddr"] = o.SourceMacAddr
}
if !IsNil(o.VlanTags) {
toSerialize["vlanTags"] = o.VlanTags
}
if !IsNil(o.SrcMacAddrEnd) {
toSerialize["srcMacAddrEnd"] = o.SrcMacAddrEnd
}
if !IsNil(o.DestMacAddrEnd) {
toSerialize["destMacAddrEnd"] = o.DestMacAddrEnd
}
return toSerialize, nil
}
type NullableEthFlowDescription struct {
value *EthFlowDescription
isSet bool
}
func (v NullableEthFlowDescription) Get() *EthFlowDescription {
return v.value
}
func (v *NullableEthFlowDescription) Set(val *EthFlowDescription) {
v.value = val
v.isSet = true
}
func (v NullableEthFlowDescription) IsSet() bool {
return v.isSet
}
func (v *NullableEthFlowDescription) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEthFlowDescription(val *EthFlowDescription) *NullableEthFlowDescription {
return &NullableEthFlowDescription{value: val, isSet: true}
}
func (v NullableEthFlowDescription) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEthFlowDescription) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}