-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_api_atlas_awskms_view.go
338 lines (284 loc) · 11 KB
/
model_api_atlas_awskms_view.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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
/*
MongoDB Atlas Administration API
The MongoDB Atlas Administration API allows developers to manage all components in MongoDB Atlas. To learn more, review the [Administration API overview](https://www.mongodb.com/docs/atlas/api/atlas-admin-api/). This OpenAPI specification covers all of the collections with the exception of Alerts, Alert Configurations, and Events. Refer to the [legacy documentation](https://www.mongodb.com/docs/atlas/reference/api-resources/) for the specifications of these resources.
API version: 1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// ApiAtlasAWSKMSView Amazon Web Services (AWS) KMS configuration details and encryption at rest configuration set for the specified project.
type ApiAtlasAWSKMSView struct {
// Unique alphanumeric string that identifies an Identity and Access Management (IAM) access key with permissions required to access your Amazon Web Services (AWS) Customer Master Key (CMK).
AccessKeyID *string `json:"accessKeyID,omitempty"`
// Unique alphanumeric string that identifies the Amazon Web Services (AWS) Customer Master Key (CMK) you used to encrypt and decrypt the MongoDB master keys.
CustomerMasterKeyID *string `json:"customerMasterKeyID,omitempty"`
// Flag that indicates whether someone enabled encryption at rest for the specified project through Amazon Web Services (AWS) Key Management Service (KMS). To disable encryption at rest using customer key management and remove the configuration details, pass only this parameter with a value of `false`.
Enabled *bool `json:"enabled,omitempty"`
// Physical location where MongoDB Cloud deploys your AWS-hosted MongoDB cluster nodes. The region you choose can affect network latency for clients accessing your databases. When MongoDB Cloud deploys a dedicated cluster, it checks if a VPC or VPC connection exists for that provider and region. If not, MongoDB Cloud creates them as part of the deployment. MongoDB Cloud assigns the VPC a CIDR block. To limit a new VPC peering connection to one CIDR block and region, create the connection first. Deploy the cluster after the connection starts.
Region *string `json:"region,omitempty"`
// Unique 24-hexadecimal digit string that identifies an Amazon Web Services (AWS) Identity and Access Management (IAM) role. This IAM role has the permissions required to manage your AWS customer master key.
RoleId *string `json:"roleId,omitempty"`
// Human-readable label of the Identity and Access Management (IAM) secret access key with permissions required to access your Amazon Web Services (AWS) customer master key.
SecretAccessKey *string `json:"secretAccessKey,omitempty"`
// Flag that indicates whether the Amazon Web Services (AWS) Key Management Service (KMS) encryption key can encrypt and decrypt data.
Valid *bool `json:"valid,omitempty"`
}
// NewApiAtlasAWSKMSView instantiates a new ApiAtlasAWSKMSView 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 NewApiAtlasAWSKMSView() *ApiAtlasAWSKMSView {
this := ApiAtlasAWSKMSView{}
return &this
}
// NewApiAtlasAWSKMSViewWithDefaults instantiates a new ApiAtlasAWSKMSView 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 NewApiAtlasAWSKMSViewWithDefaults() *ApiAtlasAWSKMSView {
this := ApiAtlasAWSKMSView{}
return &this
}
// GetAccessKeyID returns the AccessKeyID field value if set, zero value otherwise.
func (o *ApiAtlasAWSKMSView) GetAccessKeyID() string {
if o == nil || isNil(o.AccessKeyID) {
var ret string
return ret
}
return *o.AccessKeyID
}
// GetAccessKeyIDOk returns a tuple with the AccessKeyID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAWSKMSView) GetAccessKeyIDOk() (*string, bool) {
if o == nil || isNil(o.AccessKeyID) {
return nil, false
}
return o.AccessKeyID, true
}
// HasAccessKeyID returns a boolean if a field has been set.
func (o *ApiAtlasAWSKMSView) HasAccessKeyID() bool {
if o != nil && !isNil(o.AccessKeyID) {
return true
}
return false
}
// SetAccessKeyID gets a reference to the given string and assigns it to the AccessKeyID field.
func (o *ApiAtlasAWSKMSView) SetAccessKeyID(v string) {
o.AccessKeyID = &v
}
// GetCustomerMasterKeyID returns the CustomerMasterKeyID field value if set, zero value otherwise.
func (o *ApiAtlasAWSKMSView) GetCustomerMasterKeyID() string {
if o == nil || isNil(o.CustomerMasterKeyID) {
var ret string
return ret
}
return *o.CustomerMasterKeyID
}
// GetCustomerMasterKeyIDOk returns a tuple with the CustomerMasterKeyID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAWSKMSView) GetCustomerMasterKeyIDOk() (*string, bool) {
if o == nil || isNil(o.CustomerMasterKeyID) {
return nil, false
}
return o.CustomerMasterKeyID, true
}
// HasCustomerMasterKeyID returns a boolean if a field has been set.
func (o *ApiAtlasAWSKMSView) HasCustomerMasterKeyID() bool {
if o != nil && !isNil(o.CustomerMasterKeyID) {
return true
}
return false
}
// SetCustomerMasterKeyID gets a reference to the given string and assigns it to the CustomerMasterKeyID field.
func (o *ApiAtlasAWSKMSView) SetCustomerMasterKeyID(v string) {
o.CustomerMasterKeyID = &v
}
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *ApiAtlasAWSKMSView) GetEnabled() bool {
if o == nil || isNil(o.Enabled) {
var ret bool
return ret
}
return *o.Enabled
}
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAWSKMSView) GetEnabledOk() (*bool, bool) {
if o == nil || isNil(o.Enabled) {
return nil, false
}
return o.Enabled, true
}
// HasEnabled returns a boolean if a field has been set.
func (o *ApiAtlasAWSKMSView) HasEnabled() bool {
if o != nil && !isNil(o.Enabled) {
return true
}
return false
}
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *ApiAtlasAWSKMSView) SetEnabled(v bool) {
o.Enabled = &v
}
// GetRegion returns the Region field value if set, zero value otherwise.
func (o *ApiAtlasAWSKMSView) GetRegion() string {
if o == nil || isNil(o.Region) {
var ret string
return ret
}
return *o.Region
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAWSKMSView) GetRegionOk() (*string, bool) {
if o == nil || isNil(o.Region) {
return nil, false
}
return o.Region, true
}
// HasRegion returns a boolean if a field has been set.
func (o *ApiAtlasAWSKMSView) HasRegion() bool {
if o != nil && !isNil(o.Region) {
return true
}
return false
}
// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *ApiAtlasAWSKMSView) SetRegion(v string) {
o.Region = &v
}
// GetRoleId returns the RoleId field value if set, zero value otherwise.
func (o *ApiAtlasAWSKMSView) GetRoleId() string {
if o == nil || isNil(o.RoleId) {
var ret string
return ret
}
return *o.RoleId
}
// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAWSKMSView) GetRoleIdOk() (*string, bool) {
if o == nil || isNil(o.RoleId) {
return nil, false
}
return o.RoleId, true
}
// HasRoleId returns a boolean if a field has been set.
func (o *ApiAtlasAWSKMSView) HasRoleId() bool {
if o != nil && !isNil(o.RoleId) {
return true
}
return false
}
// SetRoleId gets a reference to the given string and assigns it to the RoleId field.
func (o *ApiAtlasAWSKMSView) SetRoleId(v string) {
o.RoleId = &v
}
// GetSecretAccessKey returns the SecretAccessKey field value if set, zero value otherwise.
func (o *ApiAtlasAWSKMSView) GetSecretAccessKey() string {
if o == nil || isNil(o.SecretAccessKey) {
var ret string
return ret
}
return *o.SecretAccessKey
}
// GetSecretAccessKeyOk returns a tuple with the SecretAccessKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAWSKMSView) GetSecretAccessKeyOk() (*string, bool) {
if o == nil || isNil(o.SecretAccessKey) {
return nil, false
}
return o.SecretAccessKey, true
}
// HasSecretAccessKey returns a boolean if a field has been set.
func (o *ApiAtlasAWSKMSView) HasSecretAccessKey() bool {
if o != nil && !isNil(o.SecretAccessKey) {
return true
}
return false
}
// SetSecretAccessKey gets a reference to the given string and assigns it to the SecretAccessKey field.
func (o *ApiAtlasAWSKMSView) SetSecretAccessKey(v string) {
o.SecretAccessKey = &v
}
// GetValid returns the Valid field value if set, zero value otherwise.
func (o *ApiAtlasAWSKMSView) GetValid() bool {
if o == nil || isNil(o.Valid) {
var ret bool
return ret
}
return *o.Valid
}
// GetValidOk returns a tuple with the Valid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAWSKMSView) GetValidOk() (*bool, bool) {
if o == nil || isNil(o.Valid) {
return nil, false
}
return o.Valid, true
}
// HasValid returns a boolean if a field has been set.
func (o *ApiAtlasAWSKMSView) HasValid() bool {
if o != nil && !isNil(o.Valid) {
return true
}
return false
}
// SetValid gets a reference to the given bool and assigns it to the Valid field.
func (o *ApiAtlasAWSKMSView) SetValid(v bool) {
o.Valid = &v
}
func (o ApiAtlasAWSKMSView) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.AccessKeyID) {
toSerialize["accessKeyID"] = o.AccessKeyID
}
if !isNil(o.CustomerMasterKeyID) {
toSerialize["customerMasterKeyID"] = o.CustomerMasterKeyID
}
if !isNil(o.Enabled) {
toSerialize["enabled"] = o.Enabled
}
if !isNil(o.Region) {
toSerialize["region"] = o.Region
}
if !isNil(o.RoleId) {
toSerialize["roleId"] = o.RoleId
}
if !isNil(o.SecretAccessKey) {
toSerialize["secretAccessKey"] = o.SecretAccessKey
}
if !isNil(o.Valid) {
toSerialize["valid"] = o.Valid
}
return json.Marshal(toSerialize)
}
type NullableApiAtlasAWSKMSView struct {
value *ApiAtlasAWSKMSView
isSet bool
}
func (v NullableApiAtlasAWSKMSView) Get() *ApiAtlasAWSKMSView {
return v.value
}
func (v *NullableApiAtlasAWSKMSView) Set(val *ApiAtlasAWSKMSView) {
v.value = val
v.isSet = true
}
func (v NullableApiAtlasAWSKMSView) IsSet() bool {
return v.isSet
}
func (v *NullableApiAtlasAWSKMSView) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableApiAtlasAWSKMSView(val *ApiAtlasAWSKMSView) *NullableApiAtlasAWSKMSView {
return &NullableApiAtlasAWSKMSView{value: val, isSet: true}
}
func (v NullableApiAtlasAWSKMSView) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableApiAtlasAWSKMSView) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}