AWS SDK for C++  1.9.102
AWS SDK for C++
DelegatedAdministrator.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Organizations
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline DelegatedAdministrator& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline DelegatedAdministrator& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
82  inline DelegatedAdministrator& WithId(const char* value) { SetId(value); return *this;}
83 
84 
88  inline const Aws::String& GetArn() const{ return m_arn; }
89 
93  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 
98  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
99 
103  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
104 
108  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
109 
113  inline DelegatedAdministrator& WithArn(const Aws::String& value) { SetArn(value); return *this;}
114 
118  inline DelegatedAdministrator& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
119 
123  inline DelegatedAdministrator& WithArn(const char* value) { SetArn(value); return *this;}
124 
125 
130  inline const Aws::String& GetEmail() const{ return m_email; }
131 
136  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
137 
142  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
143 
148  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
149 
154  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
155 
160  inline DelegatedAdministrator& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
161 
166  inline DelegatedAdministrator& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
167 
172  inline DelegatedAdministrator& WithEmail(const char* value) { SetEmail(value); return *this;}
173 
174 
178  inline const Aws::String& GetName() const{ return m_name; }
179 
183  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
184 
188  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
189 
193  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
194 
198  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
199 
203  inline DelegatedAdministrator& WithName(const Aws::String& value) { SetName(value); return *this;}
204 
208  inline DelegatedAdministrator& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
209 
213  inline DelegatedAdministrator& WithName(const char* value) { SetName(value); return *this;}
214 
215 
219  inline const AccountStatus& GetStatus() const{ return m_status; }
220 
224  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
225 
229  inline void SetStatus(const AccountStatus& value) { m_statusHasBeenSet = true; m_status = value; }
230 
234  inline void SetStatus(AccountStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
235 
239  inline DelegatedAdministrator& WithStatus(const AccountStatus& value) { SetStatus(value); return *this;}
240 
244  inline DelegatedAdministrator& WithStatus(AccountStatus&& value) { SetStatus(std::move(value)); return *this;}
245 
246 
251  inline const AccountJoinedMethod& GetJoinedMethod() const{ return m_joinedMethod; }
252 
257  inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; }
258 
263  inline void SetJoinedMethod(const AccountJoinedMethod& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; }
264 
269  inline void SetJoinedMethod(AccountJoinedMethod&& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = std::move(value); }
270 
275  inline DelegatedAdministrator& WithJoinedMethod(const AccountJoinedMethod& value) { SetJoinedMethod(value); return *this;}
276 
281  inline DelegatedAdministrator& WithJoinedMethod(AccountJoinedMethod&& value) { SetJoinedMethod(std::move(value)); return *this;}
282 
283 
288  inline const Aws::Utils::DateTime& GetJoinedTimestamp() const{ return m_joinedTimestamp; }
289 
294  inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; }
295 
300  inline void SetJoinedTimestamp(const Aws::Utils::DateTime& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = value; }
301 
306  inline void SetJoinedTimestamp(Aws::Utils::DateTime&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::move(value); }
307 
312  inline DelegatedAdministrator& WithJoinedTimestamp(const Aws::Utils::DateTime& value) { SetJoinedTimestamp(value); return *this;}
313 
318  inline DelegatedAdministrator& WithJoinedTimestamp(Aws::Utils::DateTime&& value) { SetJoinedTimestamp(std::move(value)); return *this;}
319 
320 
324  inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const{ return m_delegationEnabledDate; }
325 
329  inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; }
330 
334  inline void SetDelegationEnabledDate(const Aws::Utils::DateTime& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = value; }
335 
339  inline void SetDelegationEnabledDate(Aws::Utils::DateTime&& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = std::move(value); }
340 
344  inline DelegatedAdministrator& WithDelegationEnabledDate(const Aws::Utils::DateTime& value) { SetDelegationEnabledDate(value); return *this;}
345 
349  inline DelegatedAdministrator& WithDelegationEnabledDate(Aws::Utils::DateTime&& value) { SetDelegationEnabledDate(std::move(value)); return *this;}
350 
351  private:
352 
353  Aws::String m_id;
354  bool m_idHasBeenSet;
355 
356  Aws::String m_arn;
357  bool m_arnHasBeenSet;
358 
359  Aws::String m_email;
360  bool m_emailHasBeenSet;
361 
362  Aws::String m_name;
363  bool m_nameHasBeenSet;
364 
365  AccountStatus m_status;
366  bool m_statusHasBeenSet;
367 
368  AccountJoinedMethod m_joinedMethod;
369  bool m_joinedMethodHasBeenSet;
370 
371  Aws::Utils::DateTime m_joinedTimestamp;
372  bool m_joinedTimestampHasBeenSet;
373 
374  Aws::Utils::DateTime m_delegationEnabledDate;
375  bool m_delegationEnabledDateHasBeenSet;
376  };
377 
378 } // namespace Model
379 } // namespace Organizations
380 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Organizations::Model::DelegatedAdministrator::GetName
const Aws::String & GetName() const
Definition: DelegatedAdministrator.h:178
Aws::Organizations::Model::DelegatedAdministrator::WithId
DelegatedAdministrator & WithId(const Aws::String &value)
Definition: DelegatedAdministrator.h:72
Aws::Organizations::Model::DelegatedAdministrator::DelegatedAdministrator
DelegatedAdministrator(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::DelegatedAdministrator::SetEmail
void SetEmail(const char *value)
Definition: DelegatedAdministrator.h:154
Aws::Organizations::Model::AccountJoinedMethod
AccountJoinedMethod
Definition: AccountJoinedMethod.h:17
Aws::Organizations::Model::DelegatedAdministrator::SetEmail
void SetEmail(const Aws::String &value)
Definition: DelegatedAdministrator.h:142
Aws::Organizations::Model::DelegatedAdministrator::GetJoinedTimestamp
const Aws::Utils::DateTime & GetJoinedTimestamp() const
Definition: DelegatedAdministrator.h:288
Aws::Organizations::Model::DelegatedAdministrator::SetJoinedTimestamp
void SetJoinedTimestamp(const Aws::Utils::DateTime &value)
Definition: DelegatedAdministrator.h:300
Aws::Organizations::Model::DelegatedAdministrator::GetDelegationEnabledDate
const Aws::Utils::DateTime & GetDelegationEnabledDate() const
Definition: DelegatedAdministrator.h:324
Aws::Organizations::Model::DelegatedAdministrator::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: DelegatedAdministrator.h:136
Aws::Organizations::Model::DelegatedAdministrator::SetId
void SetId(Aws::String &&value)
Definition: DelegatedAdministrator.h:62
Aws::Organizations::Model::DelegatedAdministrator::WithId
DelegatedAdministrator & WithId(Aws::String &&value)
Definition: DelegatedAdministrator.h:77
DateTime.h
Aws::Organizations::Model::DelegatedAdministrator::WithArn
DelegatedAdministrator & WithArn(const char *value)
Definition: DelegatedAdministrator.h:123
Aws::Organizations::Model::DelegatedAdministrator::WithName
DelegatedAdministrator & WithName(const Aws::String &value)
Definition: DelegatedAdministrator.h:203
Aws::Organizations::Model::DelegatedAdministrator::SetName
void SetName(Aws::String &&value)
Definition: DelegatedAdministrator.h:193
Aws::Organizations::Model::DelegatedAdministrator::SetArn
void SetArn(const Aws::String &value)
Definition: DelegatedAdministrator.h:98
Aws::Organizations::Model::DelegatedAdministrator::WithDelegationEnabledDate
DelegatedAdministrator & WithDelegationEnabledDate(const Aws::Utils::DateTime &value)
Definition: DelegatedAdministrator.h:344
Aws::Organizations::Model::DelegatedAdministrator::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: DelegatedAdministrator.h:93
Aws::Organizations::Model::DelegatedAdministrator::WithArn
DelegatedAdministrator & WithArn(Aws::String &&value)
Definition: DelegatedAdministrator.h:118
Aws::Organizations::Model::DelegatedAdministrator::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::DelegatedAdministrator::WithEmail
DelegatedAdministrator & WithEmail(const char *value)
Definition: DelegatedAdministrator.h:172
Aws::Organizations::Model::DelegatedAdministrator::operator=
DelegatedAdministrator & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::DelegatedAdministrator::WithArn
DelegatedAdministrator & WithArn(const Aws::String &value)
Definition: DelegatedAdministrator.h:113
Aws::Organizations::Model::DelegatedAdministrator::WithJoinedTimestamp
DelegatedAdministrator & WithJoinedTimestamp(const Aws::Utils::DateTime &value)
Definition: DelegatedAdministrator.h:312
Aws::Organizations::Model::DelegatedAdministrator::JoinedMethodHasBeenSet
bool JoinedMethodHasBeenSet() const
Definition: DelegatedAdministrator.h:257
Aws::Organizations::Model::DelegatedAdministrator::WithDelegationEnabledDate
DelegatedAdministrator & WithDelegationEnabledDate(Aws::Utils::DateTime &&value)
Definition: DelegatedAdministrator.h:349
AccountStatus.h
Aws::Organizations::Model::DelegatedAdministrator::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DelegatedAdministrator.h:183
Aws::Organizations::Model::DelegatedAdministrator::SetId
void SetId(const char *value)
Definition: DelegatedAdministrator.h:67
Aws::Organizations::Model::DelegatedAdministrator::DelegatedAdministrator
DelegatedAdministrator()
Aws::Organizations::Model::DelegatedAdministrator::WithName
DelegatedAdministrator & WithName(Aws::String &&value)
Definition: DelegatedAdministrator.h:208
Aws::Organizations::Model::DelegatedAdministrator::GetEmail
const Aws::String & GetEmail() const
Definition: DelegatedAdministrator.h:130
Aws::Organizations::Model::DelegatedAdministrator::WithId
DelegatedAdministrator & WithId(const char *value)
Definition: DelegatedAdministrator.h:82
Aws::Organizations::Model::DelegatedAdministrator::SetDelegationEnabledDate
void SetDelegationEnabledDate(const Aws::Utils::DateTime &value)
Definition: DelegatedAdministrator.h:334
Aws::Organizations::Model::DelegatedAdministrator
Definition: DelegatedAdministrator.h:36
Aws::Organizations::Model::DelegatedAdministrator::SetArn
void SetArn(const char *value)
Definition: DelegatedAdministrator.h:108
Aws::Organizations::Model::DelegatedAdministrator::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: DelegatedAdministrator.h:224
Aws::Organizations::Model::DelegatedAdministrator::SetJoinedMethod
void SetJoinedMethod(const AccountJoinedMethod &value)
Definition: DelegatedAdministrator.h:263
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::DelegatedAdministrator::SetArn
void SetArn(Aws::String &&value)
Definition: DelegatedAdministrator.h:103
Aws::Organizations::Model::DelegatedAdministrator::SetDelegationEnabledDate
void SetDelegationEnabledDate(Aws::Utils::DateTime &&value)
Definition: DelegatedAdministrator.h:339
Aws::Organizations::Model::DelegatedAdministrator::GetArn
const Aws::String & GetArn() const
Definition: DelegatedAdministrator.h:88
Aws::Organizations::Model::DelegatedAdministrator::WithJoinedTimestamp
DelegatedAdministrator & WithJoinedTimestamp(Aws::Utils::DateTime &&value)
Definition: DelegatedAdministrator.h:318
Aws::Organizations::Model::DelegatedAdministrator::GetJoinedMethod
const AccountJoinedMethod & GetJoinedMethod() const
Definition: DelegatedAdministrator.h:251
Aws::Organizations::Model::DelegatedAdministrator::WithName
DelegatedAdministrator & WithName(const char *value)
Definition: DelegatedAdministrator.h:213
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Organizations::Model::DelegatedAdministrator::IdHasBeenSet
bool IdHasBeenSet() const
Definition: DelegatedAdministrator.h:52
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::DelegatedAdministrator::WithJoinedMethod
DelegatedAdministrator & WithJoinedMethod(AccountJoinedMethod &&value)
Definition: DelegatedAdministrator.h:281
Aws::Organizations::Model::DelegatedAdministrator::JoinedTimestampHasBeenSet
bool JoinedTimestampHasBeenSet() const
Definition: DelegatedAdministrator.h:294
Aws::Organizations::Model::DelegatedAdministrator::DelegationEnabledDateHasBeenSet
bool DelegationEnabledDateHasBeenSet() const
Definition: DelegatedAdministrator.h:329
Aws::Organizations::Model::DelegatedAdministrator::WithStatus
DelegatedAdministrator & WithStatus(AccountStatus &&value)
Definition: DelegatedAdministrator.h:244
Aws::Organizations::Model::DelegatedAdministrator::WithEmail
DelegatedAdministrator & WithEmail(Aws::String &&value)
Definition: DelegatedAdministrator.h:166
Aws::Organizations::Model::DelegatedAdministrator::WithEmail
DelegatedAdministrator & WithEmail(const Aws::String &value)
Definition: DelegatedAdministrator.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::DelegatedAdministrator::GetId
const Aws::String & GetId() const
Definition: DelegatedAdministrator.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::DelegatedAdministrator::WithStatus
DelegatedAdministrator & WithStatus(const AccountStatus &value)
Definition: DelegatedAdministrator.h:239
Aws::Organizations::Model::DelegatedAdministrator::SetName
void SetName(const Aws::String &value)
Definition: DelegatedAdministrator.h:188
Aws::Organizations::Model::DelegatedAdministrator::SetName
void SetName(const char *value)
Definition: DelegatedAdministrator.h:198
AccountJoinedMethod.h
Aws::Organizations::Model::DelegatedAdministrator::SetJoinedTimestamp
void SetJoinedTimestamp(Aws::Utils::DateTime &&value)
Definition: DelegatedAdministrator.h:306
Aws::Organizations::Model::DelegatedAdministrator::SetStatus
void SetStatus(AccountStatus &&value)
Definition: DelegatedAdministrator.h:234
Aws::Organizations::Model::DelegatedAdministrator::GetStatus
const AccountStatus & GetStatus() const
Definition: DelegatedAdministrator.h:219
Aws::Organizations::Model::DelegatedAdministrator::SetJoinedMethod
void SetJoinedMethod(AccountJoinedMethod &&value)
Definition: DelegatedAdministrator.h:269
Aws::Organizations::Model::DelegatedAdministrator::SetId
void SetId(const Aws::String &value)
Definition: DelegatedAdministrator.h:57
Aws::Organizations::Model::DelegatedAdministrator::SetEmail
void SetEmail(Aws::String &&value)
Definition: DelegatedAdministrator.h:148
Aws::Organizations::Model::DelegatedAdministrator::SetStatus
void SetStatus(const AccountStatus &value)
Definition: DelegatedAdministrator.h:229
Aws::Organizations::Model::DelegatedAdministrator::WithJoinedMethod
DelegatedAdministrator & WithJoinedMethod(const AccountJoinedMethod &value)
Definition: DelegatedAdministrator.h:275
Aws::Organizations::Model::AccountStatus
AccountStatus
Definition: AccountStatus.h:17