/
model_delivery_connect_scope_to_origin_request_origin.go
220 lines (186 loc) · 7.43 KB
/
model_delivery_connect_scope_to_origin_request_origin.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
/*
* Sites
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 1.0.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package sites
import (
"encoding/json"
)
// DeliveryConnectScopeToOriginRequestOrigin A new origin
type DeliveryConnectScopeToOriginRequestOrigin struct {
Http *DeliveryHTTPOrigin `json:"http,omitempty"`
StackpathStorage *DeliveryStackPathStorageOrigin `json:"stackpathStorage,omitempty"`
S3Storage *DeliveryAWSS3Origin `json:"s3Storage,omitempty"`
GoogleCloudStorage *DeliveryGoogleStorageOrigin `json:"googleCloudStorage,omitempty"`
}
// NewDeliveryConnectScopeToOriginRequestOrigin instantiates a new DeliveryConnectScopeToOriginRequestOrigin 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 NewDeliveryConnectScopeToOriginRequestOrigin() *DeliveryConnectScopeToOriginRequestOrigin {
this := DeliveryConnectScopeToOriginRequestOrigin{}
return &this
}
// NewDeliveryConnectScopeToOriginRequestOriginWithDefaults instantiates a new DeliveryConnectScopeToOriginRequestOrigin 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 NewDeliveryConnectScopeToOriginRequestOriginWithDefaults() *DeliveryConnectScopeToOriginRequestOrigin {
this := DeliveryConnectScopeToOriginRequestOrigin{}
return &this
}
// GetHttp returns the Http field value if set, zero value otherwise.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetHttp() DeliveryHTTPOrigin {
if o == nil || o.Http == nil {
var ret DeliveryHTTPOrigin
return ret
}
return *o.Http
}
// GetHttpOk returns a tuple with the Http field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetHttpOk() (*DeliveryHTTPOrigin, bool) {
if o == nil || o.Http == nil {
return nil, false
}
return o.Http, true
}
// HasHttp returns a boolean if a field has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) HasHttp() bool {
if o != nil && o.Http != nil {
return true
}
return false
}
// SetHttp gets a reference to the given DeliveryHTTPOrigin and assigns it to the Http field.
func (o *DeliveryConnectScopeToOriginRequestOrigin) SetHttp(v DeliveryHTTPOrigin) {
o.Http = &v
}
// GetStackpathStorage returns the StackpathStorage field value if set, zero value otherwise.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetStackpathStorage() DeliveryStackPathStorageOrigin {
if o == nil || o.StackpathStorage == nil {
var ret DeliveryStackPathStorageOrigin
return ret
}
return *o.StackpathStorage
}
// GetStackpathStorageOk returns a tuple with the StackpathStorage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetStackpathStorageOk() (*DeliveryStackPathStorageOrigin, bool) {
if o == nil || o.StackpathStorage == nil {
return nil, false
}
return o.StackpathStorage, true
}
// HasStackpathStorage returns a boolean if a field has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) HasStackpathStorage() bool {
if o != nil && o.StackpathStorage != nil {
return true
}
return false
}
// SetStackpathStorage gets a reference to the given DeliveryStackPathStorageOrigin and assigns it to the StackpathStorage field.
func (o *DeliveryConnectScopeToOriginRequestOrigin) SetStackpathStorage(v DeliveryStackPathStorageOrigin) {
o.StackpathStorage = &v
}
// GetS3Storage returns the S3Storage field value if set, zero value otherwise.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetS3Storage() DeliveryAWSS3Origin {
if o == nil || o.S3Storage == nil {
var ret DeliveryAWSS3Origin
return ret
}
return *o.S3Storage
}
// GetS3StorageOk returns a tuple with the S3Storage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetS3StorageOk() (*DeliveryAWSS3Origin, bool) {
if o == nil || o.S3Storage == nil {
return nil, false
}
return o.S3Storage, true
}
// HasS3Storage returns a boolean if a field has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) HasS3Storage() bool {
if o != nil && o.S3Storage != nil {
return true
}
return false
}
// SetS3Storage gets a reference to the given DeliveryAWSS3Origin and assigns it to the S3Storage field.
func (o *DeliveryConnectScopeToOriginRequestOrigin) SetS3Storage(v DeliveryAWSS3Origin) {
o.S3Storage = &v
}
// GetGoogleCloudStorage returns the GoogleCloudStorage field value if set, zero value otherwise.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetGoogleCloudStorage() DeliveryGoogleStorageOrigin {
if o == nil || o.GoogleCloudStorage == nil {
var ret DeliveryGoogleStorageOrigin
return ret
}
return *o.GoogleCloudStorage
}
// GetGoogleCloudStorageOk returns a tuple with the GoogleCloudStorage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) GetGoogleCloudStorageOk() (*DeliveryGoogleStorageOrigin, bool) {
if o == nil || o.GoogleCloudStorage == nil {
return nil, false
}
return o.GoogleCloudStorage, true
}
// HasGoogleCloudStorage returns a boolean if a field has been set.
func (o *DeliveryConnectScopeToOriginRequestOrigin) HasGoogleCloudStorage() bool {
if o != nil && o.GoogleCloudStorage != nil {
return true
}
return false
}
// SetGoogleCloudStorage gets a reference to the given DeliveryGoogleStorageOrigin and assigns it to the GoogleCloudStorage field.
func (o *DeliveryConnectScopeToOriginRequestOrigin) SetGoogleCloudStorage(v DeliveryGoogleStorageOrigin) {
o.GoogleCloudStorage = &v
}
func (o DeliveryConnectScopeToOriginRequestOrigin) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Http != nil {
toSerialize["http"] = o.Http
}
if o.StackpathStorage != nil {
toSerialize["stackpathStorage"] = o.StackpathStorage
}
if o.S3Storage != nil {
toSerialize["s3Storage"] = o.S3Storage
}
if o.GoogleCloudStorage != nil {
toSerialize["googleCloudStorage"] = o.GoogleCloudStorage
}
return json.Marshal(toSerialize)
}
type NullableDeliveryConnectScopeToOriginRequestOrigin struct {
value *DeliveryConnectScopeToOriginRequestOrigin
isSet bool
}
func (v NullableDeliveryConnectScopeToOriginRequestOrigin) Get() *DeliveryConnectScopeToOriginRequestOrigin {
return v.value
}
func (v *NullableDeliveryConnectScopeToOriginRequestOrigin) Set(val *DeliveryConnectScopeToOriginRequestOrigin) {
v.value = val
v.isSet = true
}
func (v NullableDeliveryConnectScopeToOriginRequestOrigin) IsSet() bool {
return v.isSet
}
func (v *NullableDeliveryConnectScopeToOriginRequestOrigin) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDeliveryConnectScopeToOriginRequestOrigin(val *DeliveryConnectScopeToOriginRequestOrigin) *NullableDeliveryConnectScopeToOriginRequestOrigin {
return &NullableDeliveryConnectScopeToOriginRequestOrigin{value: val, isSet: true}
}
func (v NullableDeliveryConnectScopeToOriginRequestOrigin) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDeliveryConnectScopeToOriginRequestOrigin) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}