/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::LookoutforVision::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateProjectRequest::CreateProjectRequest() : m_projectNameHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String CreateProjectRequest::SerializePayload() const { JsonValue payload; if(m_projectNameHasBeenSet) { payload.WithString("ProjectName", m_projectName); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CreateProjectRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; Aws::StringStream ss; if(m_clientTokenHasBeenSet) { ss << m_clientToken; headers.emplace("x-amzn-client-token", ss.str()); ss.str(""); } return headers; }