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

87 lines
1.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/StartRxNormInferenceJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
StartRxNormInferenceJobRequest::StartRxNormInferenceJobRequest() :
m_inputDataConfigHasBeenSet(false),
m_outputDataConfigHasBeenSet(false),
m_dataAccessRoleArnHasBeenSet(false),
m_jobNameHasBeenSet(false),
m_clientRequestToken(Aws::Utils::UUID::RandomUUID()),
m_clientRequestTokenHasBeenSet(true),
m_kMSKeyHasBeenSet(false),
m_languageCode(LanguageCode::NOT_SET),
m_languageCodeHasBeenSet(false)
{
}
Aws::String StartRxNormInferenceJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_inputDataConfigHasBeenSet)
{
payload.WithObject("InputDataConfig", m_inputDataConfig.Jsonize());
}
if(m_outputDataConfigHasBeenSet)
{
payload.WithObject("OutputDataConfig", m_outputDataConfig.Jsonize());
}
if(m_dataAccessRoleArnHasBeenSet)
{
payload.WithString("DataAccessRoleArn", m_dataAccessRoleArn);
}
if(m_jobNameHasBeenSet)
{
payload.WithString("JobName", m_jobName);
}
if(m_clientRequestTokenHasBeenSet)
{
payload.WithString("ClientRequestToken", m_clientRequestToken);
}
if(m_kMSKeyHasBeenSet)
{
payload.WithString("KMSKey", m_kMSKey);
}
if(m_languageCodeHasBeenSet)
{
payload.WithString("LanguageCode", LanguageCodeMapper::GetNameForLanguageCode(m_languageCode));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection StartRxNormInferenceJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComprehendMedical_20181030.StartRxNormInferenceJob"));
return headers;
}