/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::LexModelsV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartTestExecutionRequest::StartTestExecutionRequest() : m_testSetIdHasBeenSet(false), m_targetHasBeenSet(false), m_apiMode(TestExecutionApiMode::NOT_SET), m_apiModeHasBeenSet(false), m_testExecutionModality(TestExecutionModality::NOT_SET), m_testExecutionModalityHasBeenSet(false) { } Aws::String StartTestExecutionRequest::SerializePayload() const { JsonValue payload; if(m_targetHasBeenSet) { payload.WithObject("target", m_target.Jsonize()); } if(m_apiModeHasBeenSet) { payload.WithString("apiMode", TestExecutionApiModeMapper::GetNameForTestExecutionApiMode(m_apiMode)); } if(m_testExecutionModalityHasBeenSet) { payload.WithString("testExecutionModality", TestExecutionModalityMapper::GetNameForTestExecutionModality(m_testExecutionModality)); } return payload.View().WriteReadable(); }