AWS SDK for C++  1.9.102
AWS SDK for C++
Account.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 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
56  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 
63  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 
70  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
71 
77  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
78 
84  inline Account& WithId(const Aws::String& value) { SetId(value); return *this;}
85 
91  inline Account& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
92 
98  inline Account& WithId(const char* value) { SetId(value); return *this;}
99 
100 
108  inline const Aws::String& GetArn() const{ return m_arn; }
109 
117  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
118 
126  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
127 
135  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
136 
144  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
145 
153  inline Account& WithArn(const Aws::String& value) { SetArn(value); return *this;}
154 
162  inline Account& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
163 
171  inline Account& WithArn(const char* value) { SetArn(value); return *this;}
172 
173 
179  inline const Aws::String& GetEmail() const{ return m_email; }
180 
186  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
187 
193  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
194 
200  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
201 
207  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
208 
214  inline Account& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
215 
221  inline Account& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
222 
228  inline Account& WithEmail(const char* value) { SetEmail(value); return *this;}
229 
230 
237  inline const Aws::String& GetName() const{ return m_name; }
238 
245  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
246 
253  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
254 
261  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
262 
269  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
270 
277  inline Account& WithName(const Aws::String& value) { SetName(value); return *this;}
278 
285  inline Account& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
286 
293  inline Account& WithName(const char* value) { SetName(value); return *this;}
294 
295 
299  inline const AccountStatus& GetStatus() const{ return m_status; }
300 
304  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
305 
309  inline void SetStatus(const AccountStatus& value) { m_statusHasBeenSet = true; m_status = value; }
310 
314  inline void SetStatus(AccountStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
315 
319  inline Account& WithStatus(const AccountStatus& value) { SetStatus(value); return *this;}
320 
324  inline Account& WithStatus(AccountStatus&& value) { SetStatus(std::move(value)); return *this;}
325 
326 
330  inline const AccountJoinedMethod& GetJoinedMethod() const{ return m_joinedMethod; }
331 
335  inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; }
336 
340  inline void SetJoinedMethod(const AccountJoinedMethod& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; }
341 
345  inline void SetJoinedMethod(AccountJoinedMethod&& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = std::move(value); }
346 
350  inline Account& WithJoinedMethod(const AccountJoinedMethod& value) { SetJoinedMethod(value); return *this;}
351 
355  inline Account& WithJoinedMethod(AccountJoinedMethod&& value) { SetJoinedMethod(std::move(value)); return *this;}
356 
357 
361  inline const Aws::Utils::DateTime& GetJoinedTimestamp() const{ return m_joinedTimestamp; }
362 
366  inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; }
367 
371  inline void SetJoinedTimestamp(const Aws::Utils::DateTime& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = value; }
372 
376  inline void SetJoinedTimestamp(Aws::Utils::DateTime&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::move(value); }
377 
381  inline Account& WithJoinedTimestamp(const Aws::Utils::DateTime& value) { SetJoinedTimestamp(value); return *this;}
382 
386  inline Account& WithJoinedTimestamp(Aws::Utils::DateTime&& value) { SetJoinedTimestamp(std::move(value)); return *this;}
387 
388  private:
389 
390  Aws::String m_id;
391  bool m_idHasBeenSet;
392 
393  Aws::String m_arn;
394  bool m_arnHasBeenSet;
395 
396  Aws::String m_email;
397  bool m_emailHasBeenSet;
398 
399  Aws::String m_name;
400  bool m_nameHasBeenSet;
401 
402  AccountStatus m_status;
403  bool m_statusHasBeenSet;
404 
405  AccountJoinedMethod m_joinedMethod;
406  bool m_joinedMethodHasBeenSet;
407 
408  Aws::Utils::DateTime m_joinedTimestamp;
409  bool m_joinedTimestampHasBeenSet;
410  };
411 
412 } // namespace Model
413 } // namespace Organizations
414 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Organizations::Model::Account::WithId
Account & WithId(Aws::String &&value)
Definition: Account.h:91
Aws::Organizations::Model::AccountJoinedMethod
AccountJoinedMethod
Definition: AccountJoinedMethod.h:17
Aws::Organizations::Model::Account::WithStatus
Account & WithStatus(const AccountStatus &value)
Definition: Account.h:319
Aws::Organizations::Model::Account::WithName
Account & WithName(const char *value)
Definition: Account.h:293
Aws::Organizations::Model::Account
Definition: Account.h:36
Aws::Organizations::Model::Account::SetId
void SetId(Aws::String &&value)
Definition: Account.h:70
Aws::Organizations::Model::Account::GetJoinedMethod
const AccountJoinedMethod & GetJoinedMethod() const
Definition: Account.h:330
Aws::Organizations::Model::Account::SetJoinedTimestamp
void SetJoinedTimestamp(const Aws::Utils::DateTime &value)
Definition: Account.h:371
Aws::Organizations::Model::Account::WithJoinedTimestamp
Account & WithJoinedTimestamp(Aws::Utils::DateTime &&value)
Definition: Account.h:386
DateTime.h
Aws::Organizations::Model::Account::WithEmail
Account & WithEmail(Aws::String &&value)
Definition: Account.h:221
Aws::Organizations::Model::Account::JoinedMethodHasBeenSet
bool JoinedMethodHasBeenSet() const
Definition: Account.h:335
Aws::Organizations::Model::Account::SetEmail
void SetEmail(Aws::String &&value)
Definition: Account.h:200
Aws::Organizations::Model::Account::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::Account::GetStatus
const AccountStatus & GetStatus() const
Definition: Account.h:299
Aws::Organizations::Model::Account::GetJoinedTimestamp
const Aws::Utils::DateTime & GetJoinedTimestamp() const
Definition: Account.h:361
Aws::Organizations::Model::Account::GetName
const Aws::String & GetName() const
Definition: Account.h:237
Aws::Organizations::Model::Account::SetArn
void SetArn(Aws::String &&value)
Definition: Account.h:135
Aws::Organizations::Model::Account::SetName
void SetName(Aws::String &&value)
Definition: Account.h:261
Aws::Organizations::Model::Account::SetJoinedMethod
void SetJoinedMethod(const AccountJoinedMethod &value)
Definition: Account.h:340
Aws::Organizations::Model::Account::WithJoinedMethod
Account & WithJoinedMethod(AccountJoinedMethod &&value)
Definition: Account.h:355
Aws::Organizations::Model::Account::SetArn
void SetArn(const char *value)
Definition: Account.h:144
AccountStatus.h
Aws::Organizations::Model::Account::WithArn
Account & WithArn(const Aws::String &value)
Definition: Account.h:153
Aws::Organizations::Model::Account::GetId
const Aws::String & GetId() const
Definition: Account.h:49
Aws::Organizations::Model::Account::SetArn
void SetArn(const Aws::String &value)
Definition: Account.h:126
Aws::Organizations::Model::Account::JoinedTimestampHasBeenSet
bool JoinedTimestampHasBeenSet() const
Definition: Account.h:366
Aws::Organizations::Model::Account::SetId
void SetId(const char *value)
Definition: Account.h:77
Aws::Organizations::Model::Account::Account
Account(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Account::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Account.h:56
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Account::SetEmail
void SetEmail(const char *value)
Definition: Account.h:207
Aws::Organizations::Model::Account::WithJoinedMethod
Account & WithJoinedMethod(const AccountJoinedMethod &value)
Definition: Account.h:350
Aws::Organizations::Model::Account::WithArn
Account & WithArn(const char *value)
Definition: Account.h:171
Aws::Organizations::Model::Account::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Account.h:245
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Organizations::Model::Account::SetJoinedTimestamp
void SetJoinedTimestamp(Aws::Utils::DateTime &&value)
Definition: Account.h:376
Aws::Organizations::Model::Account::WithName
Account & WithName(const Aws::String &value)
Definition: Account.h:277
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::Account::SetName
void SetName(const Aws::String &value)
Definition: Account.h:253
Aws::Organizations::Model::Account::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Account.h:117
Aws::Organizations::Model::Account::SetEmail
void SetEmail(const Aws::String &value)
Definition: Account.h:193
Aws::Organizations::Model::Account::SetStatus
void SetStatus(AccountStatus &&value)
Definition: Account.h:314
Aws::Organizations::Model::Account::WithName
Account & WithName(Aws::String &&value)
Definition: Account.h:285
Aws::Organizations::Model::Account::WithId
Account & WithId(const Aws::String &value)
Definition: Account.h:84
Aws::Organizations::Model::Account::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: Account.h:186
Aws::Organizations::Model::Account::WithEmail
Account & WithEmail(const Aws::String &value)
Definition: Account.h:214
Aws::Organizations::Model::Account::WithJoinedTimestamp
Account & WithJoinedTimestamp(const Aws::Utils::DateTime &value)
Definition: Account.h:381
Aws::Organizations::Model::Account::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Account.h:304
Aws::Organizations::Model::Account::SetId
void SetId(const Aws::String &value)
Definition: Account.h:63
Aws::Organizations::Model::Account::GetArn
const Aws::String & GetArn() const
Definition: Account.h:108
Aws::Organizations::Model::Account::GetEmail
const Aws::String & GetEmail() const
Definition: Account.h:179
Aws::Organizations::Model::Account::Account
Account()
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::Account::operator=
Account & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Account::SetJoinedMethod
void SetJoinedMethod(AccountJoinedMethod &&value)
Definition: Account.h:345
Aws::Organizations::Model::Account::WithStatus
Account & WithStatus(AccountStatus &&value)
Definition: Account.h:324
Aws::Organizations::Model::Account::SetStatus
void SetStatus(const AccountStatus &value)
Definition: Account.h:309
Aws::Organizations::Model::Account::SetName
void SetName(const char *value)
Definition: Account.h:269
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
AccountJoinedMethod.h
Aws::Organizations::Model::Account::WithId
Account & WithId(const char *value)
Definition: Account.h:98
Aws::Organizations::Model::Account::WithArn
Account & WithArn(Aws::String &&value)
Definition: Account.h:162
Aws::Organizations::Model::Account::WithEmail
Account & WithEmail(const char *value)
Definition: Account.h:228
Aws::Organizations::Model::AccountStatus
AccountStatus
Definition: AccountStatus.h:17