/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Rekognition::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DetectTextRequest::DetectTextRequest() : m_imageHasBeenSet(false), m_filtersHasBeenSet(false) { } Aws::String DetectTextRequest::SerializePayload() const { JsonValue payload; if(m_imageHasBeenSet) { payload.WithObject("Image", m_image.Jsonize()); } if(m_filtersHasBeenSet) { payload.WithObject("Filters", m_filters.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DetectTextRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "RekognitionService.DetectText")); return headers; }