/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudWatchEvidently::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StopLaunchRequest::StopLaunchRequest() : m_desiredState(LaunchStopDesiredState::NOT_SET), m_desiredStateHasBeenSet(false), m_launchHasBeenSet(false), m_projectHasBeenSet(false), m_reasonHasBeenSet(false) { } Aws::String StopLaunchRequest::SerializePayload() const { JsonValue payload; if(m_desiredStateHasBeenSet) { payload.WithString("desiredState", LaunchStopDesiredStateMapper::GetNameForLaunchStopDesiredState(m_desiredState)); } if(m_reasonHasBeenSet) { payload.WithString("reason", m_reason); } return payload.View().WriteReadable(); }