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/source/model/UpdateDataSourceRequest.cpp

86 lines
1.6 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kendra/model/UpdateDataSourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::kendra::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateDataSourceRequest::UpdateDataSourceRequest() :
m_idHasBeenSet(false),
m_nameHasBeenSet(false),
m_indexIdHasBeenSet(false),
m_configurationHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_scheduleHasBeenSet(false),
m_roleArnHasBeenSet(false)
{
}
Aws::String UpdateDataSourceRequest::SerializePayload() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_indexIdHasBeenSet)
{
payload.WithString("IndexId", m_indexId);
}
if(m_configurationHasBeenSet)
{
payload.WithObject("Configuration", m_configuration.Jsonize());
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_scheduleHasBeenSet)
{
payload.WithString("Schedule", m_schedule);
}
if(m_roleArnHasBeenSet)
{
payload.WithString("RoleArn", m_roleArn);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateDataSourceRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSKendraFrontendService.UpdateDataSource"));
return headers;
}