-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_applied_setting2.go
278 lines (233 loc) · 8.25 KB
/
model_applied_setting2.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
/*
Citrix Virtual Apps and Desktops Rest API for Developer Portal
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: devportal-onprem-ga
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package citrixorchestration
import (
"encoding/json"
)
// checks if the AppliedSetting2 type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AppliedSetting2{}
// AppliedSetting2 Winning setting information
type AppliedSetting2 struct {
// Setting name
SettingName NullableString `json:"SettingName,omitempty"`
// Setting value
SettingValue NullableString `json:"SettingValue,omitempty"`
// Source GPO for the setting
WinningGpo NullableString `json:"WinningGpo,omitempty"`
// Source policy for the setting
WinningPolicy NullableString `json:"WinningPolicy,omitempty"`
}
// NewAppliedSetting2 instantiates a new AppliedSetting2 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 NewAppliedSetting2() *AppliedSetting2 {
this := AppliedSetting2{}
return &this
}
// NewAppliedSetting2WithDefaults instantiates a new AppliedSetting2 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 NewAppliedSetting2WithDefaults() *AppliedSetting2 {
this := AppliedSetting2{}
return &this
}
// GetSettingName returns the SettingName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppliedSetting2) GetSettingName() string {
if o == nil || IsNil(o.SettingName.Get()) {
var ret string
return ret
}
return *o.SettingName.Get()
}
// GetSettingNameOk returns a tuple with the SettingName field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppliedSetting2) GetSettingNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SettingName.Get(), o.SettingName.IsSet()
}
// HasSettingName returns a boolean if a field has been set.
func (o *AppliedSetting2) HasSettingName() bool {
if o != nil && o.SettingName.IsSet() {
return true
}
return false
}
// SetSettingName gets a reference to the given NullableString and assigns it to the SettingName field.
func (o *AppliedSetting2) SetSettingName(v string) {
o.SettingName.Set(&v)
}
// SetSettingNameNil sets the value for SettingName to be an explicit nil
func (o *AppliedSetting2) SetSettingNameNil() {
o.SettingName.Set(nil)
}
// UnsetSettingName ensures that no value is present for SettingName, not even an explicit nil
func (o *AppliedSetting2) UnsetSettingName() {
o.SettingName.Unset()
}
// GetSettingValue returns the SettingValue field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppliedSetting2) GetSettingValue() string {
if o == nil || IsNil(o.SettingValue.Get()) {
var ret string
return ret
}
return *o.SettingValue.Get()
}
// GetSettingValueOk returns a tuple with the SettingValue field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppliedSetting2) GetSettingValueOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SettingValue.Get(), o.SettingValue.IsSet()
}
// HasSettingValue returns a boolean if a field has been set.
func (o *AppliedSetting2) HasSettingValue() bool {
if o != nil && o.SettingValue.IsSet() {
return true
}
return false
}
// SetSettingValue gets a reference to the given NullableString and assigns it to the SettingValue field.
func (o *AppliedSetting2) SetSettingValue(v string) {
o.SettingValue.Set(&v)
}
// SetSettingValueNil sets the value for SettingValue to be an explicit nil
func (o *AppliedSetting2) SetSettingValueNil() {
o.SettingValue.Set(nil)
}
// UnsetSettingValue ensures that no value is present for SettingValue, not even an explicit nil
func (o *AppliedSetting2) UnsetSettingValue() {
o.SettingValue.Unset()
}
// GetWinningGpo returns the WinningGpo field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppliedSetting2) GetWinningGpo() string {
if o == nil || IsNil(o.WinningGpo.Get()) {
var ret string
return ret
}
return *o.WinningGpo.Get()
}
// GetWinningGpoOk returns a tuple with the WinningGpo field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppliedSetting2) GetWinningGpoOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.WinningGpo.Get(), o.WinningGpo.IsSet()
}
// HasWinningGpo returns a boolean if a field has been set.
func (o *AppliedSetting2) HasWinningGpo() bool {
if o != nil && o.WinningGpo.IsSet() {
return true
}
return false
}
// SetWinningGpo gets a reference to the given NullableString and assigns it to the WinningGpo field.
func (o *AppliedSetting2) SetWinningGpo(v string) {
o.WinningGpo.Set(&v)
}
// SetWinningGpoNil sets the value for WinningGpo to be an explicit nil
func (o *AppliedSetting2) SetWinningGpoNil() {
o.WinningGpo.Set(nil)
}
// UnsetWinningGpo ensures that no value is present for WinningGpo, not even an explicit nil
func (o *AppliedSetting2) UnsetWinningGpo() {
o.WinningGpo.Unset()
}
// GetWinningPolicy returns the WinningPolicy field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppliedSetting2) GetWinningPolicy() string {
if o == nil || IsNil(o.WinningPolicy.Get()) {
var ret string
return ret
}
return *o.WinningPolicy.Get()
}
// GetWinningPolicyOk returns a tuple with the WinningPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppliedSetting2) GetWinningPolicyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.WinningPolicy.Get(), o.WinningPolicy.IsSet()
}
// HasWinningPolicy returns a boolean if a field has been set.
func (o *AppliedSetting2) HasWinningPolicy() bool {
if o != nil && o.WinningPolicy.IsSet() {
return true
}
return false
}
// SetWinningPolicy gets a reference to the given NullableString and assigns it to the WinningPolicy field.
func (o *AppliedSetting2) SetWinningPolicy(v string) {
o.WinningPolicy.Set(&v)
}
// SetWinningPolicyNil sets the value for WinningPolicy to be an explicit nil
func (o *AppliedSetting2) SetWinningPolicyNil() {
o.WinningPolicy.Set(nil)
}
// UnsetWinningPolicy ensures that no value is present for WinningPolicy, not even an explicit nil
func (o *AppliedSetting2) UnsetWinningPolicy() {
o.WinningPolicy.Unset()
}
func (o AppliedSetting2) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AppliedSetting2) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.SettingName.IsSet() {
toSerialize["SettingName"] = o.SettingName.Get()
}
if o.SettingValue.IsSet() {
toSerialize["SettingValue"] = o.SettingValue.Get()
}
if o.WinningGpo.IsSet() {
toSerialize["WinningGpo"] = o.WinningGpo.Get()
}
if o.WinningPolicy.IsSet() {
toSerialize["WinningPolicy"] = o.WinningPolicy.Get()
}
return toSerialize, nil
}
type NullableAppliedSetting2 struct {
value *AppliedSetting2
isSet bool
}
func (v NullableAppliedSetting2) Get() *AppliedSetting2 {
return v.value
}
func (v *NullableAppliedSetting2) Set(val *AppliedSetting2) {
v.value = val
v.isSet = true
}
func (v NullableAppliedSetting2) IsSet() bool {
return v.isSet
}
func (v *NullableAppliedSetting2) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAppliedSetting2(val *AppliedSetting2) *NullableAppliedSetting2 {
return &NullableAppliedSetting2{value: val, isSet: true}
}
func (v NullableAppliedSetting2) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAppliedSetting2) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}