-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_app_search_filter_group_request_model.go
238 lines (197 loc) · 8.47 KB
/
model_app_search_filter_group_request_model.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
/*
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 AppSearchFilterGroupRequestModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AppSearchFilterGroupRequestModel{}
// AppSearchFilterGroupRequestModel Advanced search filter group for applications
type AppSearchFilterGroupRequestModel struct {
SearchFilterGroupType *AppSearchFilterGroupType `json:"SearchFilterGroupType,omitempty"`
// The search filters in search filter group
SearchFilters []AppSearchFilterRequestModel `json:"SearchFilters,omitempty"`
SearchFilterGroupsType *AppSearchFilterGroupsType `json:"SearchFilterGroupsType,omitempty"`
// The search filter group in search filter groups
SearchFilterGroups []AppSearchFilterGroupRequestModel `json:"SearchFilterGroups,omitempty"`
}
// NewAppSearchFilterGroupRequestModel instantiates a new AppSearchFilterGroupRequestModel 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 NewAppSearchFilterGroupRequestModel() *AppSearchFilterGroupRequestModel {
this := AppSearchFilterGroupRequestModel{}
return &this
}
// NewAppSearchFilterGroupRequestModelWithDefaults instantiates a new AppSearchFilterGroupRequestModel 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 NewAppSearchFilterGroupRequestModelWithDefaults() *AppSearchFilterGroupRequestModel {
this := AppSearchFilterGroupRequestModel{}
return &this
}
// GetSearchFilterGroupType returns the SearchFilterGroupType field value if set, zero value otherwise.
func (o *AppSearchFilterGroupRequestModel) GetSearchFilterGroupType() AppSearchFilterGroupType {
if o == nil || IsNil(o.SearchFilterGroupType) {
var ret AppSearchFilterGroupType
return ret
}
return *o.SearchFilterGroupType
}
// GetSearchFilterGroupTypeOk returns a tuple with the SearchFilterGroupType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppSearchFilterGroupRequestModel) GetSearchFilterGroupTypeOk() (*AppSearchFilterGroupType, bool) {
if o == nil || IsNil(o.SearchFilterGroupType) {
return nil, false
}
return o.SearchFilterGroupType, true
}
// HasSearchFilterGroupType returns a boolean if a field has been set.
func (o *AppSearchFilterGroupRequestModel) HasSearchFilterGroupType() bool {
if o != nil && !IsNil(o.SearchFilterGroupType) {
return true
}
return false
}
// SetSearchFilterGroupType gets a reference to the given AppSearchFilterGroupType and assigns it to the SearchFilterGroupType field.
func (o *AppSearchFilterGroupRequestModel) SetSearchFilterGroupType(v AppSearchFilterGroupType) {
o.SearchFilterGroupType = &v
}
// GetSearchFilters returns the SearchFilters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppSearchFilterGroupRequestModel) GetSearchFilters() []AppSearchFilterRequestModel {
if o == nil {
var ret []AppSearchFilterRequestModel
return ret
}
return o.SearchFilters
}
// GetSearchFiltersOk returns a tuple with the SearchFilters 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 *AppSearchFilterGroupRequestModel) GetSearchFiltersOk() ([]AppSearchFilterRequestModel, bool) {
if o == nil || IsNil(o.SearchFilters) {
return nil, false
}
return o.SearchFilters, true
}
// HasSearchFilters returns a boolean if a field has been set.
func (o *AppSearchFilterGroupRequestModel) HasSearchFilters() bool {
if o != nil && IsNil(o.SearchFilters) {
return true
}
return false
}
// SetSearchFilters gets a reference to the given []AppSearchFilterRequestModel and assigns it to the SearchFilters field.
func (o *AppSearchFilterGroupRequestModel) SetSearchFilters(v []AppSearchFilterRequestModel) {
o.SearchFilters = v
}
// GetSearchFilterGroupsType returns the SearchFilterGroupsType field value if set, zero value otherwise.
func (o *AppSearchFilterGroupRequestModel) GetSearchFilterGroupsType() AppSearchFilterGroupsType {
if o == nil || IsNil(o.SearchFilterGroupsType) {
var ret AppSearchFilterGroupsType
return ret
}
return *o.SearchFilterGroupsType
}
// GetSearchFilterGroupsTypeOk returns a tuple with the SearchFilterGroupsType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppSearchFilterGroupRequestModel) GetSearchFilterGroupsTypeOk() (*AppSearchFilterGroupsType, bool) {
if o == nil || IsNil(o.SearchFilterGroupsType) {
return nil, false
}
return o.SearchFilterGroupsType, true
}
// HasSearchFilterGroupsType returns a boolean if a field has been set.
func (o *AppSearchFilterGroupRequestModel) HasSearchFilterGroupsType() bool {
if o != nil && !IsNil(o.SearchFilterGroupsType) {
return true
}
return false
}
// SetSearchFilterGroupsType gets a reference to the given AppSearchFilterGroupsType and assigns it to the SearchFilterGroupsType field.
func (o *AppSearchFilterGroupRequestModel) SetSearchFilterGroupsType(v AppSearchFilterGroupsType) {
o.SearchFilterGroupsType = &v
}
// GetSearchFilterGroups returns the SearchFilterGroups field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppSearchFilterGroupRequestModel) GetSearchFilterGroups() []AppSearchFilterGroupRequestModel {
if o == nil {
var ret []AppSearchFilterGroupRequestModel
return ret
}
return o.SearchFilterGroups
}
// GetSearchFilterGroupsOk returns a tuple with the SearchFilterGroups 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 *AppSearchFilterGroupRequestModel) GetSearchFilterGroupsOk() ([]AppSearchFilterGroupRequestModel, bool) {
if o == nil || IsNil(o.SearchFilterGroups) {
return nil, false
}
return o.SearchFilterGroups, true
}
// HasSearchFilterGroups returns a boolean if a field has been set.
func (o *AppSearchFilterGroupRequestModel) HasSearchFilterGroups() bool {
if o != nil && IsNil(o.SearchFilterGroups) {
return true
}
return false
}
// SetSearchFilterGroups gets a reference to the given []AppSearchFilterGroupRequestModel and assigns it to the SearchFilterGroups field.
func (o *AppSearchFilterGroupRequestModel) SetSearchFilterGroups(v []AppSearchFilterGroupRequestModel) {
o.SearchFilterGroups = v
}
func (o AppSearchFilterGroupRequestModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AppSearchFilterGroupRequestModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.SearchFilterGroupType) {
toSerialize["SearchFilterGroupType"] = o.SearchFilterGroupType
}
if o.SearchFilters != nil {
toSerialize["SearchFilters"] = o.SearchFilters
}
if !IsNil(o.SearchFilterGroupsType) {
toSerialize["SearchFilterGroupsType"] = o.SearchFilterGroupsType
}
if o.SearchFilterGroups != nil {
toSerialize["SearchFilterGroups"] = o.SearchFilterGroups
}
return toSerialize, nil
}
type NullableAppSearchFilterGroupRequestModel struct {
value *AppSearchFilterGroupRequestModel
isSet bool
}
func (v NullableAppSearchFilterGroupRequestModel) Get() *AppSearchFilterGroupRequestModel {
return v.value
}
func (v *NullableAppSearchFilterGroupRequestModel) Set(val *AppSearchFilterGroupRequestModel) {
v.value = val
v.isSet = true
}
func (v NullableAppSearchFilterGroupRequestModel) IsSet() bool {
return v.isSet
}
func (v *NullableAppSearchFilterGroupRequestModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAppSearchFilterGroupRequestModel(val *AppSearchFilterGroupRequestModel) *NullableAppSearchFilterGroupRequestModel {
return &NullableAppSearchFilterGroupRequestModel{value: val, isSet: true}
}
func (v NullableAppSearchFilterGroupRequestModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAppSearchFilterGroupRequestModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}