/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::drs::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateLaunchConfigurationRequest::UpdateLaunchConfigurationRequest() : m_copyPrivateIp(false), m_copyPrivateIpHasBeenSet(false), m_copyTags(false), m_copyTagsHasBeenSet(false), m_launchDisposition(LaunchDisposition::NOT_SET), m_launchDispositionHasBeenSet(false), m_licensingHasBeenSet(false), m_nameHasBeenSet(false), m_sourceServerIDHasBeenSet(false), m_targetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod::NOT_SET), m_targetInstanceTypeRightSizingMethodHasBeenSet(false) { } Aws::String UpdateLaunchConfigurationRequest::SerializePayload() const { JsonValue payload; if(m_copyPrivateIpHasBeenSet) { payload.WithBool("copyPrivateIp", m_copyPrivateIp); } if(m_copyTagsHasBeenSet) { payload.WithBool("copyTags", m_copyTags); } if(m_launchDispositionHasBeenSet) { payload.WithString("launchDisposition", LaunchDispositionMapper::GetNameForLaunchDisposition(m_launchDisposition)); } if(m_licensingHasBeenSet) { payload.WithObject("licensing", m_licensing.Jsonize()); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_sourceServerIDHasBeenSet) { payload.WithString("sourceServerID", m_sourceServerID); } if(m_targetInstanceTypeRightSizingMethodHasBeenSet) { payload.WithString("targetInstanceTypeRightSizingMethod", TargetInstanceTypeRightSizingMethodMapper::GetNameForTargetInstanceTypeRightSizingMethod(m_targetInstanceTypeRightSizingMethod)); } return payload.View().WriteReadable(); }