49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/frauddetector/model/BatchGetVariableRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::FraudDetector::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
BatchGetVariableRequest::BatchGetVariableRequest() :
|
|
m_namesHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String BatchGetVariableRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_namesHasBeenSet)
|
|
{
|
|
Array<JsonValue> namesJsonList(m_names.size());
|
|
for(unsigned namesIndex = 0; namesIndex < namesJsonList.GetLength(); ++namesIndex)
|
|
{
|
|
namesJsonList[namesIndex].AsString(m_names[namesIndex]);
|
|
}
|
|
payload.WithArray("names", std::move(namesJsonList));
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection BatchGetVariableRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSHawksNestServiceFacade.BatchGetVariable"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|