/** * 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; StartSimulationRequest::StartSimulationRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_descriptionHasBeenSet(false), m_maximumDurationHasBeenSet(false), m_nameHasBeenSet(false), m_roleArnHasBeenSet(false), m_schemaS3LocationHasBeenSet(false), m_snapshotS3LocationHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String StartSimulationRequest::SerializePayload() const { JsonValue payload; if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_maximumDurationHasBeenSet) { payload.WithString("MaximumDuration", m_maximumDuration); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_roleArnHasBeenSet) { payload.WithString("RoleArn", m_roleArn); } if(m_schemaS3LocationHasBeenSet) { payload.WithObject("SchemaS3Location", m_schemaS3Location.Jsonize()); } if(m_snapshotS3LocationHasBeenSet) { payload.WithObject("SnapshotS3Location", m_snapshotS3Location.Jsonize()); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("Tags", std::move(tagsJsonMap)); } return payload.View().WriteReadable(); }