/
model_cloud_provider_access_awsiam_role_all_of.go
295 lines (247 loc) · 10.4 KB
/
model_cloud_provider_access_awsiam_role_all_of.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
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
"time"
)
// CloudProviderAccessAWSIAMRoleAllOf struct for CloudProviderAccessAWSIAMRoleAllOf
type CloudProviderAccessAWSIAMRoleAllOf struct {
// Amazon Resource Name that identifies the Amazon Web Services (AWS) user account that MongoDB Cloud uses when it assumes the Identity and Access Management (IAM) role.
// Read only field.
AtlasAWSAccountArn *string `json:"atlasAWSAccountArn,omitempty"`
// Unique external ID that MongoDB Cloud uses when it assumes the IAM role in your Amazon Web Services (AWS) account.
// Read only field.
AtlasAssumedRoleExternalId *string `json:"atlasAssumedRoleExternalId,omitempty"`
// Date and time when someone authorized this role for the specified cloud service provider. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
AuthorizedDate *time.Time `json:"authorizedDate,omitempty"`
// Date and time when someone created this role for the specified cloud service provider. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
CreatedDate *time.Time `json:"createdDate,omitempty"`
// List that contains application features associated with this Amazon Web Services (AWS) Identity and Access Management (IAM) role.
// Read only field.
FeatureUsages *[]CloudProviderAccessFeatureUsage `json:"featureUsages,omitempty"`
// Amazon Resource Name (ARN) that identifies the Amazon Web Services (AWS) Identity and Access Management (IAM) role that MongoDB Cloud assumes when it accesses resources in your AWS account.
IamAssumedRoleArn *string `json:"iamAssumedRoleArn,omitempty"`
// Unique 24-hexadecimal digit string that identifies the role.
// Read only field.
RoleId *string `json:"roleId,omitempty"`
}
// NewCloudProviderAccessAWSIAMRoleAllOf instantiates a new CloudProviderAccessAWSIAMRoleAllOf 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 NewCloudProviderAccessAWSIAMRoleAllOf() *CloudProviderAccessAWSIAMRoleAllOf {
this := CloudProviderAccessAWSIAMRoleAllOf{}
return &this
}
// NewCloudProviderAccessAWSIAMRoleAllOfWithDefaults instantiates a new CloudProviderAccessAWSIAMRoleAllOf 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 NewCloudProviderAccessAWSIAMRoleAllOfWithDefaults() *CloudProviderAccessAWSIAMRoleAllOf {
this := CloudProviderAccessAWSIAMRoleAllOf{}
return &this
}
// GetAtlasAWSAccountArn returns the AtlasAWSAccountArn field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetAtlasAWSAccountArn() string {
if o == nil || IsNil(o.AtlasAWSAccountArn) {
var ret string
return ret
}
return *o.AtlasAWSAccountArn
}
// GetAtlasAWSAccountArnOk returns a tuple with the AtlasAWSAccountArn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetAtlasAWSAccountArnOk() (*string, bool) {
if o == nil || IsNil(o.AtlasAWSAccountArn) {
return nil, false
}
return o.AtlasAWSAccountArn, true
}
// HasAtlasAWSAccountArn returns a boolean if a field has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) HasAtlasAWSAccountArn() bool {
if o != nil && !IsNil(o.AtlasAWSAccountArn) {
return true
}
return false
}
// SetAtlasAWSAccountArn gets a reference to the given string and assigns it to the AtlasAWSAccountArn field.
func (o *CloudProviderAccessAWSIAMRoleAllOf) SetAtlasAWSAccountArn(v string) {
o.AtlasAWSAccountArn = &v
}
// GetAtlasAssumedRoleExternalId returns the AtlasAssumedRoleExternalId field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetAtlasAssumedRoleExternalId() string {
if o == nil || IsNil(o.AtlasAssumedRoleExternalId) {
var ret string
return ret
}
return *o.AtlasAssumedRoleExternalId
}
// GetAtlasAssumedRoleExternalIdOk returns a tuple with the AtlasAssumedRoleExternalId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetAtlasAssumedRoleExternalIdOk() (*string, bool) {
if o == nil || IsNil(o.AtlasAssumedRoleExternalId) {
return nil, false
}
return o.AtlasAssumedRoleExternalId, true
}
// HasAtlasAssumedRoleExternalId returns a boolean if a field has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) HasAtlasAssumedRoleExternalId() bool {
if o != nil && !IsNil(o.AtlasAssumedRoleExternalId) {
return true
}
return false
}
// SetAtlasAssumedRoleExternalId gets a reference to the given string and assigns it to the AtlasAssumedRoleExternalId field.
func (o *CloudProviderAccessAWSIAMRoleAllOf) SetAtlasAssumedRoleExternalId(v string) {
o.AtlasAssumedRoleExternalId = &v
}
// GetAuthorizedDate returns the AuthorizedDate field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetAuthorizedDate() time.Time {
if o == nil || IsNil(o.AuthorizedDate) {
var ret time.Time
return ret
}
return *o.AuthorizedDate
}
// GetAuthorizedDateOk returns a tuple with the AuthorizedDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetAuthorizedDateOk() (*time.Time, bool) {
if o == nil || IsNil(o.AuthorizedDate) {
return nil, false
}
return o.AuthorizedDate, true
}
// HasAuthorizedDate returns a boolean if a field has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) HasAuthorizedDate() bool {
if o != nil && !IsNil(o.AuthorizedDate) {
return true
}
return false
}
// SetAuthorizedDate gets a reference to the given time.Time and assigns it to the AuthorizedDate field.
func (o *CloudProviderAccessAWSIAMRoleAllOf) SetAuthorizedDate(v time.Time) {
o.AuthorizedDate = &v
}
// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetCreatedDate() time.Time {
if o == nil || IsNil(o.CreatedDate) {
var ret time.Time
return ret
}
return *o.CreatedDate
}
// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetCreatedDateOk() (*time.Time, bool) {
if o == nil || IsNil(o.CreatedDate) {
return nil, false
}
return o.CreatedDate, true
}
// HasCreatedDate returns a boolean if a field has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) HasCreatedDate() bool {
if o != nil && !IsNil(o.CreatedDate) {
return true
}
return false
}
// SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.
func (o *CloudProviderAccessAWSIAMRoleAllOf) SetCreatedDate(v time.Time) {
o.CreatedDate = &v
}
// GetFeatureUsages returns the FeatureUsages field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetFeatureUsages() []CloudProviderAccessFeatureUsage {
if o == nil || IsNil(o.FeatureUsages) {
var ret []CloudProviderAccessFeatureUsage
return ret
}
return *o.FeatureUsages
}
// GetFeatureUsagesOk returns a tuple with the FeatureUsages field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetFeatureUsagesOk() (*[]CloudProviderAccessFeatureUsage, bool) {
if o == nil || IsNil(o.FeatureUsages) {
return nil, false
}
return o.FeatureUsages, true
}
// HasFeatureUsages returns a boolean if a field has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) HasFeatureUsages() bool {
if o != nil && !IsNil(o.FeatureUsages) {
return true
}
return false
}
// SetFeatureUsages gets a reference to the given []CloudProviderAccessFeatureUsage and assigns it to the FeatureUsages field.
func (o *CloudProviderAccessAWSIAMRoleAllOf) SetFeatureUsages(v []CloudProviderAccessFeatureUsage) {
o.FeatureUsages = &v
}
// GetIamAssumedRoleArn returns the IamAssumedRoleArn field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetIamAssumedRoleArn() string {
if o == nil || IsNil(o.IamAssumedRoleArn) {
var ret string
return ret
}
return *o.IamAssumedRoleArn
}
// GetIamAssumedRoleArnOk returns a tuple with the IamAssumedRoleArn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) GetIamAssumedRoleArnOk() (*string, bool) {
if o == nil || IsNil(o.IamAssumedRoleArn) {
return nil, false
}
return o.IamAssumedRoleArn, true
}
// HasIamAssumedRoleArn returns a boolean if a field has been set.
func (o *CloudProviderAccessAWSIAMRoleAllOf) HasIamAssumedRoleArn() bool {
if o != nil && !IsNil(o.IamAssumedRoleArn) {
return true
}
return false
}
// SetIamAssumedRoleArn gets a reference to the given string and assigns it to the IamAssumedRoleArn field.
func (o *CloudProviderAccessAWSIAMRoleAllOf) SetIamAssumedRoleArn(v string) {
o.IamAssumedRoleArn = &v
}
// GetRoleId returns the RoleId field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRoleAllOf) 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 *CloudProviderAccessAWSIAMRoleAllOf) 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 *CloudProviderAccessAWSIAMRoleAllOf) 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 *CloudProviderAccessAWSIAMRoleAllOf) SetRoleId(v string) {
o.RoleId = &v
}
func (o CloudProviderAccessAWSIAMRoleAllOf) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CloudProviderAccessAWSIAMRoleAllOf) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.IamAssumedRoleArn) {
toSerialize["iamAssumedRoleArn"] = o.IamAssumedRoleArn
}
return toSerialize, nil
}