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/DataSourceType.h>
11#include <aws/kendra/model/DataSourceConfiguration.h>
12#include <aws/kendra/model/DataSourceVpcConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
15#include <aws/kendra/model/Tag.h>
17#include <aws/core/utils/UUID.h>
50 template<
typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
52 template<
typename NameT = Aws::String>
63 template<
typename IndexIdT = Aws::String>
64 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet =
true; m_indexId = std::forward<IndexIdT>(value); }
65 template<
typename IndexIdT = Aws::String>
89 template<
typename ConfigurationT = DataSourceConfiguration>
90 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet =
true; m_configuration = std::forward<ConfigurationT>(value); }
91 template<
typename ConfigurationT = DataSourceConfiguration>
104 template<
typename VpcConfigurationT = DataSourceVpcConfiguration>
105 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet =
true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
106 template<
typename VpcConfigurationT = DataSourceVpcConfiguration>
116 template<
typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
118 template<
typename DescriptionT = Aws::String>
136 template<
typename ScheduleT = Aws::String>
137 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
138 template<
typename ScheduleT = Aws::String>
154 template<
typename RoleArnT = Aws::String>
155 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
156 template<
typename RoleArnT = Aws::String>
169 template<
typename TagsT = Aws::Vector<Tag>>
170 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
171 template<
typename TagsT = Aws::Vector<Tag>>
173 template<
typename TagsT = Tag>
185 template<
typename ClientTokenT = Aws::String>
186 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
187 template<
typename ClientTokenT = Aws::String>
202 template<
typename LanguageCodeT = Aws::String>
203 void SetLanguageCode(LanguageCodeT&& value) { m_languageCodeHasBeenSet =
true; m_languageCode = std::forward<LanguageCodeT>(value); }
204 template<
typename LanguageCodeT = Aws::String>
219 template<
typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
220 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) { m_customDocumentEnrichmentConfigurationHasBeenSet =
true; m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value); }
221 template<
typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
227 bool m_nameHasBeenSet =
false;
230 bool m_indexIdHasBeenSet =
false;
233 bool m_typeHasBeenSet =
false;
235 DataSourceConfiguration m_configuration;
236 bool m_configurationHasBeenSet =
false;
238 DataSourceVpcConfiguration m_vpcConfiguration;
239 bool m_vpcConfigurationHasBeenSet =
false;
242 bool m_descriptionHasBeenSet =
false;
245 bool m_scheduleHasBeenSet =
false;
248 bool m_roleArnHasBeenSet =
false;
251 bool m_tagsHasBeenSet =
false;
254 bool m_clientTokenHasBeenSet =
true;
257 bool m_languageCodeHasBeenSet =
false;
259 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
260 bool m_customDocumentEnrichmentConfigurationHasBeenSet =
false;
static Aws::Utils::UUID PseudoRandomUUID()
void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
const Aws::String & GetRoleArn() const
const Aws::String & GetLanguageCode() const
const CustomDocumentEnrichmentConfiguration & GetCustomDocumentEnrichmentConfiguration() const
bool RoleArnHasBeenSet() const
void SetType(DataSourceType value)
CreateDataSourceRequest & AddTags(TagsT &&value)
CreateDataSourceRequest & WithRoleArn(RoleArnT &&value)
DataSourceType GetType() const
const Aws::String & GetSchedule() const
bool VpcConfigurationHasBeenSet() const
CreateDataSourceRequest & WithSchedule(ScheduleT &&value)
void SetName(NameT &&value)
const DataSourceConfiguration & GetConfiguration() const
const Aws::String & GetDescription() const
CreateDataSourceRequest & WithName(NameT &&value)
void SetRoleArn(RoleArnT &&value)
void SetLanguageCode(LanguageCodeT &&value)
bool CustomDocumentEnrichmentConfigurationHasBeenSet() const
void SetTags(TagsT &&value)
CreateDataSourceRequest & WithIndexId(IndexIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KENDRA_API CreateDataSourceRequest()=default
const Aws::String & GetIndexId() const
void SetVpcConfiguration(VpcConfigurationT &&value)
void SetConfiguration(ConfigurationT &&value)
void SetClientToken(ClientTokenT &&value)
bool LanguageCodeHasBeenSet() const
AWS_KENDRA_API Aws::String SerializePayload() const override
CreateDataSourceRequest & WithType(DataSourceType value)
const Aws::Vector< Tag > & GetTags() const
void SetSchedule(ScheduleT &&value)
CreateDataSourceRequest & WithLanguageCode(LanguageCodeT &&value)
bool TagsHasBeenSet() const
CreateDataSourceRequest & WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
const Aws::String & GetClientToken() const
const DataSourceVpcConfiguration & GetVpcConfiguration() const
const Aws::String & GetName() const
CreateDataSourceRequest & WithConfiguration(ConfigurationT &&value)
bool ScheduleHasBeenSet() const
bool DescriptionHasBeenSet() const
bool NameHasBeenSet() const
bool IndexIdHasBeenSet() const
bool ClientTokenHasBeenSet() const
void SetDescription(DescriptionT &&value)
CreateDataSourceRequest & WithClientToken(ClientTokenT &&value)
bool TypeHasBeenSet() const
CreateDataSourceRequest & WithTags(TagsT &&value)
CreateDataSourceRequest & WithDescription(DescriptionT &&value)
void SetIndexId(IndexIdT &&value)
bool ConfigurationHasBeenSet() const
CreateDataSourceRequest & WithVpcConfiguration(VpcConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector