/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include using namespace Aws::MigrationHubOrchestrator::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws::Http; UpdateWorkflowStepGroupRequest::UpdateWorkflowStepGroupRequest() : m_workflowIdHasBeenSet(false), m_idHasBeenSet(false), m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_nextHasBeenSet(false), m_previousHasBeenSet(false) { } Aws::String UpdateWorkflowStepGroupRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_nextHasBeenSet) { Aws::Utils::Array nextJsonList(m_next.size()); for(unsigned nextIndex = 0; nextIndex < nextJsonList.GetLength(); ++nextIndex) { nextJsonList[nextIndex].AsString(m_next[nextIndex]); } payload.WithArray("next", std::move(nextJsonList)); } if(m_previousHasBeenSet) { Aws::Utils::Array previousJsonList(m_previous.size()); for(unsigned previousIndex = 0; previousIndex < previousJsonList.GetLength(); ++previousIndex) { previousJsonList[previousIndex].AsString(m_previous[previousIndex]); } payload.WithArray("previous", std::move(previousJsonList)); } return payload.View().WriteReadable(); } void UpdateWorkflowStepGroupRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_workflowIdHasBeenSet) { ss << m_workflowId; uri.AddQueryStringParameter("workflowId", ss.str()); ss.str(""); } }