AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateExperienceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/KendraRequest.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/ExperienceConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace kendra {
17namespace Model {
18
22 public:
23 AWS_KENDRA_API CreateExperienceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateExperience"; }
30
31 AWS_KENDRA_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIndexId() const { return m_indexId; }
58 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
59 template <typename IndexIdT = Aws::String>
60 void SetIndexId(IndexIdT&& value) {
61 m_indexIdHasBeenSet = true;
62 m_indexId = std::forward<IndexIdT>(value);
63 }
64 template <typename IndexIdT = Aws::String>
66 SetIndexId(std::forward<IndexIdT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
81 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
82 template <typename RoleArnT = Aws::String>
83 void SetRoleArn(RoleArnT&& value) {
84 m_roleArnHasBeenSet = true;
85 m_roleArn = std::forward<RoleArnT>(value);
86 }
87 template <typename RoleArnT = Aws::String>
89 SetRoleArn(std::forward<RoleArnT>(value));
90 return *this;
91 }
93
95
101 inline const ExperienceConfiguration& GetConfiguration() const { return m_configuration; }
102 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
103 template <typename ConfigurationT = ExperienceConfiguration>
104 void SetConfiguration(ConfigurationT&& value) {
105 m_configurationHasBeenSet = true;
106 m_configuration = std::forward<ConfigurationT>(value);
107 }
108 template <typename ConfigurationT = ExperienceConfiguration>
110 SetConfiguration(std::forward<ConfigurationT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDescription() const { return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 template <typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) {
123 m_descriptionHasBeenSet = true;
124 m_description = std::forward<DescriptionT>(value);
125 }
126 template <typename DescriptionT = Aws::String>
128 SetDescription(std::forward<DescriptionT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::String& GetClientToken() const { return m_clientToken; }
140 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
141 template <typename ClientTokenT = Aws::String>
142 void SetClientToken(ClientTokenT&& value) {
143 m_clientTokenHasBeenSet = true;
144 m_clientToken = std::forward<ClientTokenT>(value);
145 }
146 template <typename ClientTokenT = Aws::String>
148 SetClientToken(std::forward<ClientTokenT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
156 Aws::String m_indexId;
157 bool m_indexIdHasBeenSet = false;
158
159 Aws::String m_roleArn;
160 bool m_roleArnHasBeenSet = false;
161
162 ExperienceConfiguration m_configuration;
163 bool m_configurationHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
169 bool m_clientTokenHasBeenSet = true;
170};
171
172} // namespace Model
173} // namespace kendra
174} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateExperienceRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateExperienceRequest & WithConfiguration(ConfigurationT &&value)
CreateExperienceRequest & WithClientToken(ClientTokenT &&value)
CreateExperienceRequest & WithIndexId(IndexIdT &&value)
AWS_KENDRA_API CreateExperienceRequest()=default
CreateExperienceRequest & WithRoleArn(RoleArnT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ExperienceConfiguration & GetConfiguration() const
CreateExperienceRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String