/** * 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; StartModelPackagingJobRequest::StartModelPackagingJobRequest() : m_projectNameHasBeenSet(false), m_modelVersionHasBeenSet(false), m_jobNameHasBeenSet(false), m_configurationHasBeenSet(false), m_descriptionHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String StartModelPackagingJobRequest::SerializePayload() const { JsonValue payload; if(m_modelVersionHasBeenSet) { payload.WithString("ModelVersion", m_modelVersion); } if(m_jobNameHasBeenSet) { payload.WithString("JobName", m_jobName); } if(m_configurationHasBeenSet) { payload.WithObject("Configuration", m_configuration.Jsonize()); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection StartModelPackagingJobRequest::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; }