/** * 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 { ConversationLevelResultDetail::ConversationLevelResultDetail() : m_endToEndResult(TestResultMatchStatus::NOT_SET), m_endToEndResultHasBeenSet(false), m_speechTranscriptionResult(TestResultMatchStatus::NOT_SET), m_speechTranscriptionResultHasBeenSet(false) { } ConversationLevelResultDetail::ConversationLevelResultDetail(JsonView jsonValue) : m_endToEndResult(TestResultMatchStatus::NOT_SET), m_endToEndResultHasBeenSet(false), m_speechTranscriptionResult(TestResultMatchStatus::NOT_SET), m_speechTranscriptionResultHasBeenSet(false) { *this = jsonValue; } ConversationLevelResultDetail& ConversationLevelResultDetail::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("endToEndResult")) { m_endToEndResult = TestResultMatchStatusMapper::GetTestResultMatchStatusForName(jsonValue.GetString("endToEndResult")); m_endToEndResultHasBeenSet = true; } if(jsonValue.ValueExists("speechTranscriptionResult")) { m_speechTranscriptionResult = TestResultMatchStatusMapper::GetTestResultMatchStatusForName(jsonValue.GetString("speechTranscriptionResult")); m_speechTranscriptionResultHasBeenSet = true; } return *this; } JsonValue ConversationLevelResultDetail::Jsonize() const { JsonValue payload; if(m_endToEndResultHasBeenSet) { payload.WithString("endToEndResult", TestResultMatchStatusMapper::GetNameForTestResultMatchStatus(m_endToEndResult)); } if(m_speechTranscriptionResultHasBeenSet) { payload.WithString("speechTranscriptionResult", TestResultMatchStatusMapper::GetNameForTestResultMatchStatus(m_speechTranscriptionResult)); } return payload; } } // namespace Model } // namespace LexModelsV2 } // namespace Aws