/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::Lambda::Model; using namespace Aws::Utils::Stream; using namespace Aws::Utils; using namespace Aws::Http; using namespace Aws; InvokeRequest::InvokeRequest() : m_functionNameHasBeenSet(false), m_invocationType(InvocationType::NOT_SET), m_invocationTypeHasBeenSet(false), m_logType(LogType::NOT_SET), m_logTypeHasBeenSet(false), m_clientContextHasBeenSet(false), m_qualifierHasBeenSet(false) { } void InvokeRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_qualifierHasBeenSet) { ss << m_qualifier; uri.AddQueryStringParameter("Qualifier", ss.str()); ss.str(""); } } Aws::Http::HeaderValueCollection InvokeRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; Aws::StringStream ss; if(m_invocationTypeHasBeenSet) { headers.emplace("x-amz-invocation-type", InvocationTypeMapper::GetNameForInvocationType(m_invocationType)); } if(m_logTypeHasBeenSet) { headers.emplace("x-amz-log-type", LogTypeMapper::GetNameForLogType(m_logType)); } if(m_clientContextHasBeenSet) { ss << m_clientContext; headers.emplace("x-amz-client-context", ss.str()); ss.str(""); } return headers; }