AWS SDK for C++  1.9.66
AWS SDK for C++
CreateAccountRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Organizations
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateAccount"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
47  inline const Aws::String& GetEmail() const{ return m_email; }
48 
56  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
57 
65  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
66 
74  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
75 
83  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
84 
92  inline CreateAccountRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
93 
101  inline CreateAccountRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
102 
110  inline CreateAccountRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
111 
112 
116  inline const Aws::String& GetAccountName() const{ return m_accountName; }
117 
121  inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
122 
126  inline void SetAccountName(const Aws::String& value) { m_accountNameHasBeenSet = true; m_accountName = value; }
127 
131  inline void SetAccountName(Aws::String&& value) { m_accountNameHasBeenSet = true; m_accountName = std::move(value); }
132 
136  inline void SetAccountName(const char* value) { m_accountNameHasBeenSet = true; m_accountName.assign(value); }
137 
141  inline CreateAccountRequest& WithAccountName(const Aws::String& value) { SetAccountName(value); return *this;}
142 
146  inline CreateAccountRequest& WithAccountName(Aws::String&& value) { SetAccountName(std::move(value)); return *this;}
147 
151  inline CreateAccountRequest& WithAccountName(const char* value) { SetAccountName(value); return *this;}
152 
153 
174  inline const Aws::String& GetRoleName() const{ return m_roleName; }
175 
196  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
197 
218  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
219 
240  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
241 
262  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
263 
284  inline CreateAccountRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
285 
306  inline CreateAccountRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
307 
328  inline CreateAccountRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
329 
330 
342  inline const IAMUserAccessToBilling& GetIamUserAccessToBilling() const{ return m_iamUserAccessToBilling; }
343 
355  inline bool IamUserAccessToBillingHasBeenSet() const { return m_iamUserAccessToBillingHasBeenSet; }
356 
368  inline void SetIamUserAccessToBilling(const IAMUserAccessToBilling& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = value; }
369 
381  inline void SetIamUserAccessToBilling(IAMUserAccessToBilling&& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = std::move(value); }
382 
394  inline CreateAccountRequest& WithIamUserAccessToBilling(const IAMUserAccessToBilling& value) { SetIamUserAccessToBilling(value); return *this;}
395 
407  inline CreateAccountRequest& WithIamUserAccessToBilling(IAMUserAccessToBilling&& value) { SetIamUserAccessToBilling(std::move(value)); return *this;}
408 
409 
421  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
422 
434  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
435 
447  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
448 
460  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
461 
473  inline CreateAccountRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
474 
486  inline CreateAccountRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
487 
499  inline CreateAccountRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
500 
512  inline CreateAccountRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
513 
514  private:
515 
516  Aws::String m_email;
517  bool m_emailHasBeenSet;
518 
519  Aws::String m_accountName;
520  bool m_accountNameHasBeenSet;
521 
522  Aws::String m_roleName;
523  bool m_roleNameHasBeenSet;
524 
525  IAMUserAccessToBilling m_iamUserAccessToBilling;
526  bool m_iamUserAccessToBillingHasBeenSet;
527 
528  Aws::Vector<Tag> m_tags;
529  bool m_tagsHasBeenSet;
530  };
531 
532 } // namespace Model
533 } // namespace Organizations
534 } // namespace Aws
Aws::Organizations::Model::CreateAccountRequest::WithEmail
CreateAccountRequest & WithEmail(const Aws::String &value)
Definition: CreateAccountRequest.h:92
Aws::Organizations::Model::CreateAccountRequest::AccountNameHasBeenSet
bool AccountNameHasBeenSet() const
Definition: CreateAccountRequest.h:121
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::CreateAccountRequest::WithEmail
CreateAccountRequest & WithEmail(const char *value)
Definition: CreateAccountRequest.h:110
Aws::Organizations::Model::CreateAccountRequest::GetEmail
const Aws::String & GetEmail() const
Definition: CreateAccountRequest.h:47
Aws::Organizations::Model::CreateAccountRequest
Definition: CreateAccountRequest.h:25
Aws::Organizations::Model::CreateAccountRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateAccountRequest.h:447
Aws::Organizations::Model::CreateAccountRequest::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: CreateAccountRequest.h:218
Aws::Organizations::Model::CreateAccountRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: CreateAccountRequest.h:240
Aws::Organizations::Model::CreateAccountRequest::SetRoleName
void SetRoleName(const char *value)
Definition: CreateAccountRequest.h:262
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::CreateAccountRequest::AddTags
CreateAccountRequest & AddTags(Tag &&value)
Definition: CreateAccountRequest.h:512
Aws::Organizations::Model::CreateAccountRequest::WithRoleName
CreateAccountRequest & WithRoleName(const char *value)
Definition: CreateAccountRequest.h:328
AWSVector.h
Aws::Organizations::Model::CreateAccountRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateAccountRequest.h:421
Aws::Organizations::Model::IAMUserAccessToBilling
IAMUserAccessToBilling
Definition: IAMUserAccessToBilling.h:17
Aws::Organizations::Model::CreateAccountRequest::SetAccountName
void SetAccountName(const Aws::String &value)
Definition: CreateAccountRequest.h:126
Aws::Organizations::Model::CreateAccountRequest::SetEmail
void SetEmail(const char *value)
Definition: CreateAccountRequest.h:83
Aws::Organizations::Model::CreateAccountRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAccountRequest.h:33
Aws::Organizations::Model::CreateAccountRequest::IamUserAccessToBillingHasBeenSet
bool IamUserAccessToBillingHasBeenSet() const
Definition: CreateAccountRequest.h:355
Aws::Organizations::Model::CreateAccountRequest::SetIamUserAccessToBilling
void SetIamUserAccessToBilling(const IAMUserAccessToBilling &value)
Definition: CreateAccountRequest.h:368
Aws::Organizations::Model::CreateAccountRequest::AddTags
CreateAccountRequest & AddTags(const Tag &value)
Definition: CreateAccountRequest.h:499
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::CreateAccountRequest::WithAccountName
CreateAccountRequest & WithAccountName(const Aws::String &value)
Definition: CreateAccountRequest.h:141
Aws::Organizations::Model::CreateAccountRequest::WithRoleName
CreateAccountRequest & WithRoleName(const Aws::String &value)
Definition: CreateAccountRequest.h:284
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::CreateAccountRequest::WithAccountName
CreateAccountRequest & WithAccountName(Aws::String &&value)
Definition: CreateAccountRequest.h:146
Aws::Organizations::Model::CreateAccountRequest::WithAccountName
CreateAccountRequest & WithAccountName(const char *value)
Definition: CreateAccountRequest.h:151
Aws::Organizations::Model::CreateAccountRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::CreateAccountRequest::WithIamUserAccessToBilling
CreateAccountRequest & WithIamUserAccessToBilling(IAMUserAccessToBilling &&value)
Definition: CreateAccountRequest.h:407
Aws::Organizations::Model::CreateAccountRequest::SetEmail
void SetEmail(Aws::String &&value)
Definition: CreateAccountRequest.h:74
Aws::Organizations::Model::CreateAccountRequest::WithIamUserAccessToBilling
CreateAccountRequest & WithIamUserAccessToBilling(const IAMUserAccessToBilling &value)
Definition: CreateAccountRequest.h:394
Aws::Organizations::Model::CreateAccountRequest::SetEmail
void SetEmail(const Aws::String &value)
Definition: CreateAccountRequest.h:65
Aws::Organizations::Model::CreateAccountRequest::WithRoleName
CreateAccountRequest & WithRoleName(Aws::String &&value)
Definition: CreateAccountRequest.h:306
Aws::Organizations::Model::CreateAccountRequest::WithEmail
CreateAccountRequest & WithEmail(Aws::String &&value)
Definition: CreateAccountRequest.h:101
AWSString.h
Aws::Organizations::Model::CreateAccountRequest::GetIamUserAccessToBilling
const IAMUserAccessToBilling & GetIamUserAccessToBilling() const
Definition: CreateAccountRequest.h:342
Aws::Organizations::Model::CreateAccountRequest::SetAccountName
void SetAccountName(const char *value)
Definition: CreateAccountRequest.h:136
Aws::Organizations::Model::CreateAccountRequest::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: CreateAccountRequest.h:56
Aws::Organizations::Model::CreateAccountRequest::RoleNameHasBeenSet
bool RoleNameHasBeenSet() const
Definition: CreateAccountRequest.h:196
Aws::Organizations::Model::CreateAccountRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: CreateAccountRequest.h:174
Aws::Organizations::Model::CreateAccountRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAccountRequest.h:434
Tag.h
Aws::Organizations::Model::CreateAccountRequest::GetAccountName
const Aws::String & GetAccountName() const
Definition: CreateAccountRequest.h:116
Aws::Organizations::Model::Tag
Definition: Tag.h:36
Aws::Organizations::Model::CreateAccountRequest::WithTags
CreateAccountRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateAccountRequest.h:473
IAMUserAccessToBilling.h
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::CreateAccountRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateAccountRequest.h:460
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::CreateAccountRequest::WithTags
CreateAccountRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateAccountRequest.h:486
Aws::Organizations::Model::CreateAccountRequest::CreateAccountRequest
CreateAccountRequest()
Aws::Organizations::Model::CreateAccountRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::CreateAccountRequest::SetAccountName
void SetAccountName(Aws::String &&value)
Definition: CreateAccountRequest.h:131
Organizations_EXPORTS.h
Aws::Organizations::Model::CreateAccountRequest::SetIamUserAccessToBilling
void SetIamUserAccessToBilling(IAMUserAccessToBilling &&value)
Definition: CreateAccountRequest.h:381
OrganizationsRequest.h