/
model_status_ingest_status_primary_status_pmt_streams_inner_video_clli.go
163 lines (134 loc) · 5.71 KB
/
model_status_ingest_status_primary_status_pmt_streams_inner_video_clli.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
/*
* 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 StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli{}
// StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli struct for StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli
type StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli struct {
// Max content light level in nits.
MaxCll *float64 `json:"max_cll,omitempty" format:"double" doc:"Max content light level in nits."`
// Max frame (pic) average light level in nits.
MaxFall *float64 `json:"max_fall,omitempty" format:"double" doc:"Max frame (pic) average light level in nits."`
}
// NewStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli instantiates a new StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli 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 NewStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli() *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli {
this := StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli{}
return &this
}
// NewStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClliWithDefaults instantiates a new StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli 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 NewStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClliWithDefaults() *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli {
this := StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli{}
return &this
}
// GetMaxCll returns the MaxCll field value if set, zero value otherwise.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) GetMaxCll() float64 {
if o == nil || IsNil(o.MaxCll) {
var ret float64
return ret
}
return *o.MaxCll
}
// GetMaxCllOk returns a tuple with the MaxCll field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) GetMaxCllOk() (*float64, bool) {
if o == nil || IsNil(o.MaxCll) {
return nil, false
}
return o.MaxCll, true
}
// HasMaxCll returns a boolean if a field has been set.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) HasMaxCll() bool {
if o != nil && !IsNil(o.MaxCll) {
return true
}
return false
}
// SetMaxCll gets a reference to the given float64 and assigns it to the MaxCll field.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) SetMaxCll(v float64) {
o.MaxCll = &v
}
// GetMaxFall returns the MaxFall field value if set, zero value otherwise.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) GetMaxFall() float64 {
if o == nil || IsNil(o.MaxFall) {
var ret float64
return ret
}
return *o.MaxFall
}
// GetMaxFallOk returns a tuple with the MaxFall field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) GetMaxFallOk() (*float64, bool) {
if o == nil || IsNil(o.MaxFall) {
return nil, false
}
return o.MaxFall, true
}
// HasMaxFall returns a boolean if a field has been set.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) HasMaxFall() bool {
if o != nil && !IsNil(o.MaxFall) {
return true
}
return false
}
// SetMaxFall gets a reference to the given float64 and assigns it to the MaxFall field.
func (o *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) SetMaxFall(v float64) {
o.MaxFall = &v
}
func (o StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.MaxCll) {
toSerialize["max_cll"] = o.MaxCll
}
if !IsNil(o.MaxFall) {
toSerialize["max_fall"] = o.MaxFall
}
return toSerialize, nil
}
type NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli struct {
value *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli
isSet bool
}
func (v NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) Get() *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli {
return v.value
}
func (v *NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) Set(val *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) {
v.value = val
v.isSet = true
}
func (v NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) IsSet() bool {
return v.isSet
}
func (v *NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli(val *StatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) *NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli {
return &NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli{value: val, isSet: true}
}
func (v NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableStatusIngestStatusPrimaryStatusPmtStreamsInnerVideoClli) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}