AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/DataSourceConfiguration.h>
11#include <aws/kendra/model/DataSourceVpcConfiguration.h>
12#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace kendra
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_KENDRA_API UpdateDataSourceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; }
34
35 AWS_KENDRA_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template<typename IdT = Aws::String>
47 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
48 template<typename IdT = Aws::String>
49 UpdateDataSourceRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 UpdateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetIndexId() const { return m_indexId; }
69 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
70 template<typename IndexIdT = Aws::String>
71 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
72 template<typename IndexIdT = Aws::String>
73 UpdateDataSourceRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
75
77
81 inline const DataSourceConfiguration& GetConfiguration() const { return m_configuration; }
82 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
83 template<typename ConfigurationT = DataSourceConfiguration>
84 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
85 template<typename ConfigurationT = DataSourceConfiguration>
86 UpdateDataSourceRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
88
90
96 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
97 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
98 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
99 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
100 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
101 UpdateDataSourceRequest& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template<typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
112 template<typename DescriptionT = Aws::String>
113 UpdateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
115
117
120 inline const Aws::String& GetSchedule() const { return m_schedule; }
121 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
122 template<typename ScheduleT = Aws::String>
123 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
124 template<typename ScheduleT = Aws::String>
125 UpdateDataSourceRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
127
129
135 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
136 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
137 template<typename RoleArnT = Aws::String>
138 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
139 template<typename RoleArnT = Aws::String>
140 UpdateDataSourceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
142
144
152 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
153 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
154 template<typename LanguageCodeT = Aws::String>
155 void SetLanguageCode(LanguageCodeT&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::forward<LanguageCodeT>(value); }
156 template<typename LanguageCodeT = Aws::String>
157 UpdateDataSourceRequest& WithLanguageCode(LanguageCodeT&& value) { SetLanguageCode(std::forward<LanguageCodeT>(value)); return *this;}
159
161
169 inline const CustomDocumentEnrichmentConfiguration& GetCustomDocumentEnrichmentConfiguration() const { return m_customDocumentEnrichmentConfiguration; }
170 inline bool CustomDocumentEnrichmentConfigurationHasBeenSet() const { return m_customDocumentEnrichmentConfigurationHasBeenSet; }
171 template<typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
172 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) { m_customDocumentEnrichmentConfigurationHasBeenSet = true; m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value); }
173 template<typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
174 UpdateDataSourceRequest& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) { SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value)); return *this;}
176 private:
177
178 Aws::String m_id;
179 bool m_idHasBeenSet = false;
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
184 Aws::String m_indexId;
185 bool m_indexIdHasBeenSet = false;
186
187 DataSourceConfiguration m_configuration;
188 bool m_configurationHasBeenSet = false;
189
190 DataSourceVpcConfiguration m_vpcConfiguration;
191 bool m_vpcConfigurationHasBeenSet = false;
192
193 Aws::String m_description;
194 bool m_descriptionHasBeenSet = false;
195
196 Aws::String m_schedule;
197 bool m_scheduleHasBeenSet = false;
198
199 Aws::String m_roleArn;
200 bool m_roleArnHasBeenSet = false;
201
202 Aws::String m_languageCode;
203 bool m_languageCodeHasBeenSet = false;
204
205 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
206 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace kendra
211} // 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