/** * 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 { TestSetSlotDiscrepancyItem::TestSetSlotDiscrepancyItem() : m_intentNameHasBeenSet(false), m_slotNameHasBeenSet(false), m_errorMessageHasBeenSet(false) { } TestSetSlotDiscrepancyItem::TestSetSlotDiscrepancyItem(JsonView jsonValue) : m_intentNameHasBeenSet(false), m_slotNameHasBeenSet(false), m_errorMessageHasBeenSet(false) { *this = jsonValue; } TestSetSlotDiscrepancyItem& TestSetSlotDiscrepancyItem::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("intentName")) { m_intentName = jsonValue.GetString("intentName"); m_intentNameHasBeenSet = true; } if(jsonValue.ValueExists("slotName")) { m_slotName = jsonValue.GetString("slotName"); m_slotNameHasBeenSet = true; } if(jsonValue.ValueExists("errorMessage")) { m_errorMessage = jsonValue.GetString("errorMessage"); m_errorMessageHasBeenSet = true; } return *this; } JsonValue TestSetSlotDiscrepancyItem::Jsonize() const { JsonValue payload; if(m_intentNameHasBeenSet) { payload.WithString("intentName", m_intentName); } if(m_slotNameHasBeenSet) { payload.WithString("slotName", m_slotName); } if(m_errorMessageHasBeenSet) { payload.WithString("errorMessage", m_errorMessage); } return payload; } } // namespace Model } // namespace LexModelsV2 } // namespace Aws