/
model_get_product_config_response_product_config_inner.go
417 lines (353 loc) · 15.9 KB
/
model_get_product_config_response_product_config_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
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
/*
* WBD Aventus Channels API
*
* API version: 0.0.0
* Contact: live-control-plane-devs@wbd.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package isp
import (
"encoding/json"
)
// checks if the GetProductConfigResponseProductConfigInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetProductConfigResponseProductConfigInner{}
// GetProductConfigResponseProductConfigInner struct for GetProductConfigResponseProductConfigInner
type GetProductConfigResponseProductConfigInner struct {
ArchiveSettings *GetProductConfigResponseProductConfigInnerArchiveSettings `json:"archive_settings,omitempty"`
CollapseConfig *GetProductConfigResponseProductConfigInnerCollapseConfig `json:"collapse_config,omitempty"`
CollapseTriggerConfig *GetProductConfigResponseProductConfigInnerCollapseTriggerConfig `json:"collapse_trigger_config,omitempty"`
EdcPartialPresentations *GetProductConfigResponseProductConfigInnerEdcPartialPresentations `json:"edc_partial_presentations,omitempty"`
// Template to transcode mp4 to hls
EdcTranscodeTemplate *map[string]interface{} `json:"edc_transcode_template,omitempty" doc:"Template to transcode mp4 to hls"`
// Notifiaction settings for collapses
Notifications []GetProductConfigResponseProductConfigInnerNotificationsInner `json:"notifications,omitempty" doc:"Notifiaction settings for collapses"`
// Region represents the general geolocation the product is in.
Region *string `json:"region,omitempty" enum:"US_WEST,US_EAST" doc:"Region represents the general geolocation the product is in."`
// store for product
Store *string `json:"store,omitempty" doc:"store for product"`
WorkflowConfig *GetProductConfigResponseProductConfigInnerWorkflowConfig `json:"workflow_config,omitempty"`
}
// NewGetProductConfigResponseProductConfigInner instantiates a new GetProductConfigResponseProductConfigInner 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 NewGetProductConfigResponseProductConfigInner() *GetProductConfigResponseProductConfigInner {
this := GetProductConfigResponseProductConfigInner{}
return &this
}
// NewGetProductConfigResponseProductConfigInnerWithDefaults instantiates a new GetProductConfigResponseProductConfigInner 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 NewGetProductConfigResponseProductConfigInnerWithDefaults() *GetProductConfigResponseProductConfigInner {
this := GetProductConfigResponseProductConfigInner{}
return &this
}
// GetArchiveSettings returns the ArchiveSettings field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetArchiveSettings() GetProductConfigResponseProductConfigInnerArchiveSettings {
if o == nil || IsNil(o.ArchiveSettings) {
var ret GetProductConfigResponseProductConfigInnerArchiveSettings
return ret
}
return *o.ArchiveSettings
}
// GetArchiveSettingsOk returns a tuple with the ArchiveSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetArchiveSettingsOk() (*GetProductConfigResponseProductConfigInnerArchiveSettings, bool) {
if o == nil || IsNil(o.ArchiveSettings) {
return nil, false
}
return o.ArchiveSettings, true
}
// HasArchiveSettings returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasArchiveSettings() bool {
if o != nil && !IsNil(o.ArchiveSettings) {
return true
}
return false
}
// SetArchiveSettings gets a reference to the given GetProductConfigResponseProductConfigInnerArchiveSettings and assigns it to the ArchiveSettings field.
func (o *GetProductConfigResponseProductConfigInner) SetArchiveSettings(v GetProductConfigResponseProductConfigInnerArchiveSettings) {
o.ArchiveSettings = &v
}
// GetCollapseConfig returns the CollapseConfig field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetCollapseConfig() GetProductConfigResponseProductConfigInnerCollapseConfig {
if o == nil || IsNil(o.CollapseConfig) {
var ret GetProductConfigResponseProductConfigInnerCollapseConfig
return ret
}
return *o.CollapseConfig
}
// GetCollapseConfigOk returns a tuple with the CollapseConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetCollapseConfigOk() (*GetProductConfigResponseProductConfigInnerCollapseConfig, bool) {
if o == nil || IsNil(o.CollapseConfig) {
return nil, false
}
return o.CollapseConfig, true
}
// HasCollapseConfig returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasCollapseConfig() bool {
if o != nil && !IsNil(o.CollapseConfig) {
return true
}
return false
}
// SetCollapseConfig gets a reference to the given GetProductConfigResponseProductConfigInnerCollapseConfig and assigns it to the CollapseConfig field.
func (o *GetProductConfigResponseProductConfigInner) SetCollapseConfig(v GetProductConfigResponseProductConfigInnerCollapseConfig) {
o.CollapseConfig = &v
}
// GetCollapseTriggerConfig returns the CollapseTriggerConfig field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetCollapseTriggerConfig() GetProductConfigResponseProductConfigInnerCollapseTriggerConfig {
if o == nil || IsNil(o.CollapseTriggerConfig) {
var ret GetProductConfigResponseProductConfigInnerCollapseTriggerConfig
return ret
}
return *o.CollapseTriggerConfig
}
// GetCollapseTriggerConfigOk returns a tuple with the CollapseTriggerConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetCollapseTriggerConfigOk() (*GetProductConfigResponseProductConfigInnerCollapseTriggerConfig, bool) {
if o == nil || IsNil(o.CollapseTriggerConfig) {
return nil, false
}
return o.CollapseTriggerConfig, true
}
// HasCollapseTriggerConfig returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasCollapseTriggerConfig() bool {
if o != nil && !IsNil(o.CollapseTriggerConfig) {
return true
}
return false
}
// SetCollapseTriggerConfig gets a reference to the given GetProductConfigResponseProductConfigInnerCollapseTriggerConfig and assigns it to the CollapseTriggerConfig field.
func (o *GetProductConfigResponseProductConfigInner) SetCollapseTriggerConfig(v GetProductConfigResponseProductConfigInnerCollapseTriggerConfig) {
o.CollapseTriggerConfig = &v
}
// GetEdcPartialPresentations returns the EdcPartialPresentations field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetEdcPartialPresentations() GetProductConfigResponseProductConfigInnerEdcPartialPresentations {
if o == nil || IsNil(o.EdcPartialPresentations) {
var ret GetProductConfigResponseProductConfigInnerEdcPartialPresentations
return ret
}
return *o.EdcPartialPresentations
}
// GetEdcPartialPresentationsOk returns a tuple with the EdcPartialPresentations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetEdcPartialPresentationsOk() (*GetProductConfigResponseProductConfigInnerEdcPartialPresentations, bool) {
if o == nil || IsNil(o.EdcPartialPresentations) {
return nil, false
}
return o.EdcPartialPresentations, true
}
// HasEdcPartialPresentations returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasEdcPartialPresentations() bool {
if o != nil && !IsNil(o.EdcPartialPresentations) {
return true
}
return false
}
// SetEdcPartialPresentations gets a reference to the given GetProductConfigResponseProductConfigInnerEdcPartialPresentations and assigns it to the EdcPartialPresentations field.
func (o *GetProductConfigResponseProductConfigInner) SetEdcPartialPresentations(v GetProductConfigResponseProductConfigInnerEdcPartialPresentations) {
o.EdcPartialPresentations = &v
}
// GetEdcTranscodeTemplate returns the EdcTranscodeTemplate field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetEdcTranscodeTemplate() map[string]interface{} {
if o == nil || IsNil(o.EdcTranscodeTemplate) {
var ret map[string]interface{}
return ret
}
return *o.EdcTranscodeTemplate
}
// GetEdcTranscodeTemplateOk returns a tuple with the EdcTranscodeTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetEdcTranscodeTemplateOk() (*map[string]interface{}, bool) {
if o == nil || IsNil(o.EdcTranscodeTemplate) {
return nil, false
}
return o.EdcTranscodeTemplate, true
}
// HasEdcTranscodeTemplate returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasEdcTranscodeTemplate() bool {
if o != nil && !IsNil(o.EdcTranscodeTemplate) {
return true
}
return false
}
// SetEdcTranscodeTemplate gets a reference to the given map[string]interface{} and assigns it to the EdcTranscodeTemplate field.
func (o *GetProductConfigResponseProductConfigInner) SetEdcTranscodeTemplate(v map[string]interface{}) {
o.EdcTranscodeTemplate = &v
}
// GetNotifications returns the Notifications field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetNotifications() []GetProductConfigResponseProductConfigInnerNotificationsInner {
if o == nil || IsNil(o.Notifications) {
var ret []GetProductConfigResponseProductConfigInnerNotificationsInner
return ret
}
return o.Notifications
}
// GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetNotificationsOk() ([]GetProductConfigResponseProductConfigInnerNotificationsInner, bool) {
if o == nil || IsNil(o.Notifications) {
return nil, false
}
return o.Notifications, true
}
// HasNotifications returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasNotifications() bool {
if o != nil && !IsNil(o.Notifications) {
return true
}
return false
}
// SetNotifications gets a reference to the given []GetProductConfigResponseProductConfigInnerNotificationsInner and assigns it to the Notifications field.
func (o *GetProductConfigResponseProductConfigInner) SetNotifications(v []GetProductConfigResponseProductConfigInnerNotificationsInner) {
o.Notifications = v
}
// GetRegion returns the Region field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetRegion() string {
if o == nil || IsNil(o.Region) {
var ret string
return ret
}
return *o.Region
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetRegionOk() (*string, bool) {
if o == nil || IsNil(o.Region) {
return nil, false
}
return o.Region, true
}
// HasRegion returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasRegion() bool {
if o != nil && !IsNil(o.Region) {
return true
}
return false
}
// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *GetProductConfigResponseProductConfigInner) SetRegion(v string) {
o.Region = &v
}
// GetStore returns the Store field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetStore() string {
if o == nil || IsNil(o.Store) {
var ret string
return ret
}
return *o.Store
}
// GetStoreOk returns a tuple with the Store field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetStoreOk() (*string, bool) {
if o == nil || IsNil(o.Store) {
return nil, false
}
return o.Store, true
}
// HasStore returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasStore() bool {
if o != nil && !IsNil(o.Store) {
return true
}
return false
}
// SetStore gets a reference to the given string and assigns it to the Store field.
func (o *GetProductConfigResponseProductConfigInner) SetStore(v string) {
o.Store = &v
}
// GetWorkflowConfig returns the WorkflowConfig field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInner) GetWorkflowConfig() GetProductConfigResponseProductConfigInnerWorkflowConfig {
if o == nil || IsNil(o.WorkflowConfig) {
var ret GetProductConfigResponseProductConfigInnerWorkflowConfig
return ret
}
return *o.WorkflowConfig
}
// GetWorkflowConfigOk returns a tuple with the WorkflowConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInner) GetWorkflowConfigOk() (*GetProductConfigResponseProductConfigInnerWorkflowConfig, bool) {
if o == nil || IsNil(o.WorkflowConfig) {
return nil, false
}
return o.WorkflowConfig, true
}
// HasWorkflowConfig returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInner) HasWorkflowConfig() bool {
if o != nil && !IsNil(o.WorkflowConfig) {
return true
}
return false
}
// SetWorkflowConfig gets a reference to the given GetProductConfigResponseProductConfigInnerWorkflowConfig and assigns it to the WorkflowConfig field.
func (o *GetProductConfigResponseProductConfigInner) SetWorkflowConfig(v GetProductConfigResponseProductConfigInnerWorkflowConfig) {
o.WorkflowConfig = &v
}
func (o GetProductConfigResponseProductConfigInner) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetProductConfigResponseProductConfigInner) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ArchiveSettings) {
toSerialize["archive_settings"] = o.ArchiveSettings
}
if !IsNil(o.CollapseConfig) {
toSerialize["collapse_config"] = o.CollapseConfig
}
if !IsNil(o.CollapseTriggerConfig) {
toSerialize["collapse_trigger_config"] = o.CollapseTriggerConfig
}
if !IsNil(o.EdcPartialPresentations) {
toSerialize["edc_partial_presentations"] = o.EdcPartialPresentations
}
if !IsNil(o.EdcTranscodeTemplate) {
toSerialize["edc_transcode_template"] = o.EdcTranscodeTemplate
}
if !IsNil(o.Notifications) {
toSerialize["notifications"] = o.Notifications
}
if !IsNil(o.Region) {
toSerialize["region"] = o.Region
}
if !IsNil(o.Store) {
toSerialize["store"] = o.Store
}
if !IsNil(o.WorkflowConfig) {
toSerialize["workflow_config"] = o.WorkflowConfig
}
return toSerialize, nil
}
type NullableGetProductConfigResponseProductConfigInner struct {
value *GetProductConfigResponseProductConfigInner
isSet bool
}
func (v NullableGetProductConfigResponseProductConfigInner) Get() *GetProductConfigResponseProductConfigInner {
return v.value
}
func (v *NullableGetProductConfigResponseProductConfigInner) Set(val *GetProductConfigResponseProductConfigInner) {
v.value = val
v.isSet = true
}
func (v NullableGetProductConfigResponseProductConfigInner) IsSet() bool {
return v.isSet
}
func (v *NullableGetProductConfigResponseProductConfigInner) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetProductConfigResponseProductConfigInner(val *GetProductConfigResponseProductConfigInner) *NullableGetProductConfigResponseProductConfigInner {
return &NullableGetProductConfigResponseProductConfigInner{value: val, isSet: true}
}
func (v NullableGetProductConfigResponseProductConfigInner) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetProductConfigResponseProductConfigInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}