This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_file_single_all_of_attributes.go
449 lines (380 loc) · 13 KB
/
model_file_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
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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
/*
NR NRM
OAS 3.0.1 specification of the NR NRM © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 18.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_NrNrm
import (
"encoding/json"
"time"
)
// checks if the FileSingleAllOfAttributes type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FileSingleAllOfAttributes{}
// FileSingleAllOfAttributes struct for FileSingleAllOfAttributes
type FileSingleAllOfAttributes struct {
FileLocation *string `json:"fileLocation,omitempty"`
FileCompression *string `json:"fileCompression,omitempty"`
FileSize *int32 `json:"fileSize,omitempty"`
FileDataType *string `json:"fileDataType,omitempty"`
FileFormat *string `json:"fileFormat,omitempty"`
FileReadyTime *time.Time `json:"fileReadyTime,omitempty"`
FileExpirationTime *time.Time `json:"fileExpirationTime,omitempty"`
FileContent *string `json:"fileContent,omitempty"`
JobRef *string `json:"jobRef,omitempty"`
JobId *string `json:"jobId,omitempty"`
}
// NewFileSingleAllOfAttributes instantiates a new FileSingleAllOfAttributes 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 NewFileSingleAllOfAttributes() *FileSingleAllOfAttributes {
this := FileSingleAllOfAttributes{}
return &this
}
// NewFileSingleAllOfAttributesWithDefaults instantiates a new FileSingleAllOfAttributes 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 NewFileSingleAllOfAttributesWithDefaults() *FileSingleAllOfAttributes {
this := FileSingleAllOfAttributes{}
return &this
}
// GetFileLocation returns the FileLocation field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileLocation() string {
if o == nil || IsNil(o.FileLocation) {
var ret string
return ret
}
return *o.FileLocation
}
// GetFileLocationOk returns a tuple with the FileLocation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileLocationOk() (*string, bool) {
if o == nil || IsNil(o.FileLocation) {
return nil, false
}
return o.FileLocation, true
}
// HasFileLocation returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileLocation() bool {
if o != nil && !IsNil(o.FileLocation) {
return true
}
return false
}
// SetFileLocation gets a reference to the given string and assigns it to the FileLocation field.
func (o *FileSingleAllOfAttributes) SetFileLocation(v string) {
o.FileLocation = &v
}
// GetFileCompression returns the FileCompression field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileCompression() string {
if o == nil || IsNil(o.FileCompression) {
var ret string
return ret
}
return *o.FileCompression
}
// GetFileCompressionOk returns a tuple with the FileCompression field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileCompressionOk() (*string, bool) {
if o == nil || IsNil(o.FileCompression) {
return nil, false
}
return o.FileCompression, true
}
// HasFileCompression returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileCompression() bool {
if o != nil && !IsNil(o.FileCompression) {
return true
}
return false
}
// SetFileCompression gets a reference to the given string and assigns it to the FileCompression field.
func (o *FileSingleAllOfAttributes) SetFileCompression(v string) {
o.FileCompression = &v
}
// GetFileSize returns the FileSize field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileSize() int32 {
if o == nil || IsNil(o.FileSize) {
var ret int32
return ret
}
return *o.FileSize
}
// GetFileSizeOk returns a tuple with the FileSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileSizeOk() (*int32, bool) {
if o == nil || IsNil(o.FileSize) {
return nil, false
}
return o.FileSize, true
}
// HasFileSize returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileSize() bool {
if o != nil && !IsNil(o.FileSize) {
return true
}
return false
}
// SetFileSize gets a reference to the given int32 and assigns it to the FileSize field.
func (o *FileSingleAllOfAttributes) SetFileSize(v int32) {
o.FileSize = &v
}
// GetFileDataType returns the FileDataType field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileDataType() string {
if o == nil || IsNil(o.FileDataType) {
var ret string
return ret
}
return *o.FileDataType
}
// GetFileDataTypeOk returns a tuple with the FileDataType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileDataTypeOk() (*string, bool) {
if o == nil || IsNil(o.FileDataType) {
return nil, false
}
return o.FileDataType, true
}
// HasFileDataType returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileDataType() bool {
if o != nil && !IsNil(o.FileDataType) {
return true
}
return false
}
// SetFileDataType gets a reference to the given string and assigns it to the FileDataType field.
func (o *FileSingleAllOfAttributes) SetFileDataType(v string) {
o.FileDataType = &v
}
// GetFileFormat returns the FileFormat field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileFormat() string {
if o == nil || IsNil(o.FileFormat) {
var ret string
return ret
}
return *o.FileFormat
}
// GetFileFormatOk returns a tuple with the FileFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileFormatOk() (*string, bool) {
if o == nil || IsNil(o.FileFormat) {
return nil, false
}
return o.FileFormat, true
}
// HasFileFormat returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileFormat() bool {
if o != nil && !IsNil(o.FileFormat) {
return true
}
return false
}
// SetFileFormat gets a reference to the given string and assigns it to the FileFormat field.
func (o *FileSingleAllOfAttributes) SetFileFormat(v string) {
o.FileFormat = &v
}
// GetFileReadyTime returns the FileReadyTime field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileReadyTime() time.Time {
if o == nil || IsNil(o.FileReadyTime) {
var ret time.Time
return ret
}
return *o.FileReadyTime
}
// GetFileReadyTimeOk returns a tuple with the FileReadyTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileReadyTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.FileReadyTime) {
return nil, false
}
return o.FileReadyTime, true
}
// HasFileReadyTime returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileReadyTime() bool {
if o != nil && !IsNil(o.FileReadyTime) {
return true
}
return false
}
// SetFileReadyTime gets a reference to the given time.Time and assigns it to the FileReadyTime field.
func (o *FileSingleAllOfAttributes) SetFileReadyTime(v time.Time) {
o.FileReadyTime = &v
}
// GetFileExpirationTime returns the FileExpirationTime field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileExpirationTime() time.Time {
if o == nil || IsNil(o.FileExpirationTime) {
var ret time.Time
return ret
}
return *o.FileExpirationTime
}
// GetFileExpirationTimeOk returns a tuple with the FileExpirationTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileExpirationTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.FileExpirationTime) {
return nil, false
}
return o.FileExpirationTime, true
}
// HasFileExpirationTime returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileExpirationTime() bool {
if o != nil && !IsNil(o.FileExpirationTime) {
return true
}
return false
}
// SetFileExpirationTime gets a reference to the given time.Time and assigns it to the FileExpirationTime field.
func (o *FileSingleAllOfAttributes) SetFileExpirationTime(v time.Time) {
o.FileExpirationTime = &v
}
// GetFileContent returns the FileContent field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetFileContent() string {
if o == nil || IsNil(o.FileContent) {
var ret string
return ret
}
return *o.FileContent
}
// GetFileContentOk returns a tuple with the FileContent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetFileContentOk() (*string, bool) {
if o == nil || IsNil(o.FileContent) {
return nil, false
}
return o.FileContent, true
}
// HasFileContent returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasFileContent() bool {
if o != nil && !IsNil(o.FileContent) {
return true
}
return false
}
// SetFileContent gets a reference to the given string and assigns it to the FileContent field.
func (o *FileSingleAllOfAttributes) SetFileContent(v string) {
o.FileContent = &v
}
// GetJobRef returns the JobRef field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetJobRef() string {
if o == nil || IsNil(o.JobRef) {
var ret string
return ret
}
return *o.JobRef
}
// GetJobRefOk returns a tuple with the JobRef field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetJobRefOk() (*string, bool) {
if o == nil || IsNil(o.JobRef) {
return nil, false
}
return o.JobRef, true
}
// HasJobRef returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasJobRef() bool {
if o != nil && !IsNil(o.JobRef) {
return true
}
return false
}
// SetJobRef gets a reference to the given string and assigns it to the JobRef field.
func (o *FileSingleAllOfAttributes) SetJobRef(v string) {
o.JobRef = &v
}
// GetJobId returns the JobId field value if set, zero value otherwise.
func (o *FileSingleAllOfAttributes) GetJobId() string {
if o == nil || IsNil(o.JobId) {
var ret string
return ret
}
return *o.JobId
}
// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSingleAllOfAttributes) GetJobIdOk() (*string, bool) {
if o == nil || IsNil(o.JobId) {
return nil, false
}
return o.JobId, true
}
// HasJobId returns a boolean if a field has been set.
func (o *FileSingleAllOfAttributes) HasJobId() bool {
if o != nil && !IsNil(o.JobId) {
return true
}
return false
}
// SetJobId gets a reference to the given string and assigns it to the JobId field.
func (o *FileSingleAllOfAttributes) SetJobId(v string) {
o.JobId = &v
}
func (o FileSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o FileSingleAllOfAttributes) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.FileLocation) {
toSerialize["fileLocation"] = o.FileLocation
}
if !IsNil(o.FileCompression) {
toSerialize["fileCompression"] = o.FileCompression
}
if !IsNil(o.FileSize) {
toSerialize["fileSize"] = o.FileSize
}
if !IsNil(o.FileDataType) {
toSerialize["fileDataType"] = o.FileDataType
}
if !IsNil(o.FileFormat) {
toSerialize["fileFormat"] = o.FileFormat
}
if !IsNil(o.FileReadyTime) {
toSerialize["fileReadyTime"] = o.FileReadyTime
}
if !IsNil(o.FileExpirationTime) {
toSerialize["fileExpirationTime"] = o.FileExpirationTime
}
if !IsNil(o.FileContent) {
toSerialize["fileContent"] = o.FileContent
}
if !IsNil(o.JobRef) {
toSerialize["jobRef"] = o.JobRef
}
if !IsNil(o.JobId) {
toSerialize["jobId"] = o.JobId
}
return toSerialize, nil
}
type NullableFileSingleAllOfAttributes struct {
value *FileSingleAllOfAttributes
isSet bool
}
func (v NullableFileSingleAllOfAttributes) Get() *FileSingleAllOfAttributes {
return v.value
}
func (v *NullableFileSingleAllOfAttributes) Set(val *FileSingleAllOfAttributes) {
v.value = val
v.isSet = true
}
func (v NullableFileSingleAllOfAttributes) IsSet() bool {
return v.isSet
}
func (v *NullableFileSingleAllOfAttributes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFileSingleAllOfAttributes(val *FileSingleAllOfAttributes) *NullableFileSingleAllOfAttributes {
return &NullableFileSingleAllOfAttributes{value: val, isSet: true}
}
func (v NullableFileSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableFileSingleAllOfAttributes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}