49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/config/model/BatchGetResourceConfigRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::ConfigService::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
BatchGetResourceConfigRequest::BatchGetResourceConfigRequest() :
|
|
m_resourceKeysHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String BatchGetResourceConfigRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_resourceKeysHasBeenSet)
|
|
{
|
|
Array<JsonValue> resourceKeysJsonList(m_resourceKeys.size());
|
|
for(unsigned resourceKeysIndex = 0; resourceKeysIndex < resourceKeysJsonList.GetLength(); ++resourceKeysIndex)
|
|
{
|
|
resourceKeysJsonList[resourceKeysIndex].AsObject(m_resourceKeys[resourceKeysIndex].Jsonize());
|
|
}
|
|
payload.WithArray("resourceKeys", std::move(resourceKeysJsonList));
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection BatchGetResourceConfigRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StarlingDoveService.BatchGetResourceConfig"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|