AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateSpaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/repostspace/RepostspaceRequest.h>
10#include <aws/repostspace/Repostspace_EXPORTS.h>
11#include <aws/repostspace/model/SupportedEmailDomainsParameters.h>
12#include <aws/repostspace/model/TierLevel.h>
13
14#include <utility>
15
16namespace Aws {
17namespace repostspace {
18namespace Model {
19
23 public:
24 AWS_REPOSTSPACE_API CreateSpaceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSpace"; }
31
32 AWS_REPOSTSPACE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 CreateSpaceRequest& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetSubdomain() const { return m_subdomain; }
60 inline bool SubdomainHasBeenSet() const { return m_subdomainHasBeenSet; }
61 template <typename SubdomainT = Aws::String>
62 void SetSubdomain(SubdomainT&& value) {
63 m_subdomainHasBeenSet = true;
64 m_subdomain = std::forward<SubdomainT>(value);
65 }
66 template <typename SubdomainT = Aws::String>
67 CreateSpaceRequest& WithSubdomain(SubdomainT&& value) {
68 SetSubdomain(std::forward<SubdomainT>(value));
69 return *this;
70 }
72
74
77 inline TierLevel GetTier() const { return m_tier; }
78 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
79 inline void SetTier(TierLevel value) {
80 m_tierHasBeenSet = true;
81 m_tier = value;
82 }
84 SetTier(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 CreateSpaceRequest& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::String& GetUserKMSKey() const { return m_userKMSKey; }
115 inline bool UserKMSKeyHasBeenSet() const { return m_userKMSKeyHasBeenSet; }
116 template <typename UserKMSKeyT = Aws::String>
117 void SetUserKMSKey(UserKMSKeyT&& value) {
118 m_userKMSKeyHasBeenSet = true;
119 m_userKMSKey = std::forward<UserKMSKeyT>(value);
120 }
121 template <typename UserKMSKeyT = Aws::String>
122 CreateSpaceRequest& WithUserKMSKey(UserKMSKeyT&& value) {
123 SetUserKMSKey(std::forward<UserKMSKeyT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 CreateSpaceRequest& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 CreateSpaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
158 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
159 template <typename RoleArnT = Aws::String>
160 void SetRoleArn(RoleArnT&& value) {
161 m_roleArnHasBeenSet = true;
162 m_roleArn = std::forward<RoleArnT>(value);
163 }
164 template <typename RoleArnT = Aws::String>
165 CreateSpaceRequest& WithRoleArn(RoleArnT&& value) {
166 SetRoleArn(std::forward<RoleArnT>(value));
167 return *this;
168 }
170
172
175 inline const SupportedEmailDomainsParameters& GetSupportedEmailDomains() const { return m_supportedEmailDomains; }
176 inline bool SupportedEmailDomainsHasBeenSet() const { return m_supportedEmailDomainsHasBeenSet; }
177 template <typename SupportedEmailDomainsT = SupportedEmailDomainsParameters>
178 void SetSupportedEmailDomains(SupportedEmailDomainsT&& value) {
179 m_supportedEmailDomainsHasBeenSet = true;
180 m_supportedEmailDomains = std::forward<SupportedEmailDomainsT>(value);
181 }
182 template <typename SupportedEmailDomainsT = SupportedEmailDomainsParameters>
183 CreateSpaceRequest& WithSupportedEmailDomains(SupportedEmailDomainsT&& value) {
184 SetSupportedEmailDomains(std::forward<SupportedEmailDomainsT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_name;
190
191 Aws::String m_subdomain;
192
194
195 Aws::String m_description;
196
197 Aws::String m_userKMSKey;
198
200
201 Aws::String m_roleArn;
202
203 SupportedEmailDomainsParameters m_supportedEmailDomains;
204 bool m_nameHasBeenSet = false;
205 bool m_subdomainHasBeenSet = false;
206 bool m_tierHasBeenSet = false;
207 bool m_descriptionHasBeenSet = false;
208 bool m_userKMSKeyHasBeenSet = false;
209 bool m_tagsHasBeenSet = false;
210 bool m_roleArnHasBeenSet = false;
211 bool m_supportedEmailDomainsHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace repostspace
216} // namespace Aws
AWS_REPOSTSPACE_API Aws::String SerializePayload() const override
AWS_REPOSTSPACE_API CreateSpaceRequest()=default
CreateSpaceRequest & WithTier(TierLevel value)
CreateSpaceRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateSpaceRequest & WithSupportedEmailDomains(SupportedEmailDomainsT &&value)
const SupportedEmailDomainsParameters & GetSupportedEmailDomains() const
CreateSpaceRequest & WithUserKMSKey(UserKMSKeyT &&value)
CreateSpaceRequest & WithRoleArn(RoleArnT &&value)
CreateSpaceRequest & WithTags(TagsT &&value)
CreateSpaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSpaceRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSpaceRequest & WithSubdomain(SubdomainT &&value)
void SetSupportedEmailDomains(SupportedEmailDomainsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String