-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_pvs_streaming_site_response_model.go
325 lines (274 loc) · 10.2 KB
/
model_pvs_streaming_site_response_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
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
/*
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 PvsStreamingSiteResponseModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PvsStreamingSiteResponseModel{}
// PvsStreamingSiteResponseModel PVS site object.
type PvsStreamingSiteResponseModel struct {
// Id of the PVS farm.
FarmId NullableString `json:"FarmId,omitempty"`
// Name of the PVS farm.
FarmName NullableString `json:"FarmName,omitempty"`
// Id of the resource location that PVS registered.
ResourceLocation NullableString `json:"ResourceLocation,omitempty"`
// Id of the PVS site.
SiteId NullableString `json:"SiteId,omitempty"`
// Name of the PVS site.
SiteName NullableString `json:"SiteName,omitempty"`
}
// NewPvsStreamingSiteResponseModel instantiates a new PvsStreamingSiteResponseModel 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 NewPvsStreamingSiteResponseModel() *PvsStreamingSiteResponseModel {
this := PvsStreamingSiteResponseModel{}
return &this
}
// NewPvsStreamingSiteResponseModelWithDefaults instantiates a new PvsStreamingSiteResponseModel 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 NewPvsStreamingSiteResponseModelWithDefaults() *PvsStreamingSiteResponseModel {
this := PvsStreamingSiteResponseModel{}
return &this
}
// GetFarmId returns the FarmId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PvsStreamingSiteResponseModel) GetFarmId() string {
if o == nil || IsNil(o.FarmId.Get()) {
var ret string
return ret
}
return *o.FarmId.Get()
}
// GetFarmIdOk returns a tuple with the FarmId 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 *PvsStreamingSiteResponseModel) GetFarmIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.FarmId.Get(), o.FarmId.IsSet()
}
// HasFarmId returns a boolean if a field has been set.
func (o *PvsStreamingSiteResponseModel) HasFarmId() bool {
if o != nil && o.FarmId.IsSet() {
return true
}
return false
}
// SetFarmId gets a reference to the given NullableString and assigns it to the FarmId field.
func (o *PvsStreamingSiteResponseModel) SetFarmId(v string) {
o.FarmId.Set(&v)
}
// SetFarmIdNil sets the value for FarmId to be an explicit nil
func (o *PvsStreamingSiteResponseModel) SetFarmIdNil() {
o.FarmId.Set(nil)
}
// UnsetFarmId ensures that no value is present for FarmId, not even an explicit nil
func (o *PvsStreamingSiteResponseModel) UnsetFarmId() {
o.FarmId.Unset()
}
// GetFarmName returns the FarmName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PvsStreamingSiteResponseModel) GetFarmName() string {
if o == nil || IsNil(o.FarmName.Get()) {
var ret string
return ret
}
return *o.FarmName.Get()
}
// GetFarmNameOk returns a tuple with the FarmName 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 *PvsStreamingSiteResponseModel) GetFarmNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.FarmName.Get(), o.FarmName.IsSet()
}
// HasFarmName returns a boolean if a field has been set.
func (o *PvsStreamingSiteResponseModel) HasFarmName() bool {
if o != nil && o.FarmName.IsSet() {
return true
}
return false
}
// SetFarmName gets a reference to the given NullableString and assigns it to the FarmName field.
func (o *PvsStreamingSiteResponseModel) SetFarmName(v string) {
o.FarmName.Set(&v)
}
// SetFarmNameNil sets the value for FarmName to be an explicit nil
func (o *PvsStreamingSiteResponseModel) SetFarmNameNil() {
o.FarmName.Set(nil)
}
// UnsetFarmName ensures that no value is present for FarmName, not even an explicit nil
func (o *PvsStreamingSiteResponseModel) UnsetFarmName() {
o.FarmName.Unset()
}
// GetResourceLocation returns the ResourceLocation field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PvsStreamingSiteResponseModel) GetResourceLocation() string {
if o == nil || IsNil(o.ResourceLocation.Get()) {
var ret string
return ret
}
return *o.ResourceLocation.Get()
}
// GetResourceLocationOk returns a tuple with the ResourceLocation 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 *PvsStreamingSiteResponseModel) GetResourceLocationOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ResourceLocation.Get(), o.ResourceLocation.IsSet()
}
// HasResourceLocation returns a boolean if a field has been set.
func (o *PvsStreamingSiteResponseModel) HasResourceLocation() bool {
if o != nil && o.ResourceLocation.IsSet() {
return true
}
return false
}
// SetResourceLocation gets a reference to the given NullableString and assigns it to the ResourceLocation field.
func (o *PvsStreamingSiteResponseModel) SetResourceLocation(v string) {
o.ResourceLocation.Set(&v)
}
// SetResourceLocationNil sets the value for ResourceLocation to be an explicit nil
func (o *PvsStreamingSiteResponseModel) SetResourceLocationNil() {
o.ResourceLocation.Set(nil)
}
// UnsetResourceLocation ensures that no value is present for ResourceLocation, not even an explicit nil
func (o *PvsStreamingSiteResponseModel) UnsetResourceLocation() {
o.ResourceLocation.Unset()
}
// GetSiteId returns the SiteId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PvsStreamingSiteResponseModel) GetSiteId() string {
if o == nil || IsNil(o.SiteId.Get()) {
var ret string
return ret
}
return *o.SiteId.Get()
}
// GetSiteIdOk returns a tuple with the SiteId 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 *PvsStreamingSiteResponseModel) GetSiteIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SiteId.Get(), o.SiteId.IsSet()
}
// HasSiteId returns a boolean if a field has been set.
func (o *PvsStreamingSiteResponseModel) HasSiteId() bool {
if o != nil && o.SiteId.IsSet() {
return true
}
return false
}
// SetSiteId gets a reference to the given NullableString and assigns it to the SiteId field.
func (o *PvsStreamingSiteResponseModel) SetSiteId(v string) {
o.SiteId.Set(&v)
}
// SetSiteIdNil sets the value for SiteId to be an explicit nil
func (o *PvsStreamingSiteResponseModel) SetSiteIdNil() {
o.SiteId.Set(nil)
}
// UnsetSiteId ensures that no value is present for SiteId, not even an explicit nil
func (o *PvsStreamingSiteResponseModel) UnsetSiteId() {
o.SiteId.Unset()
}
// GetSiteName returns the SiteName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PvsStreamingSiteResponseModel) GetSiteName() string {
if o == nil || IsNil(o.SiteName.Get()) {
var ret string
return ret
}
return *o.SiteName.Get()
}
// GetSiteNameOk returns a tuple with the SiteName 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 *PvsStreamingSiteResponseModel) GetSiteNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SiteName.Get(), o.SiteName.IsSet()
}
// HasSiteName returns a boolean if a field has been set.
func (o *PvsStreamingSiteResponseModel) HasSiteName() bool {
if o != nil && o.SiteName.IsSet() {
return true
}
return false
}
// SetSiteName gets a reference to the given NullableString and assigns it to the SiteName field.
func (o *PvsStreamingSiteResponseModel) SetSiteName(v string) {
o.SiteName.Set(&v)
}
// SetSiteNameNil sets the value for SiteName to be an explicit nil
func (o *PvsStreamingSiteResponseModel) SetSiteNameNil() {
o.SiteName.Set(nil)
}
// UnsetSiteName ensures that no value is present for SiteName, not even an explicit nil
func (o *PvsStreamingSiteResponseModel) UnsetSiteName() {
o.SiteName.Unset()
}
func (o PvsStreamingSiteResponseModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PvsStreamingSiteResponseModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.FarmId.IsSet() {
toSerialize["FarmId"] = o.FarmId.Get()
}
if o.FarmName.IsSet() {
toSerialize["FarmName"] = o.FarmName.Get()
}
if o.ResourceLocation.IsSet() {
toSerialize["ResourceLocation"] = o.ResourceLocation.Get()
}
if o.SiteId.IsSet() {
toSerialize["SiteId"] = o.SiteId.Get()
}
if o.SiteName.IsSet() {
toSerialize["SiteName"] = o.SiteName.Get()
}
return toSerialize, nil
}
type NullablePvsStreamingSiteResponseModel struct {
value *PvsStreamingSiteResponseModel
isSet bool
}
func (v NullablePvsStreamingSiteResponseModel) Get() *PvsStreamingSiteResponseModel {
return v.value
}
func (v *NullablePvsStreamingSiteResponseModel) Set(val *PvsStreamingSiteResponseModel) {
v.value = val
v.isSet = true
}
func (v NullablePvsStreamingSiteResponseModel) IsSet() bool {
return v.isSet
}
func (v *NullablePvsStreamingSiteResponseModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePvsStreamingSiteResponseModel(val *PvsStreamingSiteResponseModel) *NullablePvsStreamingSiteResponseModel {
return &NullablePvsStreamingSiteResponseModel{value: val, isSet: true}
}
func (v NullablePvsStreamingSiteResponseModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePvsStreamingSiteResponseModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}