/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace LexModelsV2 { namespace Model { TestExecutionTarget::TestExecutionTarget() : m_botAliasTargetHasBeenSet(false) { } TestExecutionTarget::TestExecutionTarget(JsonView jsonValue) : m_botAliasTargetHasBeenSet(false) { *this = jsonValue; } TestExecutionTarget& TestExecutionTarget::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("botAliasTarget")) { m_botAliasTarget = jsonValue.GetObject("botAliasTarget"); m_botAliasTargetHasBeenSet = true; } return *this; } JsonValue TestExecutionTarget::Jsonize() const { JsonValue payload; if(m_botAliasTargetHasBeenSet) { payload.WithObject("botAliasTarget", m_botAliasTarget.Jsonize()); } return payload; } } // namespace Model } // namespace LexModelsV2 } // namespace Aws