/** * 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 ConnectContactLens { namespace Model { RealtimeContactAnalysisSegment::RealtimeContactAnalysisSegment() : m_transcriptHasBeenSet(false), m_categoriesHasBeenSet(false) { } RealtimeContactAnalysisSegment::RealtimeContactAnalysisSegment(JsonView jsonValue) : m_transcriptHasBeenSet(false), m_categoriesHasBeenSet(false) { *this = jsonValue; } RealtimeContactAnalysisSegment& RealtimeContactAnalysisSegment::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Transcript")) { m_transcript = jsonValue.GetObject("Transcript"); m_transcriptHasBeenSet = true; } if(jsonValue.ValueExists("Categories")) { m_categories = jsonValue.GetObject("Categories"); m_categoriesHasBeenSet = true; } return *this; } JsonValue RealtimeContactAnalysisSegment::Jsonize() const { JsonValue payload; if(m_transcriptHasBeenSet) { payload.WithObject("Transcript", m_transcript.Jsonize()); } if(m_categoriesHasBeenSet) { payload.WithObject("Categories", m_categories.Jsonize()); } return payload; } } // namespace Model } // namespace ConnectContactLens } // namespace Aws