/** * 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; CreateStreamProcessorRequest::CreateStreamProcessorRequest() : m_inputHasBeenSet(false), m_outputHasBeenSet(false), m_nameHasBeenSet(false), m_settingsHasBeenSet(false), m_roleArnHasBeenSet(false) { } Aws::String CreateStreamProcessorRequest::SerializePayload() const { JsonValue payload; if(m_inputHasBeenSet) { payload.WithObject("Input", m_input.Jsonize()); } if(m_outputHasBeenSet) { payload.WithObject("Output", m_output.Jsonize()); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_settingsHasBeenSet) { payload.WithObject("Settings", m_settings.Jsonize()); } if(m_roleArnHasBeenSet) { payload.WithString("RoleArn", m_roleArn); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CreateStreamProcessorRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "RekognitionService.CreateStreamProcessor")); return headers; }