AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
CreateWebExperienceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/QBusinessRequest.h>
11#include <aws/qbusiness/QBusiness_EXPORTS.h>
12#include <aws/qbusiness/model/BrowserExtensionConfiguration.h>
13#include <aws/qbusiness/model/CustomizationConfiguration.h>
14#include <aws/qbusiness/model/IdentityProviderConfiguration.h>
15#include <aws/qbusiness/model/Tag.h>
16#include <aws/qbusiness/model/WebExperienceSamplePromptsControlMode.h>
17
18#include <utility>
19
20namespace Aws {
21namespace QBusiness {
22namespace Model {
23
27 public:
28 AWS_QBUSINESS_API CreateWebExperienceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateWebExperience"; }
35
36 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 template <typename ApplicationIdT = Aws::String>
46 m_applicationIdHasBeenSet = true;
47 m_applicationId = std::forward<ApplicationIdT>(value);
48 }
49 template <typename ApplicationIdT = Aws::String>
51 SetApplicationId(std::forward<ApplicationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTitle() const { return m_title; }
61 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
62 template <typename TitleT = Aws::String>
63 void SetTitle(TitleT&& value) {
64 m_titleHasBeenSet = true;
65 m_title = std::forward<TitleT>(value);
66 }
67 template <typename TitleT = Aws::String>
69 SetTitle(std::forward<TitleT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSubtitle() const { return m_subtitle; }
79 inline bool SubtitleHasBeenSet() const { return m_subtitleHasBeenSet; }
80 template <typename SubtitleT = Aws::String>
81 void SetSubtitle(SubtitleT&& value) {
82 m_subtitleHasBeenSet = true;
83 m_subtitle = std::forward<SubtitleT>(value);
84 }
85 template <typename SubtitleT = Aws::String>
87 SetSubtitle(std::forward<SubtitleT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetWelcomeMessage() const { return m_welcomeMessage; }
98 inline bool WelcomeMessageHasBeenSet() const { return m_welcomeMessageHasBeenSet; }
99 template <typename WelcomeMessageT = Aws::String>
101 m_welcomeMessageHasBeenSet = true;
102 m_welcomeMessage = std::forward<WelcomeMessageT>(value);
103 }
104 template <typename WelcomeMessageT = Aws::String>
106 SetWelcomeMessage(std::forward<WelcomeMessageT>(value));
107 return *this;
108 }
110
112
116 inline WebExperienceSamplePromptsControlMode GetSamplePromptsControlMode() const { return m_samplePromptsControlMode; }
117 inline bool SamplePromptsControlModeHasBeenSet() const { return m_samplePromptsControlModeHasBeenSet; }
119 m_samplePromptsControlModeHasBeenSet = true;
120 m_samplePromptsControlMode = value;
121 }
124 return *this;
125 }
127
129
137 inline const Aws::Vector<Aws::String>& GetOrigins() const { return m_origins; }
138 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
139 template <typename OriginsT = Aws::Vector<Aws::String>>
140 void SetOrigins(OriginsT&& value) {
141 m_originsHasBeenSet = true;
142 m_origins = std::forward<OriginsT>(value);
143 }
144 template <typename OriginsT = Aws::Vector<Aws::String>>
146 SetOrigins(std::forward<OriginsT>(value));
147 return *this;
148 }
149 template <typename OriginsT = Aws::String>
151 m_originsHasBeenSet = true;
152 m_origins.emplace_back(std::forward<OriginsT>(value));
153 return *this;
154 }
156
158
164 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
165 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
166 template <typename RoleArnT = Aws::String>
167 void SetRoleArn(RoleArnT&& value) {
168 m_roleArnHasBeenSet = true;
169 m_roleArn = std::forward<RoleArnT>(value);
170 }
171 template <typename RoleArnT = Aws::String>
173 SetRoleArn(std::forward<RoleArnT>(value));
174 return *this;
175 }
177
179
185 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template <typename TagsT = Aws::Vector<Tag>>
188 void SetTags(TagsT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags = std::forward<TagsT>(value);
191 }
192 template <typename TagsT = Aws::Vector<Tag>>
194 SetTags(std::forward<TagsT>(value));
195 return *this;
196 }
197 template <typename TagsT = Tag>
199 m_tagsHasBeenSet = true;
200 m_tags.emplace_back(std::forward<TagsT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::String& GetClientToken() const { return m_clientToken; }
211 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
212 template <typename ClientTokenT = Aws::String>
214 m_clientTokenHasBeenSet = true;
215 m_clientToken = std::forward<ClientTokenT>(value);
216 }
217 template <typename ClientTokenT = Aws::String>
219 SetClientToken(std::forward<ClientTokenT>(value));
220 return *this;
221 }
223
225
229 inline const IdentityProviderConfiguration& GetIdentityProviderConfiguration() const { return m_identityProviderConfiguration; }
230 inline bool IdentityProviderConfigurationHasBeenSet() const { return m_identityProviderConfigurationHasBeenSet; }
231 template <typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
233 m_identityProviderConfigurationHasBeenSet = true;
234 m_identityProviderConfiguration = std::forward<IdentityProviderConfigurationT>(value);
235 }
236 template <typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
238 SetIdentityProviderConfiguration(std::forward<IdentityProviderConfigurationT>(value));
239 return *this;
240 }
242
244
253 inline const BrowserExtensionConfiguration& GetBrowserExtensionConfiguration() const { return m_browserExtensionConfiguration; }
254 inline bool BrowserExtensionConfigurationHasBeenSet() const { return m_browserExtensionConfigurationHasBeenSet; }
255 template <typename BrowserExtensionConfigurationT = BrowserExtensionConfiguration>
257 m_browserExtensionConfigurationHasBeenSet = true;
258 m_browserExtensionConfiguration = std::forward<BrowserExtensionConfigurationT>(value);
259 }
260 template <typename BrowserExtensionConfigurationT = BrowserExtensionConfiguration>
262 SetBrowserExtensionConfiguration(std::forward<BrowserExtensionConfigurationT>(value));
263 return *this;
264 }
266
268
272 inline const CustomizationConfiguration& GetCustomizationConfiguration() const { return m_customizationConfiguration; }
273 inline bool CustomizationConfigurationHasBeenSet() const { return m_customizationConfigurationHasBeenSet; }
274 template <typename CustomizationConfigurationT = CustomizationConfiguration>
276 m_customizationConfigurationHasBeenSet = true;
277 m_customizationConfiguration = std::forward<CustomizationConfigurationT>(value);
278 }
279 template <typename CustomizationConfigurationT = CustomizationConfiguration>
281 SetCustomizationConfiguration(std::forward<CustomizationConfigurationT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_applicationId;
287 bool m_applicationIdHasBeenSet = false;
288
289 Aws::String m_title;
290 bool m_titleHasBeenSet = false;
291
292 Aws::String m_subtitle;
293 bool m_subtitleHasBeenSet = false;
294
295 Aws::String m_welcomeMessage;
296 bool m_welcomeMessageHasBeenSet = false;
297
299 bool m_samplePromptsControlModeHasBeenSet = false;
300
301 Aws::Vector<Aws::String> m_origins;
302 bool m_originsHasBeenSet = false;
303
304 Aws::String m_roleArn;
305 bool m_roleArnHasBeenSet = false;
306
307 Aws::Vector<Tag> m_tags;
308 bool m_tagsHasBeenSet = false;
309
311 bool m_clientTokenHasBeenSet = true;
312
313 IdentityProviderConfiguration m_identityProviderConfiguration;
314 bool m_identityProviderConfigurationHasBeenSet = false;
315
316 BrowserExtensionConfiguration m_browserExtensionConfiguration;
317 bool m_browserExtensionConfigurationHasBeenSet = false;
318
319 CustomizationConfiguration m_customizationConfiguration;
320 bool m_customizationConfigurationHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace QBusiness
325} // namespace Aws
CreateWebExperienceRequest & WithApplicationId(ApplicationIdT &&value)
const BrowserExtensionConfiguration & GetBrowserExtensionConfiguration() const
CreateWebExperienceRequest & WithTags(TagsT &&value)
const IdentityProviderConfiguration & GetIdentityProviderConfiguration() const
CreateWebExperienceRequest & WithRoleArn(RoleArnT &&value)
void SetSamplePromptsControlMode(WebExperienceSamplePromptsControlMode value)
CreateWebExperienceRequest & WithSamplePromptsControlMode(WebExperienceSamplePromptsControlMode value)
void SetBrowserExtensionConfiguration(BrowserExtensionConfigurationT &&value)
CreateWebExperienceRequest & AddOrigins(OriginsT &&value)
const CustomizationConfiguration & GetCustomizationConfiguration() const
CreateWebExperienceRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateWebExperienceRequest & WithSubtitle(SubtitleT &&value)
WebExperienceSamplePromptsControlMode GetSamplePromptsControlMode() const
AWS_QBUSINESS_API CreateWebExperienceRequest()=default
void SetIdentityProviderConfiguration(IdentityProviderConfigurationT &&value)
CreateWebExperienceRequest & AddTags(TagsT &&value)
CreateWebExperienceRequest & WithTitle(TitleT &&value)
CreateWebExperienceRequest & WithBrowserExtensionConfiguration(BrowserExtensionConfigurationT &&value)
CreateWebExperienceRequest & WithOrigins(OriginsT &&value)
CreateWebExperienceRequest & WithIdentityProviderConfiguration(IdentityProviderConfigurationT &&value)
CreateWebExperienceRequest & WithCustomizationConfiguration(CustomizationConfigurationT &&value)
void SetCustomizationConfiguration(CustomizationConfigurationT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
CreateWebExperienceRequest & WithWelcomeMessage(WelcomeMessageT &&value)
const Aws::Vector< Aws::String > & GetOrigins() const
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector