AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccountRequest.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/organizations/model/IAMUserAccessToBilling.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/organizations/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Organizations
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ORGANIZATIONS_API CreateAccountRequest();
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_ORGANIZATIONS_API Aws::String SerializePayload() const override;
36
37 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
58 inline const Aws::String& GetEmail() const{ return m_email; }
59 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
60 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
61 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
62 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
63 inline CreateAccountRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
64 inline CreateAccountRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
65 inline CreateAccountRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
67
69
72 inline const Aws::String& GetAccountName() const{ return m_accountName; }
73 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
74 inline void SetAccountName(const Aws::String& value) { m_accountNameHasBeenSet = true; m_accountName = value; }
75 inline void SetAccountName(Aws::String&& value) { m_accountNameHasBeenSet = true; m_accountName = std::move(value); }
76 inline void SetAccountName(const char* value) { m_accountNameHasBeenSet = true; m_accountName.assign(value); }
77 inline CreateAccountRequest& WithAccountName(const Aws::String& value) { SetAccountName(value); return *this;}
78 inline CreateAccountRequest& WithAccountName(Aws::String&& value) { SetAccountName(std::move(value)); return *this;}
79 inline CreateAccountRequest& WithAccountName(const char* value) { SetAccountName(value); return *this;}
81
83
102 inline const Aws::String& GetRoleName() const{ return m_roleName; }
103 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
104 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
105 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
106 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
107 inline CreateAccountRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
108 inline CreateAccountRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
109 inline CreateAccountRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
111
113
125 inline const IAMUserAccessToBilling& GetIamUserAccessToBilling() const{ return m_iamUserAccessToBilling; }
126 inline bool IamUserAccessToBillingHasBeenSet() const { return m_iamUserAccessToBillingHasBeenSet; }
127 inline void SetIamUserAccessToBilling(const IAMUserAccessToBilling& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = value; }
128 inline void SetIamUserAccessToBilling(IAMUserAccessToBilling&& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = std::move(value); }
132
134
145 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
148 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
149 inline CreateAccountRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
150 inline CreateAccountRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
151 inline CreateAccountRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
152 inline CreateAccountRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
154 private:
155
156 Aws::String m_email;
157 bool m_emailHasBeenSet = false;
158
159 Aws::String m_accountName;
160 bool m_accountNameHasBeenSet = false;
161
162 Aws::String m_roleName;
163 bool m_roleNameHasBeenSet = false;
164
165 IAMUserAccessToBilling m_iamUserAccessToBilling;
166 bool m_iamUserAccessToBillingHasBeenSet = false;
167
168 Aws::Vector<Tag> m_tags;
169 bool m_tagsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace Organizations
174} // namespace Aws
CreateAccountRequest & WithEmail(Aws::String &&value)
CreateAccountRequest & WithRoleName(const Aws::String &value)
CreateAccountRequest & AddTags(const Tag &value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
CreateAccountRequest & WithIamUserAccessToBilling(IAMUserAccessToBilling &&value)
CreateAccountRequest & WithEmail(const char *value)
CreateAccountRequest & WithAccountName(Aws::String &&value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetIamUserAccessToBilling(const IAMUserAccessToBilling &value)
virtual const char * GetServiceRequestName() const override
CreateAccountRequest & WithEmail(const Aws::String &value)
void SetIamUserAccessToBilling(IAMUserAccessToBilling &&value)
CreateAccountRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAccountRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAccountRequest & WithAccountName(const Aws::String &value)
CreateAccountRequest & WithRoleName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateAccountRequest & WithIamUserAccessToBilling(const IAMUserAccessToBilling &value)
CreateAccountRequest & WithRoleName(Aws::String &&value)
CreateAccountRequest & WithAccountName(const char *value)
const IAMUserAccessToBilling & GetIamUserAccessToBilling() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector