/** * 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 { AnalyticsUtteranceGroupByKey::AnalyticsUtteranceGroupByKey() : m_name(AnalyticsUtteranceField::NOT_SET), m_nameHasBeenSet(false), m_valueHasBeenSet(false) { } AnalyticsUtteranceGroupByKey::AnalyticsUtteranceGroupByKey(JsonView jsonValue) : m_name(AnalyticsUtteranceField::NOT_SET), m_nameHasBeenSet(false), m_valueHasBeenSet(false) { *this = jsonValue; } AnalyticsUtteranceGroupByKey& AnalyticsUtteranceGroupByKey::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = AnalyticsUtteranceFieldMapper::GetAnalyticsUtteranceFieldForName(jsonValue.GetString("name")); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("value")) { m_value = jsonValue.GetString("value"); m_valueHasBeenSet = true; } return *this; } JsonValue AnalyticsUtteranceGroupByKey::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", AnalyticsUtteranceFieldMapper::GetNameForAnalyticsUtteranceField(m_name)); } if(m_valueHasBeenSet) { payload.WithString("value", m_value); } return payload; } } // namespace Model } // namespace LexModelsV2 } // namespace Aws