-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_get_product_config_response_product_config_inner_collapse_config.go
269 lines (225 loc) · 10.6 KB
/
model_get_product_config_response_product_config_inner_collapse_config.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
/*
* 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 GetProductConfigResponseProductConfigInnerCollapseConfig type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetProductConfigResponseProductConfigInnerCollapseConfig{}
// GetProductConfigResponseProductConfigInnerCollapseConfig Collapse filter options
type GetProductConfigResponseProductConfigInnerCollapseConfig struct {
AutoCopyMp4 *bool `json:"auto_copy_mp4,omitempty"`
AutoCreateMp4 *bool `json:"auto_create_mp4,omitempty"`
M3u8FiltersConfig *GetProductConfigResponseProductConfigInnerCollapseConfigM3u8FiltersConfig `json:"m3u8_filters_config,omitempty"`
UsePerUrlCollapseNotification *bool `json:"use_per_url_collapse_notification,omitempty"`
V2FiltersConfig *GetProductConfigResponseProductConfigInnerCollapseConfigV2FiltersConfig `json:"v2_filters_config,omitempty"`
}
// NewGetProductConfigResponseProductConfigInnerCollapseConfig instantiates a new GetProductConfigResponseProductConfigInnerCollapseConfig 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 NewGetProductConfigResponseProductConfigInnerCollapseConfig() *GetProductConfigResponseProductConfigInnerCollapseConfig {
this := GetProductConfigResponseProductConfigInnerCollapseConfig{}
return &this
}
// NewGetProductConfigResponseProductConfigInnerCollapseConfigWithDefaults instantiates a new GetProductConfigResponseProductConfigInnerCollapseConfig 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 NewGetProductConfigResponseProductConfigInnerCollapseConfigWithDefaults() *GetProductConfigResponseProductConfigInnerCollapseConfig {
this := GetProductConfigResponseProductConfigInnerCollapseConfig{}
return &this
}
// GetAutoCopyMp4 returns the AutoCopyMp4 field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetAutoCopyMp4() bool {
if o == nil || IsNil(o.AutoCopyMp4) {
var ret bool
return ret
}
return *o.AutoCopyMp4
}
// GetAutoCopyMp4Ok returns a tuple with the AutoCopyMp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetAutoCopyMp4Ok() (*bool, bool) {
if o == nil || IsNil(o.AutoCopyMp4) {
return nil, false
}
return o.AutoCopyMp4, true
}
// HasAutoCopyMp4 returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) HasAutoCopyMp4() bool {
if o != nil && !IsNil(o.AutoCopyMp4) {
return true
}
return false
}
// SetAutoCopyMp4 gets a reference to the given bool and assigns it to the AutoCopyMp4 field.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) SetAutoCopyMp4(v bool) {
o.AutoCopyMp4 = &v
}
// GetAutoCreateMp4 returns the AutoCreateMp4 field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetAutoCreateMp4() bool {
if o == nil || IsNil(o.AutoCreateMp4) {
var ret bool
return ret
}
return *o.AutoCreateMp4
}
// GetAutoCreateMp4Ok returns a tuple with the AutoCreateMp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetAutoCreateMp4Ok() (*bool, bool) {
if o == nil || IsNil(o.AutoCreateMp4) {
return nil, false
}
return o.AutoCreateMp4, true
}
// HasAutoCreateMp4 returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) HasAutoCreateMp4() bool {
if o != nil && !IsNil(o.AutoCreateMp4) {
return true
}
return false
}
// SetAutoCreateMp4 gets a reference to the given bool and assigns it to the AutoCreateMp4 field.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) SetAutoCreateMp4(v bool) {
o.AutoCreateMp4 = &v
}
// GetM3u8FiltersConfig returns the M3u8FiltersConfig field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetM3u8FiltersConfig() GetProductConfigResponseProductConfigInnerCollapseConfigM3u8FiltersConfig {
if o == nil || IsNil(o.M3u8FiltersConfig) {
var ret GetProductConfigResponseProductConfigInnerCollapseConfigM3u8FiltersConfig
return ret
}
return *o.M3u8FiltersConfig
}
// GetM3u8FiltersConfigOk returns a tuple with the M3u8FiltersConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetM3u8FiltersConfigOk() (*GetProductConfigResponseProductConfigInnerCollapseConfigM3u8FiltersConfig, bool) {
if o == nil || IsNil(o.M3u8FiltersConfig) {
return nil, false
}
return o.M3u8FiltersConfig, true
}
// HasM3u8FiltersConfig returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) HasM3u8FiltersConfig() bool {
if o != nil && !IsNil(o.M3u8FiltersConfig) {
return true
}
return false
}
// SetM3u8FiltersConfig gets a reference to the given GetProductConfigResponseProductConfigInnerCollapseConfigM3u8FiltersConfig and assigns it to the M3u8FiltersConfig field.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) SetM3u8FiltersConfig(v GetProductConfigResponseProductConfigInnerCollapseConfigM3u8FiltersConfig) {
o.M3u8FiltersConfig = &v
}
// GetUsePerUrlCollapseNotification returns the UsePerUrlCollapseNotification field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetUsePerUrlCollapseNotification() bool {
if o == nil || IsNil(o.UsePerUrlCollapseNotification) {
var ret bool
return ret
}
return *o.UsePerUrlCollapseNotification
}
// GetUsePerUrlCollapseNotificationOk returns a tuple with the UsePerUrlCollapseNotification field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetUsePerUrlCollapseNotificationOk() (*bool, bool) {
if o == nil || IsNil(o.UsePerUrlCollapseNotification) {
return nil, false
}
return o.UsePerUrlCollapseNotification, true
}
// HasUsePerUrlCollapseNotification returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) HasUsePerUrlCollapseNotification() bool {
if o != nil && !IsNil(o.UsePerUrlCollapseNotification) {
return true
}
return false
}
// SetUsePerUrlCollapseNotification gets a reference to the given bool and assigns it to the UsePerUrlCollapseNotification field.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) SetUsePerUrlCollapseNotification(v bool) {
o.UsePerUrlCollapseNotification = &v
}
// GetV2FiltersConfig returns the V2FiltersConfig field value if set, zero value otherwise.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetV2FiltersConfig() GetProductConfigResponseProductConfigInnerCollapseConfigV2FiltersConfig {
if o == nil || IsNil(o.V2FiltersConfig) {
var ret GetProductConfigResponseProductConfigInnerCollapseConfigV2FiltersConfig
return ret
}
return *o.V2FiltersConfig
}
// GetV2FiltersConfigOk returns a tuple with the V2FiltersConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) GetV2FiltersConfigOk() (*GetProductConfigResponseProductConfigInnerCollapseConfigV2FiltersConfig, bool) {
if o == nil || IsNil(o.V2FiltersConfig) {
return nil, false
}
return o.V2FiltersConfig, true
}
// HasV2FiltersConfig returns a boolean if a field has been set.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) HasV2FiltersConfig() bool {
if o != nil && !IsNil(o.V2FiltersConfig) {
return true
}
return false
}
// SetV2FiltersConfig gets a reference to the given GetProductConfigResponseProductConfigInnerCollapseConfigV2FiltersConfig and assigns it to the V2FiltersConfig field.
func (o *GetProductConfigResponseProductConfigInnerCollapseConfig) SetV2FiltersConfig(v GetProductConfigResponseProductConfigInnerCollapseConfigV2FiltersConfig) {
o.V2FiltersConfig = &v
}
func (o GetProductConfigResponseProductConfigInnerCollapseConfig) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetProductConfigResponseProductConfigInnerCollapseConfig) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AutoCopyMp4) {
toSerialize["auto_copy_mp4"] = o.AutoCopyMp4
}
if !IsNil(o.AutoCreateMp4) {
toSerialize["auto_create_mp4"] = o.AutoCreateMp4
}
if !IsNil(o.M3u8FiltersConfig) {
toSerialize["m3u8_filters_config"] = o.M3u8FiltersConfig
}
if !IsNil(o.UsePerUrlCollapseNotification) {
toSerialize["use_per_url_collapse_notification"] = o.UsePerUrlCollapseNotification
}
if !IsNil(o.V2FiltersConfig) {
toSerialize["v2_filters_config"] = o.V2FiltersConfig
}
return toSerialize, nil
}
type NullableGetProductConfigResponseProductConfigInnerCollapseConfig struct {
value *GetProductConfigResponseProductConfigInnerCollapseConfig
isSet bool
}
func (v NullableGetProductConfigResponseProductConfigInnerCollapseConfig) Get() *GetProductConfigResponseProductConfigInnerCollapseConfig {
return v.value
}
func (v *NullableGetProductConfigResponseProductConfigInnerCollapseConfig) Set(val *GetProductConfigResponseProductConfigInnerCollapseConfig) {
v.value = val
v.isSet = true
}
func (v NullableGetProductConfigResponseProductConfigInnerCollapseConfig) IsSet() bool {
return v.isSet
}
func (v *NullableGetProductConfigResponseProductConfigInnerCollapseConfig) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetProductConfigResponseProductConfigInnerCollapseConfig(val *GetProductConfigResponseProductConfigInnerCollapseConfig) *NullableGetProductConfigResponseProductConfigInnerCollapseConfig {
return &NullableGetProductConfigResponseProductConfigInnerCollapseConfig{value: val, isSet: true}
}
func (v NullableGetProductConfigResponseProductConfigInnerCollapseConfig) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetProductConfigResponseProductConfigInnerCollapseConfig) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}