AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename EmailT = Aws::String>
65 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
66 template<typename EmailT = Aws::String>
67 CreateGovCloudAccountRequest& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
69
71
76 inline const Aws::String& GetAccountName() const { return m_accountName; }
77 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
78 template<typename AccountNameT = Aws::String>
79 void SetAccountName(AccountNameT&& value) { m_accountNameHasBeenSet = true; m_accountName = std::forward<AccountNameT>(value); }
80 template<typename AccountNameT = Aws::String>
81 CreateGovCloudAccountRequest& WithAccountName(AccountNameT&& value) { SetAccountName(std::forward<AccountNameT>(value)); return *this;}
83
85
106 inline const Aws::String& GetRoleName() const { return m_roleName; }
107 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
108 template<typename RoleNameT = Aws::String>
109 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
110 template<typename RoleNameT = Aws::String>
111 CreateGovCloudAccountRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
113
115
127 inline IAMUserAccessToBilling GetIamUserAccessToBilling() const { return m_iamUserAccessToBilling; }
128 inline bool IamUserAccessToBillingHasBeenSet() const { return m_iamUserAccessToBillingHasBeenSet; }
129 inline void SetIamUserAccessToBilling(IAMUserAccessToBilling value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = value; }
132
134
149 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template<typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
153 template<typename TagsT = Aws::Vector<Tag>>
154 CreateGovCloudAccountRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
155 template<typename TagsT = Tag>
156 CreateGovCloudAccountRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
158 private:
159
160 Aws::String m_email;
161 bool m_emailHasBeenSet = false;
162
163 Aws::String m_accountName;
164 bool m_accountNameHasBeenSet = false;
165
166 Aws::String m_roleName;
167 bool m_roleNameHasBeenSet = false;
168
170 bool m_iamUserAccessToBillingHasBeenSet = false;
171
172 Aws::Vector<Tag> m_tags;
173 bool m_tagsHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Organizations
178} // namespace Aws
AWS_ORGANIZATIONS_API CreateGovCloudAccountRequest()=default
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
CreateGovCloudAccountRequest & WithIamUserAccessToBilling(IAMUserAccessToBilling value)
CreateGovCloudAccountRequest & WithRoleName(RoleNameT &&value)
CreateGovCloudAccountRequest & WithEmail(EmailT &&value)
CreateGovCloudAccountRequest & WithAccountName(AccountNameT &&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