/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Textract::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartDocumentTextDetectionRequest::StartDocumentTextDetectionRequest() : m_documentLocationHasBeenSet(false), m_clientRequestTokenHasBeenSet(false), m_jobTagHasBeenSet(false), m_notificationChannelHasBeenSet(false), m_outputConfigHasBeenSet(false), m_kMSKeyIdHasBeenSet(false) { } Aws::String StartDocumentTextDetectionRequest::SerializePayload() const { JsonValue payload; if(m_documentLocationHasBeenSet) { payload.WithObject("DocumentLocation", m_documentLocation.Jsonize()); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } if(m_jobTagHasBeenSet) { payload.WithString("JobTag", m_jobTag); } if(m_notificationChannelHasBeenSet) { payload.WithObject("NotificationChannel", m_notificationChannel.Jsonize()); } if(m_outputConfigHasBeenSet) { payload.WithObject("OutputConfig", m_outputConfig.Jsonize()); } if(m_kMSKeyIdHasBeenSet) { payload.WithString("KMSKeyId", m_kMSKeyId); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection StartDocumentTextDetectionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Textract.StartDocumentTextDetection")); return headers; }