AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
11#include <aws/kendra/model/DataSourceConfiguration.h>
12#include <aws/kendra/model/DataSourceVpcConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace kendra {
18namespace Model {
19
23 public:
24 AWS_KENDRA_API UpdateDataSourceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; }
31
32 AWS_KENDRA_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetIndexId() const { return m_indexId; }
77 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
78 template <typename IndexIdT = Aws::String>
79 void SetIndexId(IndexIdT&& value) {
80 m_indexIdHasBeenSet = true;
81 m_indexId = std::forward<IndexIdT>(value);
82 }
83 template <typename IndexIdT = Aws::String>
85 SetIndexId(std::forward<IndexIdT>(value));
86 return *this;
87 }
89
91
95 inline const DataSourceConfiguration& GetConfiguration() const { return m_configuration; }
96 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
97 template <typename ConfigurationT = DataSourceConfiguration>
98 void SetConfiguration(ConfigurationT&& value) {
99 m_configurationHasBeenSet = true;
100 m_configuration = std::forward<ConfigurationT>(value);
101 }
102 template <typename ConfigurationT = DataSourceConfiguration>
104 SetConfiguration(std::forward<ConfigurationT>(value));
105 return *this;
106 }
108
110
116 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
117 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
118 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
119 void SetVpcConfiguration(VpcConfigurationT&& value) {
120 m_vpcConfigurationHasBeenSet = true;
121 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
122 }
123 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
124 UpdateDataSourceRequest& WithVpcConfiguration(VpcConfigurationT&& value) {
125 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetDescription() const { return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 template <typename DescriptionT = Aws::String>
137 void SetDescription(DescriptionT&& value) {
138 m_descriptionHasBeenSet = true;
139 m_description = std::forward<DescriptionT>(value);
140 }
141 template <typename DescriptionT = Aws::String>
143 SetDescription(std::forward<DescriptionT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetSchedule() const { return m_schedule; }
153 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
154 template <typename ScheduleT = Aws::String>
155 void SetSchedule(ScheduleT&& value) {
156 m_scheduleHasBeenSet = true;
157 m_schedule = std::forward<ScheduleT>(value);
158 }
159 template <typename ScheduleT = Aws::String>
161 SetSchedule(std::forward<ScheduleT>(value));
162 return *this;
163 }
165
167
173 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
174 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
175 template <typename RoleArnT = Aws::String>
176 void SetRoleArn(RoleArnT&& value) {
177 m_roleArnHasBeenSet = true;
178 m_roleArn = std::forward<RoleArnT>(value);
179 }
180 template <typename RoleArnT = Aws::String>
182 SetRoleArn(std::forward<RoleArnT>(value));
183 return *this;
184 }
186
188
196 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
197 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
198 template <typename LanguageCodeT = Aws::String>
199 void SetLanguageCode(LanguageCodeT&& value) {
200 m_languageCodeHasBeenSet = true;
201 m_languageCode = std::forward<LanguageCodeT>(value);
202 }
203 template <typename LanguageCodeT = Aws::String>
205 SetLanguageCode(std::forward<LanguageCodeT>(value));
206 return *this;
207 }
209
211
220 return m_customDocumentEnrichmentConfiguration;
221 }
222 inline bool CustomDocumentEnrichmentConfigurationHasBeenSet() const { return m_customDocumentEnrichmentConfigurationHasBeenSet; }
223 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
224 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
225 m_customDocumentEnrichmentConfigurationHasBeenSet = true;
226 m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value);
227 }
228 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
229 UpdateDataSourceRequest& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
230 SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_id;
236 bool m_idHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
241 Aws::String m_indexId;
242 bool m_indexIdHasBeenSet = false;
243
244 DataSourceConfiguration m_configuration;
245 bool m_configurationHasBeenSet = false;
246
247 DataSourceVpcConfiguration m_vpcConfiguration;
248 bool m_vpcConfigurationHasBeenSet = false;
249
250 Aws::String m_description;
251 bool m_descriptionHasBeenSet = false;
252
253 Aws::String m_schedule;
254 bool m_scheduleHasBeenSet = false;
255
256 Aws::String m_roleArn;
257 bool m_roleArnHasBeenSet = false;
258
259 Aws::String m_languageCode;
260 bool m_languageCodeHasBeenSet = false;
261
262 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
263 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace kendra
268} // namespace Aws
AWS_KENDRA_API Aws::String SerializePayload() const override
UpdateDataSourceRequest & WithLanguageCode(LanguageCodeT &&value)
AWS_KENDRA_API UpdateDataSourceRequest()=default
UpdateDataSourceRequest & WithConfiguration(ConfigurationT &&value)
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDataSourceRequest & WithVpcConfiguration(VpcConfigurationT &&value)
UpdateDataSourceRequest & WithId(IdT &&value)
const CustomDocumentEnrichmentConfiguration & GetCustomDocumentEnrichmentConfiguration() const
UpdateDataSourceRequest & WithIndexId(IndexIdT &&value)
void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
UpdateDataSourceRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateDataSourceRequest & WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
const DataSourceConfiguration & GetConfiguration() const
const DataSourceVpcConfiguration & GetVpcConfiguration() const
UpdateDataSourceRequest & WithSchedule(ScheduleT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
UpdateDataSourceRequest & WithRoleArn(RoleArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String