/
model_console_log_list_page_response.go
265 lines (221 loc) · 7.29 KB
/
model_console_log_list_page_response.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
/*
LogCom API
LogCom Swagger documentation
API version: 1.2.24
Contact: laborit@blutspende.de
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package logcomapi
import (
"encoding/json"
)
// ConsoleLogListPageResponse struct for ConsoleLogListPageResponse
type ConsoleLogListPageResponse struct {
// The actual page number
CurrentPage *int32 `json:"currentPage,omitempty"`
// The items
Items []ConsoleLogDTO `json:"items,omitempty"`
// The number of items per page
PageSize *int32 `json:"pageSize,omitempty"`
// The total count of items
TotalCount *int32 `json:"totalCount,omitempty"`
// The total pages
TotalPages *int32 `json:"totalPages,omitempty"`
}
// NewConsoleLogListPageResponse instantiates a new ConsoleLogListPageResponse 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 NewConsoleLogListPageResponse() *ConsoleLogListPageResponse {
this := ConsoleLogListPageResponse{}
return &this
}
// NewConsoleLogListPageResponseWithDefaults instantiates a new ConsoleLogListPageResponse 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 NewConsoleLogListPageResponseWithDefaults() *ConsoleLogListPageResponse {
this := ConsoleLogListPageResponse{}
return &this
}
// GetCurrentPage returns the CurrentPage field value if set, zero value otherwise.
func (o *ConsoleLogListPageResponse) GetCurrentPage() int32 {
if o == nil || isNil(o.CurrentPage) {
var ret int32
return ret
}
return *o.CurrentPage
}
// GetCurrentPageOk returns a tuple with the CurrentPage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConsoleLogListPageResponse) GetCurrentPageOk() (*int32, bool) {
if o == nil || isNil(o.CurrentPage) {
return nil, false
}
return o.CurrentPage, true
}
// HasCurrentPage returns a boolean if a field has been set.
func (o *ConsoleLogListPageResponse) HasCurrentPage() bool {
if o != nil && !isNil(o.CurrentPage) {
return true
}
return false
}
// SetCurrentPage gets a reference to the given int32 and assigns it to the CurrentPage field.
func (o *ConsoleLogListPageResponse) SetCurrentPage(v int32) {
o.CurrentPage = &v
}
// GetItems returns the Items field value if set, zero value otherwise.
func (o *ConsoleLogListPageResponse) GetItems() []ConsoleLogDTO {
if o == nil || isNil(o.Items) {
var ret []ConsoleLogDTO
return ret
}
return o.Items
}
// GetItemsOk returns a tuple with the Items field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConsoleLogListPageResponse) GetItemsOk() ([]ConsoleLogDTO, bool) {
if o == nil || isNil(o.Items) {
return nil, false
}
return o.Items, true
}
// HasItems returns a boolean if a field has been set.
func (o *ConsoleLogListPageResponse) HasItems() bool {
if o != nil && !isNil(o.Items) {
return true
}
return false
}
// SetItems gets a reference to the given []ConsoleLogDTO and assigns it to the Items field.
func (o *ConsoleLogListPageResponse) SetItems(v []ConsoleLogDTO) {
o.Items = v
}
// GetPageSize returns the PageSize field value if set, zero value otherwise.
func (o *ConsoleLogListPageResponse) GetPageSize() int32 {
if o == nil || isNil(o.PageSize) {
var ret int32
return ret
}
return *o.PageSize
}
// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConsoleLogListPageResponse) GetPageSizeOk() (*int32, bool) {
if o == nil || isNil(o.PageSize) {
return nil, false
}
return o.PageSize, true
}
// HasPageSize returns a boolean if a field has been set.
func (o *ConsoleLogListPageResponse) HasPageSize() bool {
if o != nil && !isNil(o.PageSize) {
return true
}
return false
}
// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field.
func (o *ConsoleLogListPageResponse) SetPageSize(v int32) {
o.PageSize = &v
}
// GetTotalCount returns the TotalCount field value if set, zero value otherwise.
func (o *ConsoleLogListPageResponse) GetTotalCount() int32 {
if o == nil || isNil(o.TotalCount) {
var ret int32
return ret
}
return *o.TotalCount
}
// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConsoleLogListPageResponse) GetTotalCountOk() (*int32, bool) {
if o == nil || isNil(o.TotalCount) {
return nil, false
}
return o.TotalCount, true
}
// HasTotalCount returns a boolean if a field has been set.
func (o *ConsoleLogListPageResponse) HasTotalCount() bool {
if o != nil && !isNil(o.TotalCount) {
return true
}
return false
}
// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field.
func (o *ConsoleLogListPageResponse) SetTotalCount(v int32) {
o.TotalCount = &v
}
// GetTotalPages returns the TotalPages field value if set, zero value otherwise.
func (o *ConsoleLogListPageResponse) GetTotalPages() int32 {
if o == nil || isNil(o.TotalPages) {
var ret int32
return ret
}
return *o.TotalPages
}
// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConsoleLogListPageResponse) GetTotalPagesOk() (*int32, bool) {
if o == nil || isNil(o.TotalPages) {
return nil, false
}
return o.TotalPages, true
}
// HasTotalPages returns a boolean if a field has been set.
func (o *ConsoleLogListPageResponse) HasTotalPages() bool {
if o != nil && !isNil(o.TotalPages) {
return true
}
return false
}
// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field.
func (o *ConsoleLogListPageResponse) SetTotalPages(v int32) {
o.TotalPages = &v
}
func (o ConsoleLogListPageResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.CurrentPage) {
toSerialize["currentPage"] = o.CurrentPage
}
if !isNil(o.Items) {
toSerialize["items"] = o.Items
}
if !isNil(o.PageSize) {
toSerialize["pageSize"] = o.PageSize
}
if !isNil(o.TotalCount) {
toSerialize["totalCount"] = o.TotalCount
}
if !isNil(o.TotalPages) {
toSerialize["totalPages"] = o.TotalPages
}
return json.Marshal(toSerialize)
}
type NullableConsoleLogListPageResponse struct {
value *ConsoleLogListPageResponse
isSet bool
}
func (v NullableConsoleLogListPageResponse) Get() *ConsoleLogListPageResponse {
return v.value
}
func (v *NullableConsoleLogListPageResponse) Set(val *ConsoleLogListPageResponse) {
v.value = val
v.isSet = true
}
func (v NullableConsoleLogListPageResponse) IsSet() bool {
return v.isSet
}
func (v *NullableConsoleLogListPageResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableConsoleLogListPageResponse(val *ConsoleLogListPageResponse) *NullableConsoleLogListPageResponse {
return &NullableConsoleLogListPageResponse{value: val, isSet: true}
}
func (v NullableConsoleLogListPageResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableConsoleLogListPageResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}