/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SimSpaceWeaver::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartAppRequest::StartAppRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_descriptionHasBeenSet(false), m_domainHasBeenSet(false), m_launchOverridesHasBeenSet(false), m_nameHasBeenSet(false), m_simulationHasBeenSet(false) { } Aws::String StartAppRequest::SerializePayload() const { JsonValue payload; if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_domainHasBeenSet) { payload.WithString("Domain", m_domain); } if(m_launchOverridesHasBeenSet) { payload.WithObject("LaunchOverrides", m_launchOverrides.Jsonize()); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_simulationHasBeenSet) { payload.WithString("Simulation", m_simulation); } return payload.View().WriteReadable(); }