/** * 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 LexRuntimeV2 { namespace Model { Interpretation::Interpretation() : m_nluConfidenceHasBeenSet(false), m_sentimentResponseHasBeenSet(false), m_intentHasBeenSet(false) { } Interpretation::Interpretation(JsonView jsonValue) : m_nluConfidenceHasBeenSet(false), m_sentimentResponseHasBeenSet(false), m_intentHasBeenSet(false) { *this = jsonValue; } Interpretation& Interpretation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("nluConfidence")) { m_nluConfidence = jsonValue.GetObject("nluConfidence"); m_nluConfidenceHasBeenSet = true; } if(jsonValue.ValueExists("sentimentResponse")) { m_sentimentResponse = jsonValue.GetObject("sentimentResponse"); m_sentimentResponseHasBeenSet = true; } if(jsonValue.ValueExists("intent")) { m_intent = jsonValue.GetObject("intent"); m_intentHasBeenSet = true; } return *this; } JsonValue Interpretation::Jsonize() const { JsonValue payload; if(m_nluConfidenceHasBeenSet) { payload.WithObject("nluConfidence", m_nluConfidence.Jsonize()); } if(m_sentimentResponseHasBeenSet) { payload.WithObject("sentimentResponse", m_sentimentResponse.Jsonize()); } if(m_intentHasBeenSet) { payload.WithObject("intent", m_intent.Jsonize()); } return payload; } } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws