94 lines
2.1 KiB
C++
94 lines
2.1 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/comprehend/model/StartDocumentClassificationJobRequest.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::Comprehend::Model;
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
StartDocumentClassificationJobRequest::StartDocumentClassificationJobRequest() :
|
|||
|
|
m_jobNameHasBeenSet(false),
|
|||
|
|
m_documentClassifierArnHasBeenSet(false),
|
|||
|
|
m_inputDataConfigHasBeenSet(false),
|
|||
|
|
m_outputDataConfigHasBeenSet(false),
|
|||
|
|
m_dataAccessRoleArnHasBeenSet(false),
|
|||
|
|
m_clientRequestToken(Aws::Utils::UUID::RandomUUID()),
|
|||
|
|
m_clientRequestTokenHasBeenSet(true),
|
|||
|
|
m_volumeKmsKeyIdHasBeenSet(false),
|
|||
|
|
m_vpcConfigHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String StartDocumentClassificationJobRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_jobNameHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("JobName", m_jobName);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_documentClassifierArnHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("DocumentClassifierArn", m_documentClassifierArn);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
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_clientRequestTokenHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("ClientRequestToken", m_clientRequestToken);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_volumeKmsKeyIdHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("VolumeKmsKeyId", m_volumeKmsKeyId);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_vpcConfigHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("VpcConfig", m_vpcConfig.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload.View().WriteReadable();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::Http::HeaderValueCollection StartDocumentClassificationJobRequest::GetRequestSpecificHeaders() const
|
|||
|
|
{
|
|||
|
|
Aws::Http::HeaderValueCollection headers;
|
|||
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Comprehend_20171127.StartDocumentClassificationJob"));
|
|||
|
|
return headers;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|