/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::OSIS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreatePipelineRequest::CreatePipelineRequest() : m_pipelineNameHasBeenSet(false), m_minUnits(0), m_minUnitsHasBeenSet(false), m_maxUnits(0), m_maxUnitsHasBeenSet(false), m_pipelineConfigurationBodyHasBeenSet(false), m_logPublishingOptionsHasBeenSet(false), m_vpcOptionsHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreatePipelineRequest::SerializePayload() const { JsonValue payload; if(m_pipelineNameHasBeenSet) { payload.WithString("PipelineName", m_pipelineName); } if(m_minUnitsHasBeenSet) { payload.WithInteger("MinUnits", m_minUnits); } if(m_maxUnitsHasBeenSet) { payload.WithInteger("MaxUnits", m_maxUnits); } if(m_pipelineConfigurationBodyHasBeenSet) { payload.WithString("PipelineConfigurationBody", m_pipelineConfigurationBody); } if(m_logPublishingOptionsHasBeenSet) { payload.WithObject("LogPublishingOptions", m_logPublishingOptions.Jsonize()); } if(m_vpcOptionsHasBeenSet) { payload.WithObject("VpcOptions", m_vpcOptions.Jsonize()); } if(m_tagsHasBeenSet) { Aws::Utils::Array tagsJsonList(m_tags.size()); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); } payload.WithArray("Tags", std::move(tagsJsonList)); } return payload.View().WriteReadable(); }