AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSpaceRequest.h
1
6#pragma once
7#include <aws/repostspace/Repostspace_EXPORTS.h>
8#include <aws/repostspace/RepostspaceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/repostspace/model/TierLevel.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/repostspace/model/SupportedEmailDomainsParameters.h>
13#include <utility>
14
15namespace Aws
16{
17namespace repostspace
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_REPOSTSPACE_API CreateSpaceRequest() = 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 "CreateSpace"; }
34
35 AWS_REPOSTSPACE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateSpaceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
57 inline const Aws::String& GetSubdomain() const { return m_subdomain; }
58 inline bool SubdomainHasBeenSet() const { return m_subdomainHasBeenSet; }
59 template<typename SubdomainT = Aws::String>
60 void SetSubdomain(SubdomainT&& value) { m_subdomainHasBeenSet = true; m_subdomain = std::forward<SubdomainT>(value); }
61 template<typename SubdomainT = Aws::String>
62 CreateSpaceRequest& WithSubdomain(SubdomainT&& value) { SetSubdomain(std::forward<SubdomainT>(value)); return *this;}
64
66
69 inline TierLevel GetTier() const { return m_tier; }
70 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
71 inline void SetTier(TierLevel value) { m_tierHasBeenSet = true; m_tier = value; }
72 inline CreateSpaceRequest& WithTier(TierLevel value) { SetTier(value); return *this;}
74
76
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template<typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
84 template<typename DescriptionT = Aws::String>
85 CreateSpaceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
87
89
94 inline const Aws::String& GetUserKMSKey() const { return m_userKMSKey; }
95 inline bool UserKMSKeyHasBeenSet() const { return m_userKMSKeyHasBeenSet; }
96 template<typename UserKMSKeyT = Aws::String>
97 void SetUserKMSKey(UserKMSKeyT&& value) { m_userKMSKeyHasBeenSet = true; m_userKMSKey = std::forward<UserKMSKeyT>(value); }
98 template<typename UserKMSKeyT = Aws::String>
99 CreateSpaceRequest& WithUserKMSKey(UserKMSKeyT&& value) { SetUserKMSKey(std::forward<UserKMSKeyT>(value)); return *this;}
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 CreateSpaceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 CreateSpaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
114 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
115 }
117
119
123 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
124 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
125 template<typename RoleArnT = Aws::String>
126 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
127 template<typename RoleArnT = Aws::String>
128 CreateSpaceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
130
132
135 inline const SupportedEmailDomainsParameters& GetSupportedEmailDomains() const { return m_supportedEmailDomains; }
136 inline bool SupportedEmailDomainsHasBeenSet() const { return m_supportedEmailDomainsHasBeenSet; }
137 template<typename SupportedEmailDomainsT = SupportedEmailDomainsParameters>
138 void SetSupportedEmailDomains(SupportedEmailDomainsT&& value) { m_supportedEmailDomainsHasBeenSet = true; m_supportedEmailDomains = std::forward<SupportedEmailDomainsT>(value); }
139 template<typename SupportedEmailDomainsT = SupportedEmailDomainsParameters>
140 CreateSpaceRequest& WithSupportedEmailDomains(SupportedEmailDomainsT&& value) { SetSupportedEmailDomains(std::forward<SupportedEmailDomainsT>(value)); return *this;}
142 private:
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_subdomain;
148 bool m_subdomainHasBeenSet = false;
149
151 bool m_tierHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
156 Aws::String m_userKMSKey;
157 bool m_userKMSKeyHasBeenSet = false;
158
160 bool m_tagsHasBeenSet = false;
161
162 Aws::String m_roleArn;
163 bool m_roleArnHasBeenSet = false;
164
165 SupportedEmailDomainsParameters m_supportedEmailDomains;
166 bool m_supportedEmailDomainsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace repostspace
171} // 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