/
model_upload_file.go
executable file
·141 lines (113 loc) · 3.21 KB
/
model_upload_file.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
/*
Lob
The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
API version: 1.3.0
Contact: lob-openapi@lob.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lob
import (
"encoding/json"
)
// UploadFile struct for UploadFile
type UploadFile struct {
Message string `json:"message"`
Filename string `json:"filename"`
}
// NewUploadFile instantiates a new UploadFile 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 NewUploadFile(message string, filename string) *UploadFile {
this := UploadFile{}
this.Message = message
this.Filename = filename
return &this
}
// NewUploadFileWithDefaults instantiates a new UploadFile 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 NewUploadFileWithDefaults() *UploadFile {
this := UploadFile{}
var message string = "File uploaded successfully"
this.Message = message
return &this
}
// GetMessage returns the Message field value
func (o *UploadFile) GetMessage() string {
if o == nil {
var ret string
return ret
}
return o.Message
}
// GetMessageOk returns a tuple with the Message field value
// and a boolean to check if the value has been set.
func (o *UploadFile) GetMessageOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Message, true
}
// SetMessage sets field value
func (o *UploadFile) SetMessage(v string) {
o.Message = v
}
// GetFilename returns the Filename field value
func (o *UploadFile) GetFilename() string {
if o == nil {
var ret string
return ret
}
return o.Filename
}
// GetFilenameOk returns a tuple with the Filename field value
// and a boolean to check if the value has been set.
func (o *UploadFile) GetFilenameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Filename, true
}
// SetFilename sets field value
func (o *UploadFile) SetFilename(v string) {
o.Filename = v
}
func (o UploadFile) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["message"] = o.Message
}
if true {
toSerialize["filename"] = o.Filename
}
return json.Marshal(toSerialize)
}
type NullableUploadFile struct {
value *UploadFile
isSet bool
}
func (v NullableUploadFile) Get() *UploadFile {
return v.value
}
func (v *NullableUploadFile) Set(val *UploadFile) {
v.value = val
v.isSet = true
}
func (v NullableUploadFile) IsSet() bool {
return v.isSet
}
func (v *NullableUploadFile) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUploadFile(val *UploadFile) *NullableUploadFile {
return &NullableUploadFile{value: val, isSet: true}
}
func (v NullableUploadFile) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUploadFile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}