/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Proton::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; GetDeploymentRequest::GetDeploymentRequest() : m_componentNameHasBeenSet(false), m_environmentNameHasBeenSet(false), m_idHasBeenSet(false), m_serviceInstanceNameHasBeenSet(false), m_serviceNameHasBeenSet(false) { } Aws::String GetDeploymentRequest::SerializePayload() const { JsonValue payload; if(m_componentNameHasBeenSet) { payload.WithString("componentName", m_componentName); } if(m_environmentNameHasBeenSet) { payload.WithString("environmentName", m_environmentName); } if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_serviceInstanceNameHasBeenSet) { payload.WithString("serviceInstanceName", m_serviceInstanceName); } if(m_serviceNameHasBeenSet) { payload.WithString("serviceName", m_serviceName); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetDeploymentRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AwsProton20200720.GetDeployment")); return headers; }