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

88 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/personalize/model/CreateSolutionRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Personalize::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateSolutionRequest::CreateSolutionRequest() :
m_nameHasBeenSet(false),
m_performHPO(false),
m_performHPOHasBeenSet(false),
m_performAutoML(false),
m_performAutoMLHasBeenSet(false),
m_recipeArnHasBeenSet(false),
m_datasetGroupArnHasBeenSet(false),
m_eventTypeHasBeenSet(false),
m_solutionConfigHasBeenSet(false)
{
}
Aws::String CreateSolutionRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_performHPOHasBeenSet)
{
payload.WithBool("performHPO", m_performHPO);
}
if(m_performAutoMLHasBeenSet)
{
payload.WithBool("performAutoML", m_performAutoML);
}
if(m_recipeArnHasBeenSet)
{
payload.WithString("recipeArn", m_recipeArn);
}
if(m_datasetGroupArnHasBeenSet)
{
payload.WithString("datasetGroupArn", m_datasetGroupArn);
}
if(m_eventTypeHasBeenSet)
{
payload.WithString("eventType", m_eventType);
}
if(m_solutionConfigHasBeenSet)
{
payload.WithObject("solutionConfig", m_solutionConfig.Jsonize());
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateSolutionRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonPersonalize.CreateSolution"));
return headers;
}