/** * 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; AnalyzeExpenseRequest::AnalyzeExpenseRequest() : m_documentHasBeenSet(false) { } Aws::String AnalyzeExpenseRequest::SerializePayload() const { JsonValue payload; if(m_documentHasBeenSet) { payload.WithObject("Document", m_document.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection AnalyzeExpenseRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Textract.AnalyzeExpense")); return headers; }