AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGovCloudAccountRequest.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 CreateGovCloudAccountRequest();
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 "CreateGovCloudAccount"; }
34
35 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
36
37 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
62 inline const Aws::String& GetEmail() const{ return m_email; }
63 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
64 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
65 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
66 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
67 inline CreateGovCloudAccountRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
68 inline CreateGovCloudAccountRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
69 inline CreateGovCloudAccountRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
71
73
78 inline const Aws::String& GetAccountName() const{ return m_accountName; }
79 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
80 inline void SetAccountName(const Aws::String& value) { m_accountNameHasBeenSet = true; m_accountName = value; }
81 inline void SetAccountName(Aws::String&& value) { m_accountNameHasBeenSet = true; m_accountName = std::move(value); }
82 inline void SetAccountName(const char* value) { m_accountNameHasBeenSet = true; m_accountName.assign(value); }
83 inline CreateGovCloudAccountRequest& WithAccountName(const Aws::String& value) { SetAccountName(value); return *this;}
84 inline CreateGovCloudAccountRequest& WithAccountName(Aws::String&& value) { SetAccountName(std::move(value)); return *this;}
85 inline CreateGovCloudAccountRequest& WithAccountName(const char* value) { SetAccountName(value); return *this;}
87
89
110 inline const Aws::String& GetRoleName() const{ return m_roleName; }
111 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
112 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
113 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
114 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
115 inline CreateGovCloudAccountRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
116 inline CreateGovCloudAccountRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
117 inline CreateGovCloudAccountRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
119
121
133 inline const IAMUserAccessToBilling& GetIamUserAccessToBilling() const{ return m_iamUserAccessToBilling; }
134 inline bool IamUserAccessToBillingHasBeenSet() const { return m_iamUserAccessToBillingHasBeenSet; }
135 inline void SetIamUserAccessToBilling(const IAMUserAccessToBilling& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = value; }
136 inline void SetIamUserAccessToBilling(IAMUserAccessToBilling&& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = std::move(value); }
140
142
157 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
160 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
161 inline CreateGovCloudAccountRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
162 inline CreateGovCloudAccountRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
163 inline CreateGovCloudAccountRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
164 inline CreateGovCloudAccountRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
166 private:
167
168 Aws::String m_email;
169 bool m_emailHasBeenSet = false;
170
171 Aws::String m_accountName;
172 bool m_accountNameHasBeenSet = false;
173
174 Aws::String m_roleName;
175 bool m_roleNameHasBeenSet = false;
176
177 IAMUserAccessToBilling m_iamUserAccessToBilling;
178 bool m_iamUserAccessToBillingHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Organizations
186} // namespace Aws
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGovCloudAccountRequest & WithRoleName(Aws::String &&value)
CreateGovCloudAccountRequest & WithAccountName(const Aws::String &value)
CreateGovCloudAccountRequest & WithAccountName(const char *value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
CreateGovCloudAccountRequest & WithTags(Aws::Vector< Tag > &&value)
CreateGovCloudAccountRequest & WithAccountName(Aws::String &&value)
CreateGovCloudAccountRequest & WithTags(const Aws::Vector< Tag > &value)
CreateGovCloudAccountRequest & AddTags(const Tag &value)
CreateGovCloudAccountRequest & WithRoleName(const Aws::String &value)
CreateGovCloudAccountRequest & WithEmail(Aws::String &&value)
CreateGovCloudAccountRequest & WithIamUserAccessToBilling(IAMUserAccessToBilling &&value)
CreateGovCloudAccountRequest & WithEmail(const Aws::String &value)
CreateGovCloudAccountRequest & WithIamUserAccessToBilling(const IAMUserAccessToBilling &value)
void SetIamUserAccessToBilling(const IAMUserAccessToBilling &value)
CreateGovCloudAccountRequest & WithRoleName(const char *value)
CreateGovCloudAccountRequest & WithEmail(const char *value)
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