-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_filter_detail.go
351 lines (296 loc) · 9.96 KB
/
model_filter_detail.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
/*
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 FilterDetail type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FilterDetail{}
// FilterDetail Detailed information about filter.
type FilterDetail struct {
FilterType *FilterType2 `json:"FilterType,omitempty"`
// Filter value, if available.
FilterValue NullableString `json:"FilterValue,omitempty"`
// Indicate if the filter is a match.
IsMatched *bool `json:"IsMatched,omitempty"`
// The filter data. This may need to get translated to a user readable string.
FilterData NullableString `json:"FilterData,omitempty"`
// Valid only for the branch repeater filter and access control filter. Indicate the mode or condition.
IsWithout NullableBool `json:"IsWithout,omitempty"`
// Valid only for the access control filter. The access gateway.
Gateway NullableString `json:"Gateway,omitempty"`
}
// NewFilterDetail instantiates a new FilterDetail 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 NewFilterDetail() *FilterDetail {
this := FilterDetail{}
return &this
}
// NewFilterDetailWithDefaults instantiates a new FilterDetail 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 NewFilterDetailWithDefaults() *FilterDetail {
this := FilterDetail{}
return &this
}
// GetFilterType returns the FilterType field value if set, zero value otherwise.
func (o *FilterDetail) GetFilterType() FilterType2 {
if o == nil || IsNil(o.FilterType) {
var ret FilterType2
return ret
}
return *o.FilterType
}
// GetFilterTypeOk returns a tuple with the FilterType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterDetail) GetFilterTypeOk() (*FilterType2, bool) {
if o == nil || IsNil(o.FilterType) {
return nil, false
}
return o.FilterType, true
}
// HasFilterType returns a boolean if a field has been set.
func (o *FilterDetail) HasFilterType() bool {
if o != nil && !IsNil(o.FilterType) {
return true
}
return false
}
// SetFilterType gets a reference to the given FilterType2 and assigns it to the FilterType field.
func (o *FilterDetail) SetFilterType(v FilterType2) {
o.FilterType = &v
}
// GetFilterValue returns the FilterValue field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FilterDetail) GetFilterValue() string {
if o == nil || IsNil(o.FilterValue.Get()) {
var ret string
return ret
}
return *o.FilterValue.Get()
}
// GetFilterValueOk returns a tuple with the FilterValue 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 *FilterDetail) GetFilterValueOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.FilterValue.Get(), o.FilterValue.IsSet()
}
// HasFilterValue returns a boolean if a field has been set.
func (o *FilterDetail) HasFilterValue() bool {
if o != nil && o.FilterValue.IsSet() {
return true
}
return false
}
// SetFilterValue gets a reference to the given NullableString and assigns it to the FilterValue field.
func (o *FilterDetail) SetFilterValue(v string) {
o.FilterValue.Set(&v)
}
// SetFilterValueNil sets the value for FilterValue to be an explicit nil
func (o *FilterDetail) SetFilterValueNil() {
o.FilterValue.Set(nil)
}
// UnsetFilterValue ensures that no value is present for FilterValue, not even an explicit nil
func (o *FilterDetail) UnsetFilterValue() {
o.FilterValue.Unset()
}
// GetIsMatched returns the IsMatched field value if set, zero value otherwise.
func (o *FilterDetail) GetIsMatched() bool {
if o == nil || IsNil(o.IsMatched) {
var ret bool
return ret
}
return *o.IsMatched
}
// GetIsMatchedOk returns a tuple with the IsMatched field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterDetail) GetIsMatchedOk() (*bool, bool) {
if o == nil || IsNil(o.IsMatched) {
return nil, false
}
return o.IsMatched, true
}
// HasIsMatched returns a boolean if a field has been set.
func (o *FilterDetail) HasIsMatched() bool {
if o != nil && !IsNil(o.IsMatched) {
return true
}
return false
}
// SetIsMatched gets a reference to the given bool and assigns it to the IsMatched field.
func (o *FilterDetail) SetIsMatched(v bool) {
o.IsMatched = &v
}
// GetFilterData returns the FilterData field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FilterDetail) GetFilterData() string {
if o == nil || IsNil(o.FilterData.Get()) {
var ret string
return ret
}
return *o.FilterData.Get()
}
// GetFilterDataOk returns a tuple with the FilterData 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 *FilterDetail) GetFilterDataOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.FilterData.Get(), o.FilterData.IsSet()
}
// HasFilterData returns a boolean if a field has been set.
func (o *FilterDetail) HasFilterData() bool {
if o != nil && o.FilterData.IsSet() {
return true
}
return false
}
// SetFilterData gets a reference to the given NullableString and assigns it to the FilterData field.
func (o *FilterDetail) SetFilterData(v string) {
o.FilterData.Set(&v)
}
// SetFilterDataNil sets the value for FilterData to be an explicit nil
func (o *FilterDetail) SetFilterDataNil() {
o.FilterData.Set(nil)
}
// UnsetFilterData ensures that no value is present for FilterData, not even an explicit nil
func (o *FilterDetail) UnsetFilterData() {
o.FilterData.Unset()
}
// GetIsWithout returns the IsWithout field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FilterDetail) GetIsWithout() bool {
if o == nil || IsNil(o.IsWithout.Get()) {
var ret bool
return ret
}
return *o.IsWithout.Get()
}
// GetIsWithoutOk returns a tuple with the IsWithout 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 *FilterDetail) GetIsWithoutOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsWithout.Get(), o.IsWithout.IsSet()
}
// HasIsWithout returns a boolean if a field has been set.
func (o *FilterDetail) HasIsWithout() bool {
if o != nil && o.IsWithout.IsSet() {
return true
}
return false
}
// SetIsWithout gets a reference to the given NullableBool and assigns it to the IsWithout field.
func (o *FilterDetail) SetIsWithout(v bool) {
o.IsWithout.Set(&v)
}
// SetIsWithoutNil sets the value for IsWithout to be an explicit nil
func (o *FilterDetail) SetIsWithoutNil() {
o.IsWithout.Set(nil)
}
// UnsetIsWithout ensures that no value is present for IsWithout, not even an explicit nil
func (o *FilterDetail) UnsetIsWithout() {
o.IsWithout.Unset()
}
// GetGateway returns the Gateway field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FilterDetail) GetGateway() string {
if o == nil || IsNil(o.Gateway.Get()) {
var ret string
return ret
}
return *o.Gateway.Get()
}
// GetGatewayOk returns a tuple with the Gateway 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 *FilterDetail) GetGatewayOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Gateway.Get(), o.Gateway.IsSet()
}
// HasGateway returns a boolean if a field has been set.
func (o *FilterDetail) HasGateway() bool {
if o != nil && o.Gateway.IsSet() {
return true
}
return false
}
// SetGateway gets a reference to the given NullableString and assigns it to the Gateway field.
func (o *FilterDetail) SetGateway(v string) {
o.Gateway.Set(&v)
}
// SetGatewayNil sets the value for Gateway to be an explicit nil
func (o *FilterDetail) SetGatewayNil() {
o.Gateway.Set(nil)
}
// UnsetGateway ensures that no value is present for Gateway, not even an explicit nil
func (o *FilterDetail) UnsetGateway() {
o.Gateway.Unset()
}
func (o FilterDetail) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o FilterDetail) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.FilterType) {
toSerialize["FilterType"] = o.FilterType
}
if o.FilterValue.IsSet() {
toSerialize["FilterValue"] = o.FilterValue.Get()
}
if !IsNil(o.IsMatched) {
toSerialize["IsMatched"] = o.IsMatched
}
if o.FilterData.IsSet() {
toSerialize["FilterData"] = o.FilterData.Get()
}
if o.IsWithout.IsSet() {
toSerialize["IsWithout"] = o.IsWithout.Get()
}
if o.Gateway.IsSet() {
toSerialize["Gateway"] = o.Gateway.Get()
}
return toSerialize, nil
}
type NullableFilterDetail struct {
value *FilterDetail
isSet bool
}
func (v NullableFilterDetail) Get() *FilterDetail {
return v.value
}
func (v *NullableFilterDetail) Set(val *FilterDetail) {
v.value = val
v.isSet = true
}
func (v NullableFilterDetail) IsSet() bool {
return v.isSet
}
func (v *NullableFilterDetail) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFilterDetail(val *FilterDetail) *NullableFilterDetail {
return &NullableFilterDetail{value: val, isSet: true}
}
func (v NullableFilterDetail) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableFilterDetail) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}