-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_channel_packaging_packagers_value_content_protection.go
342 lines (288 loc) · 12.3 KB
/
model_channel_packaging_packagers_value_content_protection.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
/*
* 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 ChannelPackagingPackagersValueContentProtection type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ChannelPackagingPackagersValueContentProtection{}
// ChannelPackagingPackagersValueContentProtection Configures how to protect packaged media segments.
type ChannelPackagingPackagersValueContentProtection struct {
Atlas *ChannelPackagingPackagersValueContentProtectionAtlas `json:"atlas,omitempty"`
BulkFile *ChannelPackagingPackagersValueContentProtectionBulkFile `json:"bulk_file,omitempty"`
Common *ChannelPackagingPackagersValueContentProtectionCommon `json:"common,omitempty"`
Cpix *ChannelPackagingPackagersValueContentProtectionCpix `json:"cpix,omitempty"`
KeyRotation *ChannelPackagingPackagersValueContentProtectionKeyRotation `json:"key_rotation,omitempty"`
// Only one of ['bulk_file', 'sample_aes', 'common'] may be set.
SampleAes *map[string]interface{} `json:"sample_aes,omitempty" doc:"Only one of ['bulk_file', 'sample_aes', 'common'] may be set."`
Simple *ChannelPackagingPackagersValueContentProtectionSimple `json:"simple,omitempty"`
}
// NewChannelPackagingPackagersValueContentProtection instantiates a new ChannelPackagingPackagersValueContentProtection 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 NewChannelPackagingPackagersValueContentProtection() *ChannelPackagingPackagersValueContentProtection {
this := ChannelPackagingPackagersValueContentProtection{}
return &this
}
// NewChannelPackagingPackagersValueContentProtectionWithDefaults instantiates a new ChannelPackagingPackagersValueContentProtection 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 NewChannelPackagingPackagersValueContentProtectionWithDefaults() *ChannelPackagingPackagersValueContentProtection {
this := ChannelPackagingPackagersValueContentProtection{}
return &this
}
// GetAtlas returns the Atlas field value if set, zero value otherwise.
func (o *ChannelPackagingPackagersValueContentProtection) GetAtlas() ChannelPackagingPackagersValueContentProtectionAtlas {
if o == nil || IsNil(o.Atlas) {
var ret ChannelPackagingPackagersValueContentProtectionAtlas
return ret
}
return *o.Atlas
}
// GetAtlasOk returns a tuple with the Atlas field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPackagingPackagersValueContentProtection) GetAtlasOk() (*ChannelPackagingPackagersValueContentProtectionAtlas, bool) {
if o == nil || IsNil(o.Atlas) {
return nil, false
}
return o.Atlas, true
}
// HasAtlas returns a boolean if a field has been set.
func (o *ChannelPackagingPackagersValueContentProtection) HasAtlas() bool {
if o != nil && !IsNil(o.Atlas) {
return true
}
return false
}
// SetAtlas gets a reference to the given ChannelPackagingPackagersValueContentProtectionAtlas and assigns it to the Atlas field.
func (o *ChannelPackagingPackagersValueContentProtection) SetAtlas(v ChannelPackagingPackagersValueContentProtectionAtlas) {
o.Atlas = &v
}
// GetBulkFile returns the BulkFile field value if set, zero value otherwise.
func (o *ChannelPackagingPackagersValueContentProtection) GetBulkFile() ChannelPackagingPackagersValueContentProtectionBulkFile {
if o == nil || IsNil(o.BulkFile) {
var ret ChannelPackagingPackagersValueContentProtectionBulkFile
return ret
}
return *o.BulkFile
}
// GetBulkFileOk returns a tuple with the BulkFile field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPackagingPackagersValueContentProtection) GetBulkFileOk() (*ChannelPackagingPackagersValueContentProtectionBulkFile, bool) {
if o == nil || IsNil(o.BulkFile) {
return nil, false
}
return o.BulkFile, true
}
// HasBulkFile returns a boolean if a field has been set.
func (o *ChannelPackagingPackagersValueContentProtection) HasBulkFile() bool {
if o != nil && !IsNil(o.BulkFile) {
return true
}
return false
}
// SetBulkFile gets a reference to the given ChannelPackagingPackagersValueContentProtectionBulkFile and assigns it to the BulkFile field.
func (o *ChannelPackagingPackagersValueContentProtection) SetBulkFile(v ChannelPackagingPackagersValueContentProtectionBulkFile) {
o.BulkFile = &v
}
// GetCommon returns the Common field value if set, zero value otherwise.
func (o *ChannelPackagingPackagersValueContentProtection) GetCommon() ChannelPackagingPackagersValueContentProtectionCommon {
if o == nil || IsNil(o.Common) {
var ret ChannelPackagingPackagersValueContentProtectionCommon
return ret
}
return *o.Common
}
// GetCommonOk returns a tuple with the Common field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPackagingPackagersValueContentProtection) GetCommonOk() (*ChannelPackagingPackagersValueContentProtectionCommon, bool) {
if o == nil || IsNil(o.Common) {
return nil, false
}
return o.Common, true
}
// HasCommon returns a boolean if a field has been set.
func (o *ChannelPackagingPackagersValueContentProtection) HasCommon() bool {
if o != nil && !IsNil(o.Common) {
return true
}
return false
}
// SetCommon gets a reference to the given ChannelPackagingPackagersValueContentProtectionCommon and assigns it to the Common field.
func (o *ChannelPackagingPackagersValueContentProtection) SetCommon(v ChannelPackagingPackagersValueContentProtectionCommon) {
o.Common = &v
}
// GetCpix returns the Cpix field value if set, zero value otherwise.
func (o *ChannelPackagingPackagersValueContentProtection) GetCpix() ChannelPackagingPackagersValueContentProtectionCpix {
if o == nil || IsNil(o.Cpix) {
var ret ChannelPackagingPackagersValueContentProtectionCpix
return ret
}
return *o.Cpix
}
// GetCpixOk returns a tuple with the Cpix field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPackagingPackagersValueContentProtection) GetCpixOk() (*ChannelPackagingPackagersValueContentProtectionCpix, bool) {
if o == nil || IsNil(o.Cpix) {
return nil, false
}
return o.Cpix, true
}
// HasCpix returns a boolean if a field has been set.
func (o *ChannelPackagingPackagersValueContentProtection) HasCpix() bool {
if o != nil && !IsNil(o.Cpix) {
return true
}
return false
}
// SetCpix gets a reference to the given ChannelPackagingPackagersValueContentProtectionCpix and assigns it to the Cpix field.
func (o *ChannelPackagingPackagersValueContentProtection) SetCpix(v ChannelPackagingPackagersValueContentProtectionCpix) {
o.Cpix = &v
}
// GetKeyRotation returns the KeyRotation field value if set, zero value otherwise.
func (o *ChannelPackagingPackagersValueContentProtection) GetKeyRotation() ChannelPackagingPackagersValueContentProtectionKeyRotation {
if o == nil || IsNil(o.KeyRotation) {
var ret ChannelPackagingPackagersValueContentProtectionKeyRotation
return ret
}
return *o.KeyRotation
}
// GetKeyRotationOk returns a tuple with the KeyRotation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPackagingPackagersValueContentProtection) GetKeyRotationOk() (*ChannelPackagingPackagersValueContentProtectionKeyRotation, bool) {
if o == nil || IsNil(o.KeyRotation) {
return nil, false
}
return o.KeyRotation, true
}
// HasKeyRotation returns a boolean if a field has been set.
func (o *ChannelPackagingPackagersValueContentProtection) HasKeyRotation() bool {
if o != nil && !IsNil(o.KeyRotation) {
return true
}
return false
}
// SetKeyRotation gets a reference to the given ChannelPackagingPackagersValueContentProtectionKeyRotation and assigns it to the KeyRotation field.
func (o *ChannelPackagingPackagersValueContentProtection) SetKeyRotation(v ChannelPackagingPackagersValueContentProtectionKeyRotation) {
o.KeyRotation = &v
}
// GetSampleAes returns the SampleAes field value if set, zero value otherwise.
func (o *ChannelPackagingPackagersValueContentProtection) GetSampleAes() map[string]interface{} {
if o == nil || IsNil(o.SampleAes) {
var ret map[string]interface{}
return ret
}
return *o.SampleAes
}
// GetSampleAesOk returns a tuple with the SampleAes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPackagingPackagersValueContentProtection) GetSampleAesOk() (*map[string]interface{}, bool) {
if o == nil || IsNil(o.SampleAes) {
return nil, false
}
return o.SampleAes, true
}
// HasSampleAes returns a boolean if a field has been set.
func (o *ChannelPackagingPackagersValueContentProtection) HasSampleAes() bool {
if o != nil && !IsNil(o.SampleAes) {
return true
}
return false
}
// SetSampleAes gets a reference to the given map[string]interface{} and assigns it to the SampleAes field.
func (o *ChannelPackagingPackagersValueContentProtection) SetSampleAes(v map[string]interface{}) {
o.SampleAes = &v
}
// GetSimple returns the Simple field value if set, zero value otherwise.
func (o *ChannelPackagingPackagersValueContentProtection) GetSimple() ChannelPackagingPackagersValueContentProtectionSimple {
if o == nil || IsNil(o.Simple) {
var ret ChannelPackagingPackagersValueContentProtectionSimple
return ret
}
return *o.Simple
}
// GetSimpleOk returns a tuple with the Simple field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPackagingPackagersValueContentProtection) GetSimpleOk() (*ChannelPackagingPackagersValueContentProtectionSimple, bool) {
if o == nil || IsNil(o.Simple) {
return nil, false
}
return o.Simple, true
}
// HasSimple returns a boolean if a field has been set.
func (o *ChannelPackagingPackagersValueContentProtection) HasSimple() bool {
if o != nil && !IsNil(o.Simple) {
return true
}
return false
}
// SetSimple gets a reference to the given ChannelPackagingPackagersValueContentProtectionSimple and assigns it to the Simple field.
func (o *ChannelPackagingPackagersValueContentProtection) SetSimple(v ChannelPackagingPackagersValueContentProtectionSimple) {
o.Simple = &v
}
func (o ChannelPackagingPackagersValueContentProtection) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ChannelPackagingPackagersValueContentProtection) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Atlas) {
toSerialize["atlas"] = o.Atlas
}
if !IsNil(o.BulkFile) {
toSerialize["bulk_file"] = o.BulkFile
}
if !IsNil(o.Common) {
toSerialize["common"] = o.Common
}
if !IsNil(o.Cpix) {
toSerialize["cpix"] = o.Cpix
}
if !IsNil(o.KeyRotation) {
toSerialize["key_rotation"] = o.KeyRotation
}
if !IsNil(o.SampleAes) {
toSerialize["sample_aes"] = o.SampleAes
}
if !IsNil(o.Simple) {
toSerialize["simple"] = o.Simple
}
return toSerialize, nil
}
type NullableChannelPackagingPackagersValueContentProtection struct {
value *ChannelPackagingPackagersValueContentProtection
isSet bool
}
func (v NullableChannelPackagingPackagersValueContentProtection) Get() *ChannelPackagingPackagersValueContentProtection {
return v.value
}
func (v *NullableChannelPackagingPackagersValueContentProtection) Set(val *ChannelPackagingPackagersValueContentProtection) {
v.value = val
v.isSet = true
}
func (v NullableChannelPackagingPackagersValueContentProtection) IsSet() bool {
return v.isSet
}
func (v *NullableChannelPackagingPackagersValueContentProtection) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableChannelPackagingPackagersValueContentProtection(val *ChannelPackagingPackagersValueContentProtection) *NullableChannelPackagingPackagersValueContentProtection {
return &NullableChannelPackagingPackagersValueContentProtection{value: val, isSet: true}
}
func (v NullableChannelPackagingPackagersValueContentProtection) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableChannelPackagingPackagersValueContentProtection) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}