/
model_update_network_wireless_ssid_splash_settings_request_splash_prepaid_front.go
200 lines (164 loc) · 7.64 KB
/
model_update_network_wireless_ssid_splash_settings_request_splash_prepaid_front.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
/*
Meraki Dashboard API
A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale. > Date: 07 February, 2024 > > [Recent Updates](https://meraki.io/whats-new/) --- [API Documentation](https://meraki.io/api) [Community Support](https://meraki.io/community) [Meraki Homepage](https://www.meraki.com)
API version: 1.43.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront{}
// UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront The prepaid front image used in the splash page.
type UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront struct {
// The MD5 value of the prepaid front image file. Setting this to null will remove the prepaid front from the splash page.
Md5 *string `json:"md5,omitempty"`
// The extension of the prepaid front image file.
Extension *string `json:"extension,omitempty"`
Image *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontImage `json:"image,omitempty"`
}
// NewUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront instantiates a new UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront 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 NewUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront() *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront {
this := UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront{}
return &this
}
// NewUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontWithDefaults instantiates a new UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront 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 NewUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontWithDefaults() *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront {
this := UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront{}
return &this
}
// GetMd5 returns the Md5 field value if set, zero value otherwise.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) GetMd5() string {
if o == nil || IsNil(o.Md5) {
var ret string
return ret
}
return *o.Md5
}
// GetMd5Ok returns a tuple with the Md5 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) GetMd5Ok() (*string, bool) {
if o == nil || IsNil(o.Md5) {
return nil, false
}
return o.Md5, true
}
// HasMd5 returns a boolean if a field has been set.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) HasMd5() bool {
if o != nil && !IsNil(o.Md5) {
return true
}
return false
}
// SetMd5 gets a reference to the given string and assigns it to the Md5 field.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) SetMd5(v string) {
o.Md5 = &v
}
// GetExtension returns the Extension field value if set, zero value otherwise.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) GetExtension() string {
if o == nil || IsNil(o.Extension) {
var ret string
return ret
}
return *o.Extension
}
// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) GetExtensionOk() (*string, bool) {
if o == nil || IsNil(o.Extension) {
return nil, false
}
return o.Extension, true
}
// HasExtension returns a boolean if a field has been set.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) HasExtension() bool {
if o != nil && !IsNil(o.Extension) {
return true
}
return false
}
// SetExtension gets a reference to the given string and assigns it to the Extension field.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) SetExtension(v string) {
o.Extension = &v
}
// GetImage returns the Image field value if set, zero value otherwise.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) GetImage() UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontImage {
if o == nil || IsNil(o.Image) {
var ret UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontImage
return ret
}
return *o.Image
}
// GetImageOk returns a tuple with the Image field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) GetImageOk() (*UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontImage, bool) {
if o == nil || IsNil(o.Image) {
return nil, false
}
return o.Image, true
}
// HasImage returns a boolean if a field has been set.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) HasImage() bool {
if o != nil && !IsNil(o.Image) {
return true
}
return false
}
// SetImage gets a reference to the given UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontImage and assigns it to the Image field.
func (o *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) SetImage(v UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFrontImage) {
o.Image = &v
}
func (o UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Md5) {
toSerialize["md5"] = o.Md5
}
if !IsNil(o.Extension) {
toSerialize["extension"] = o.Extension
}
if !IsNil(o.Image) {
toSerialize["image"] = o.Image
}
return toSerialize, nil
}
type NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront struct {
value *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront
isSet bool
}
func (v NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) Get() *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront {
return v.value
}
func (v *NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) Set(val *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) {
v.value = val
v.isSet = true
}
func (v NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) IsSet() bool {
return v.isSet
}
func (v *NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront(val *UpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) *NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront {
return &NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront{value: val, isSet: true}
}
func (v NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpdateNetworkWirelessSsidSplashSettingsRequestSplashPrepaidFront) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}