AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
CreateWebExperienceRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/WebExperienceSamplePromptsControlMode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/qbusiness/model/IdentityProviderConfiguration.h>
13#include <aws/qbusiness/model/BrowserExtensionConfiguration.h>
14#include <aws/qbusiness/model/CustomizationConfiguration.h>
15#include <aws/qbusiness/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace QBusiness
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_QBUSINESS_API CreateWebExperienceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateWebExperience"; }
38
39 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
47 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
48 template<typename ApplicationIdT = Aws::String>
49 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
50 template<typename ApplicationIdT = Aws::String>
51 CreateWebExperienceRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetTitle() const { return m_title; }
59 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
60 template<typename TitleT = Aws::String>
61 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
62 template<typename TitleT = Aws::String>
63 CreateWebExperienceRequest& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
65
67
70 inline const Aws::String& GetSubtitle() const { return m_subtitle; }
71 inline bool SubtitleHasBeenSet() const { return m_subtitleHasBeenSet; }
72 template<typename SubtitleT = Aws::String>
73 void SetSubtitle(SubtitleT&& value) { m_subtitleHasBeenSet = true; m_subtitle = std::forward<SubtitleT>(value); }
74 template<typename SubtitleT = Aws::String>
75 CreateWebExperienceRequest& WithSubtitle(SubtitleT&& value) { SetSubtitle(std::forward<SubtitleT>(value)); return *this;}
77
79
83 inline const Aws::String& GetWelcomeMessage() const { return m_welcomeMessage; }
84 inline bool WelcomeMessageHasBeenSet() const { return m_welcomeMessageHasBeenSet; }
85 template<typename WelcomeMessageT = Aws::String>
86 void SetWelcomeMessage(WelcomeMessageT&& value) { m_welcomeMessageHasBeenSet = true; m_welcomeMessage = std::forward<WelcomeMessageT>(value); }
87 template<typename WelcomeMessageT = Aws::String>
88 CreateWebExperienceRequest& WithWelcomeMessage(WelcomeMessageT&& value) { SetWelcomeMessage(std::forward<WelcomeMessageT>(value)); return *this;}
90
92
96 inline WebExperienceSamplePromptsControlMode GetSamplePromptsControlMode() const { return m_samplePromptsControlMode; }
97 inline bool SamplePromptsControlModeHasBeenSet() const { return m_samplePromptsControlModeHasBeenSet; }
98 inline void SetSamplePromptsControlMode(WebExperienceSamplePromptsControlMode value) { m_samplePromptsControlModeHasBeenSet = true; m_samplePromptsControlMode = value; }
101
103
111 inline const Aws::Vector<Aws::String>& GetOrigins() const { return m_origins; }
112 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
113 template<typename OriginsT = Aws::Vector<Aws::String>>
114 void SetOrigins(OriginsT&& value) { m_originsHasBeenSet = true; m_origins = std::forward<OriginsT>(value); }
115 template<typename OriginsT = Aws::Vector<Aws::String>>
116 CreateWebExperienceRequest& WithOrigins(OriginsT&& value) { SetOrigins(std::forward<OriginsT>(value)); return *this;}
117 template<typename OriginsT = Aws::String>
118 CreateWebExperienceRequest& AddOrigins(OriginsT&& value) { m_originsHasBeenSet = true; m_origins.emplace_back(std::forward<OriginsT>(value)); return *this; }
120
122
128 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
129 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
130 template<typename RoleArnT = Aws::String>
131 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
132 template<typename RoleArnT = Aws::String>
133 CreateWebExperienceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
135
137
143 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Vector<Tag>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Vector<Tag>>
148 CreateWebExperienceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsT = Tag>
150 CreateWebExperienceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
152
154
158 inline const Aws::String& GetClientToken() const { return m_clientToken; }
159 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
160 template<typename ClientTokenT = Aws::String>
161 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
162 template<typename ClientTokenT = Aws::String>
163 CreateWebExperienceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
165
167
171 inline const IdentityProviderConfiguration& GetIdentityProviderConfiguration() const { return m_identityProviderConfiguration; }
172 inline bool IdentityProviderConfigurationHasBeenSet() const { return m_identityProviderConfigurationHasBeenSet; }
173 template<typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
174 void SetIdentityProviderConfiguration(IdentityProviderConfigurationT&& value) { m_identityProviderConfigurationHasBeenSet = true; m_identityProviderConfiguration = std::forward<IdentityProviderConfigurationT>(value); }
175 template<typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
176 CreateWebExperienceRequest& WithIdentityProviderConfiguration(IdentityProviderConfigurationT&& value) { SetIdentityProviderConfiguration(std::forward<IdentityProviderConfigurationT>(value)); return *this;}
178
180
189 inline const BrowserExtensionConfiguration& GetBrowserExtensionConfiguration() const { return m_browserExtensionConfiguration; }
190 inline bool BrowserExtensionConfigurationHasBeenSet() const { return m_browserExtensionConfigurationHasBeenSet; }
191 template<typename BrowserExtensionConfigurationT = BrowserExtensionConfiguration>
192 void SetBrowserExtensionConfiguration(BrowserExtensionConfigurationT&& value) { m_browserExtensionConfigurationHasBeenSet = true; m_browserExtensionConfiguration = std::forward<BrowserExtensionConfigurationT>(value); }
193 template<typename BrowserExtensionConfigurationT = BrowserExtensionConfiguration>
194 CreateWebExperienceRequest& WithBrowserExtensionConfiguration(BrowserExtensionConfigurationT&& value) { SetBrowserExtensionConfiguration(std::forward<BrowserExtensionConfigurationT>(value)); return *this;}
196
198
202 inline const CustomizationConfiguration& GetCustomizationConfiguration() const { return m_customizationConfiguration; }
203 inline bool CustomizationConfigurationHasBeenSet() const { return m_customizationConfigurationHasBeenSet; }
204 template<typename CustomizationConfigurationT = CustomizationConfiguration>
205 void SetCustomizationConfiguration(CustomizationConfigurationT&& value) { m_customizationConfigurationHasBeenSet = true; m_customizationConfiguration = std::forward<CustomizationConfigurationT>(value); }
206 template<typename CustomizationConfigurationT = CustomizationConfiguration>
207 CreateWebExperienceRequest& WithCustomizationConfiguration(CustomizationConfigurationT&& value) { SetCustomizationConfiguration(std::forward<CustomizationConfigurationT>(value)); return *this;}
209 private:
210
211 Aws::String m_applicationId;
212 bool m_applicationIdHasBeenSet = false;
213
214 Aws::String m_title;
215 bool m_titleHasBeenSet = false;
216
217 Aws::String m_subtitle;
218 bool m_subtitleHasBeenSet = false;
219
220 Aws::String m_welcomeMessage;
221 bool m_welcomeMessageHasBeenSet = false;
222
224 bool m_samplePromptsControlModeHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_origins;
227 bool m_originsHasBeenSet = false;
228
229 Aws::String m_roleArn;
230 bool m_roleArnHasBeenSet = false;
231
232 Aws::Vector<Tag> m_tags;
233 bool m_tagsHasBeenSet = false;
234
236 bool m_clientTokenHasBeenSet = true;
237
238 IdentityProviderConfiguration m_identityProviderConfiguration;
239 bool m_identityProviderConfigurationHasBeenSet = false;
240
241 BrowserExtensionConfiguration m_browserExtensionConfiguration;
242 bool m_browserExtensionConfigurationHasBeenSet = false;
243
244 CustomizationConfiguration m_customizationConfiguration;
245 bool m_customizationConfigurationHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace QBusiness
250} // 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