AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
129 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
130 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
131 template<typename RoleArnT = Aws::String>
132 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
133 template<typename RoleArnT = Aws::String>
134 CreateWebExperienceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
136
138
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template<typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
148 template<typename TagsT = Aws::Vector<Tag>>
149 CreateWebExperienceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
150 template<typename TagsT = Tag>
151 CreateWebExperienceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
153
155
159 inline const Aws::String& GetClientToken() const { return m_clientToken; }
160 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
161 template<typename ClientTokenT = Aws::String>
162 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
163 template<typename ClientTokenT = Aws::String>
164 CreateWebExperienceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
166
168
172 inline const IdentityProviderConfiguration& GetIdentityProviderConfiguration() const { return m_identityProviderConfiguration; }
173 inline bool IdentityProviderConfigurationHasBeenSet() const { return m_identityProviderConfigurationHasBeenSet; }
174 template<typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
175 void SetIdentityProviderConfiguration(IdentityProviderConfigurationT&& value) { m_identityProviderConfigurationHasBeenSet = true; m_identityProviderConfiguration = std::forward<IdentityProviderConfigurationT>(value); }
176 template<typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
177 CreateWebExperienceRequest& WithIdentityProviderConfiguration(IdentityProviderConfigurationT&& value) { SetIdentityProviderConfiguration(std::forward<IdentityProviderConfigurationT>(value)); return *this;}
179
181
190 inline const BrowserExtensionConfiguration& GetBrowserExtensionConfiguration() const { return m_browserExtensionConfiguration; }
191 inline bool BrowserExtensionConfigurationHasBeenSet() const { return m_browserExtensionConfigurationHasBeenSet; }
192 template<typename BrowserExtensionConfigurationT = BrowserExtensionConfiguration>
193 void SetBrowserExtensionConfiguration(BrowserExtensionConfigurationT&& value) { m_browserExtensionConfigurationHasBeenSet = true; m_browserExtensionConfiguration = std::forward<BrowserExtensionConfigurationT>(value); }
194 template<typename BrowserExtensionConfigurationT = BrowserExtensionConfiguration>
195 CreateWebExperienceRequest& WithBrowserExtensionConfiguration(BrowserExtensionConfigurationT&& value) { SetBrowserExtensionConfiguration(std::forward<BrowserExtensionConfigurationT>(value)); return *this;}
197
199
203 inline const CustomizationConfiguration& GetCustomizationConfiguration() const { return m_customizationConfiguration; }
204 inline bool CustomizationConfigurationHasBeenSet() const { return m_customizationConfigurationHasBeenSet; }
205 template<typename CustomizationConfigurationT = CustomizationConfiguration>
206 void SetCustomizationConfiguration(CustomizationConfigurationT&& value) { m_customizationConfigurationHasBeenSet = true; m_customizationConfiguration = std::forward<CustomizationConfigurationT>(value); }
207 template<typename CustomizationConfigurationT = CustomizationConfiguration>
208 CreateWebExperienceRequest& WithCustomizationConfiguration(CustomizationConfigurationT&& value) { SetCustomizationConfiguration(std::forward<CustomizationConfigurationT>(value)); return *this;}
210 private:
211
212 Aws::String m_applicationId;
213 bool m_applicationIdHasBeenSet = false;
214
215 Aws::String m_title;
216 bool m_titleHasBeenSet = false;
217
218 Aws::String m_subtitle;
219 bool m_subtitleHasBeenSet = false;
220
221 Aws::String m_welcomeMessage;
222 bool m_welcomeMessageHasBeenSet = false;
223
225 bool m_samplePromptsControlModeHasBeenSet = false;
226
227 Aws::Vector<Aws::String> m_origins;
228 bool m_originsHasBeenSet = false;
229
230 Aws::String m_roleArn;
231 bool m_roleArnHasBeenSet = false;
232
233 Aws::Vector<Tag> m_tags;
234 bool m_tagsHasBeenSet = false;
235
237 bool m_clientTokenHasBeenSet = true;
238
239 IdentityProviderConfiguration m_identityProviderConfiguration;
240 bool m_identityProviderConfigurationHasBeenSet = false;
241
242 BrowserExtensionConfiguration m_browserExtensionConfiguration;
243 bool m_browserExtensionConfigurationHasBeenSet = false;
244
245 CustomizationConfiguration m_customizationConfiguration;
246 bool m_customizationConfigurationHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace QBusiness
251} // 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