52 lines
1.0 KiB
C++
52 lines
1.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/machinelearning/model/GetMLModelRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::MachineLearning::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
GetMLModelRequest::GetMLModelRequest() :
|
|
m_mLModelIdHasBeenSet(false),
|
|
m_verbose(false),
|
|
m_verboseHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String GetMLModelRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_mLModelIdHasBeenSet)
|
|
{
|
|
payload.WithString("MLModelId", m_mLModelId);
|
|
|
|
}
|
|
|
|
if(m_verboseHasBeenSet)
|
|
{
|
|
payload.WithBool("Verbose", m_verbose);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection GetMLModelRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonML_20141212.GetMLModel"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|