/
model_link_status_action_model.go
262 lines (220 loc) · 6.27 KB
/
model_link_status_action_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
/*
Finverse Public
Documentation of the early finverse services
API version: 0.0.1
Contact: info@finverse.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package finverse
import (
"encoding/json"
)
// LinkStatusActionModel struct for LinkStatusActionModel
type LinkStatusActionModel struct {
// Unique identifier
ActionId string `json:"action_id"`
// The type of user screen the UI is to render
Type string `json:"type"`
// The name of the user screen the UI is to render
Name string `json:"name"`
Messages []UserMessage `json:"messages"`
Fields []UserField `json:"fields"`
Buttons []UserButton `json:"buttons,omitempty"`
}
// NewLinkStatusActionModel instantiates a new LinkStatusActionModel 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 NewLinkStatusActionModel(actionId string, type_ string, name string, messages []UserMessage, fields []UserField) *LinkStatusActionModel {
this := LinkStatusActionModel{}
this.ActionId = actionId
this.Type = type_
this.Name = name
this.Messages = messages
this.Fields = fields
return &this
}
// NewLinkStatusActionModelWithDefaults instantiates a new LinkStatusActionModel 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 NewLinkStatusActionModelWithDefaults() *LinkStatusActionModel {
this := LinkStatusActionModel{}
return &this
}
// GetActionId returns the ActionId field value
func (o *LinkStatusActionModel) GetActionId() string {
if o == nil {
var ret string
return ret
}
return o.ActionId
}
// GetActionIdOk returns a tuple with the ActionId field value
// and a boolean to check if the value has been set.
func (o *LinkStatusActionModel) GetActionIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ActionId, true
}
// SetActionId sets field value
func (o *LinkStatusActionModel) SetActionId(v string) {
o.ActionId = v
}
// GetType returns the Type field value
func (o *LinkStatusActionModel) GetType() string {
if o == nil {
var ret string
return ret
}
return o.Type
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *LinkStatusActionModel) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *LinkStatusActionModel) SetType(v string) {
o.Type = v
}
// GetName returns the Name field value
func (o *LinkStatusActionModel) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *LinkStatusActionModel) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *LinkStatusActionModel) SetName(v string) {
o.Name = v
}
// GetMessages returns the Messages field value
func (o *LinkStatusActionModel) GetMessages() []UserMessage {
if o == nil {
var ret []UserMessage
return ret
}
return o.Messages
}
// GetMessagesOk returns a tuple with the Messages field value
// and a boolean to check if the value has been set.
func (o *LinkStatusActionModel) GetMessagesOk() ([]UserMessage, bool) {
if o == nil {
return nil, false
}
return o.Messages, true
}
// SetMessages sets field value
func (o *LinkStatusActionModel) SetMessages(v []UserMessage) {
o.Messages = v
}
// GetFields returns the Fields field value
func (o *LinkStatusActionModel) GetFields() []UserField {
if o == nil {
var ret []UserField
return ret
}
return o.Fields
}
// GetFieldsOk returns a tuple with the Fields field value
// and a boolean to check if the value has been set.
func (o *LinkStatusActionModel) GetFieldsOk() ([]UserField, bool) {
if o == nil {
return nil, false
}
return o.Fields, true
}
// SetFields sets field value
func (o *LinkStatusActionModel) SetFields(v []UserField) {
o.Fields = v
}
// GetButtons returns the Buttons field value if set, zero value otherwise.
func (o *LinkStatusActionModel) GetButtons() []UserButton {
if o == nil || o.Buttons == nil {
var ret []UserButton
return ret
}
return o.Buttons
}
// GetButtonsOk returns a tuple with the Buttons field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LinkStatusActionModel) GetButtonsOk() ([]UserButton, bool) {
if o == nil || o.Buttons == nil {
return nil, false
}
return o.Buttons, true
}
// HasButtons returns a boolean if a field has been set.
func (o *LinkStatusActionModel) HasButtons() bool {
if o != nil && o.Buttons != nil {
return true
}
return false
}
// SetButtons gets a reference to the given []UserButton and assigns it to the Buttons field.
func (o *LinkStatusActionModel) SetButtons(v []UserButton) {
o.Buttons = v
}
func (o LinkStatusActionModel) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["action_id"] = o.ActionId
}
if true {
toSerialize["type"] = o.Type
}
if true {
toSerialize["name"] = o.Name
}
if true {
toSerialize["messages"] = o.Messages
}
if true {
toSerialize["fields"] = o.Fields
}
if o.Buttons != nil {
toSerialize["buttons"] = o.Buttons
}
return json.Marshal(toSerialize)
}
type NullableLinkStatusActionModel struct {
value *LinkStatusActionModel
isSet bool
}
func (v NullableLinkStatusActionModel) Get() *LinkStatusActionModel {
return v.value
}
func (v *NullableLinkStatusActionModel) Set(val *LinkStatusActionModel) {
v.value = val
v.isSet = true
}
func (v NullableLinkStatusActionModel) IsSet() bool {
return v.isSet
}
func (v *NullableLinkStatusActionModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLinkStatusActionModel(val *LinkStatusActionModel) *NullableLinkStatusActionModel {
return &NullableLinkStatusActionModel{value: val, isSet: true}
}
func (v NullableLinkStatusActionModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLinkStatusActionModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}