This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-kendra/include/aws/kendra/model/UpdateDataSourceRequest.h

353 lines
12 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kendra/Kendra_EXPORTS.h>
#include <aws/kendra/KendraRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/kendra/model/DataSourceConfiguration.h>
#include <utility>
namespace Aws
{
namespace kendra
{
namespace Model
{
/**
*/
class AWS_KENDRA_API UpdateDataSourceRequest : public KendraRequest
{
public:
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::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline UpdateDataSourceRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline UpdateDataSourceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the data source to update.</p>
*/
inline UpdateDataSourceRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline UpdateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline UpdateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the data source to update. The name of the data source can't be
* updated. To rename a data source you must delete the data source and re-create
* it.</p>
*/
inline UpdateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline const Aws::String& GetIndexId() const{ return m_indexId; }
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline UpdateDataSourceRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline UpdateDataSourceRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
/**
* <p>The identifier of the index that contains the data source to update.</p>
*/
inline UpdateDataSourceRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
inline const DataSourceConfiguration& GetConfiguration() const{ return m_configuration; }
inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
inline void SetConfiguration(const DataSourceConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
inline void SetConfiguration(DataSourceConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
inline UpdateDataSourceRequest& WithConfiguration(const DataSourceConfiguration& value) { SetConfiguration(value); return *this;}
inline UpdateDataSourceRequest& WithConfiguration(DataSourceConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
/**
* <p>The new description for the data source.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The new description for the data source.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The new description for the data source.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The new description for the data source.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The new description for the data source.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The new description for the data source.</p>
*/
inline UpdateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The new description for the data source.</p>
*/
inline UpdateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The new description for the data source.</p>
*/
inline UpdateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The new update schedule for the data source.</p>
*/
inline const Aws::String& GetSchedule() const{ return m_schedule; }
/**
* <p>The new update schedule for the data source.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>The new update schedule for the data source.</p>
*/
inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>The new update schedule for the data source.</p>
*/
inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>The new update schedule for the data source.</p>
*/
inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
/**
* <p>The new update schedule for the data source.</p>
*/
inline UpdateDataSourceRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
/**
* <p>The new update schedule for the data source.</p>
*/
inline UpdateDataSourceRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>The new update schedule for the data source.</p>
*/
inline UpdateDataSourceRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline UpdateDataSourceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline UpdateDataSourceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the new role to use when the data source is
* accessing resources on your behalf.</p>
*/
inline UpdateDataSourceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_indexId;
bool m_indexIdHasBeenSet;
DataSourceConfiguration m_configuration;
bool m_configurationHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_schedule;
bool m_scheduleHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
};
} // namespace Model
} // namespace kendra
} // namespace Aws