/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace kendra { namespace Model { /** */ class UpdateDataSourceRequest : public KendraRequest { public: AWS_KENDRA_API UpdateDataSourceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the data source connector you want to update.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the data source connector you want to update.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the data source connector you want to update.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the data source connector you want to update.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the data source connector you want to update.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the data source connector you want to update.

*/ inline UpdateDataSourceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the data source connector you want to update.

*/ inline UpdateDataSourceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the data source connector you want to update.

*/ inline UpdateDataSourceRequest& WithId(const char* value) { SetId(value); return *this;} /** *

A new name for the data source connector.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A new name for the data source connector.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A new name for the data source connector.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A new name for the data source connector.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A new name for the data source connector.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A new name for the data source connector.

*/ inline UpdateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A new name for the data source connector.

*/ inline UpdateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A new name for the data source connector.

*/ inline UpdateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The identifier of the index used with the data source connector.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index used with the data source connector.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index used with the data source connector.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index used with the data source connector.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index used with the data source connector.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index used with the data source connector.

*/ inline UpdateDataSourceRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index used with the data source connector.

*/ inline UpdateDataSourceRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index used with the data source connector.

*/ inline UpdateDataSourceRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;} /** *

Configuration information you want to update for the data source * connector.

*/ inline const DataSourceConfiguration& GetConfiguration() const{ return m_configuration; } /** *

Configuration information you want to update for the data source * connector.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

Configuration information you want to update for the data source * connector.

*/ inline void SetConfiguration(const DataSourceConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

Configuration information you want to update for the data source * connector.

*/ inline void SetConfiguration(DataSourceConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

Configuration information you want to update for the data source * connector.

*/ inline UpdateDataSourceRequest& WithConfiguration(const DataSourceConfiguration& value) { SetConfiguration(value); return *this;} /** *

Configuration information you want to update for the data source * connector.

*/ inline UpdateDataSourceRequest& WithConfiguration(DataSourceConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

Configuration information for an Amazon Virtual Private Cloud to connect to * your data source. For more information, see Configuring * a VPC.

*/ inline const DataSourceVpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } /** *

Configuration information for an Amazon Virtual Private Cloud to connect to * your data source. For more information, see Configuring * a VPC.

*/ inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } /** *

Configuration information for an Amazon Virtual Private Cloud to connect to * your data source. For more information, see Configuring * a VPC.

*/ inline void SetVpcConfiguration(const DataSourceVpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; } /** *

Configuration information for an Amazon Virtual Private Cloud to connect to * your data source. For more information, see Configuring * a VPC.

*/ inline void SetVpcConfiguration(DataSourceVpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); } /** *

Configuration information for an Amazon Virtual Private Cloud to connect to * your data source. For more information, see Configuring * a VPC.

*/ inline UpdateDataSourceRequest& WithVpcConfiguration(const DataSourceVpcConfiguration& value) { SetVpcConfiguration(value); return *this;} /** *

Configuration information for an Amazon Virtual Private Cloud to connect to * your data source. For more information, see Configuring * a VPC.

*/ inline UpdateDataSourceRequest& WithVpcConfiguration(DataSourceVpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} /** *

A new description for the data source connector.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A new description for the data source connector.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A new description for the data source connector.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A new description for the data source connector.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A new description for the data source connector.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A new description for the data source connector.

*/ inline UpdateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A new description for the data source connector.

*/ inline UpdateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A new description for the data source connector.

*/ inline UpdateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The sync schedule you want to update for the data source connector.

*/ inline const Aws::String& GetSchedule() const{ return m_schedule; } /** *

The sync schedule you want to update for the data source connector.

*/ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** *

The sync schedule you want to update for the data source connector.

*/ inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** *

The sync schedule you want to update for the data source connector.

*/ inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** *

The sync schedule you want to update for the data source connector.

*/ inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); } /** *

The sync schedule you want to update for the data source connector.

*/ inline UpdateDataSourceRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;} /** *

The sync schedule you want to update for the data source connector.

*/ inline UpdateDataSourceRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;} /** *

The sync schedule you want to update for the data source connector.

*/ inline UpdateDataSourceRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;} /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline UpdateDataSourceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline UpdateDataSourceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a role with permission to access the data * source and required resources. For more information, see IAM roles for * Amazon Kendra.

*/ inline UpdateDataSourceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline const Aws::String& GetLanguageCode() const{ return m_languageCode; } /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); } /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline UpdateDataSourceRequest& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;} /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline UpdateDataSourceRequest& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

The code for a language you want to update for the data source connector. * This allows you to support a language for all documents when updating the data * source. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline UpdateDataSourceRequest& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;} /** *

Configuration information you want to update for altering document metadata * and content during the document ingestion process.

For more information * on how to create, modify and delete document metadata, or make other content * alterations when you ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline const CustomDocumentEnrichmentConfiguration& GetCustomDocumentEnrichmentConfiguration() const{ return m_customDocumentEnrichmentConfiguration; } /** *

Configuration information you want to update for altering document metadata * and content during the document ingestion process.

For more information * on how to create, modify and delete document metadata, or make other content * alterations when you ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline bool CustomDocumentEnrichmentConfigurationHasBeenSet() const { return m_customDocumentEnrichmentConfigurationHasBeenSet; } /** *

Configuration information you want to update for altering document metadata * and content during the document ingestion process.

For more information * on how to create, modify and delete document metadata, or make other content * alterations when you ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline void SetCustomDocumentEnrichmentConfiguration(const CustomDocumentEnrichmentConfiguration& value) { m_customDocumentEnrichmentConfigurationHasBeenSet = true; m_customDocumentEnrichmentConfiguration = value; } /** *

Configuration information you want to update for altering document metadata * and content during the document ingestion process.

For more information * on how to create, modify and delete document metadata, or make other content * alterations when you ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration&& value) { m_customDocumentEnrichmentConfigurationHasBeenSet = true; m_customDocumentEnrichmentConfiguration = std::move(value); } /** *

Configuration information you want to update for altering document metadata * and content during the document ingestion process.

For more information * on how to create, modify and delete document metadata, or make other content * alterations when you ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline UpdateDataSourceRequest& WithCustomDocumentEnrichmentConfiguration(const CustomDocumentEnrichmentConfiguration& value) { SetCustomDocumentEnrichmentConfiguration(value); return *this;} /** *

Configuration information you want to update for altering document metadata * and content during the document ingestion process.

For more information * on how to create, modify and delete document metadata, or make other content * alterations when you ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline UpdateDataSourceRequest& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration&& value) { SetCustomDocumentEnrichmentConfiguration(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_indexId; bool m_indexIdHasBeenSet = false; DataSourceConfiguration m_configuration; bool m_configurationHasBeenSet = false; DataSourceVpcConfiguration m_vpcConfiguration; bool m_vpcConfigurationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_schedule; bool m_scheduleHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_languageCode; bool m_languageCodeHasBeenSet = false; CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration; bool m_customDocumentEnrichmentConfigurationHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws