/** * 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 TranscribeService { namespace Model { MedicalTranscriptionSetting::MedicalTranscriptionSetting() : m_showSpeakerLabels(false), m_showSpeakerLabelsHasBeenSet(false), m_maxSpeakerLabels(0), m_maxSpeakerLabelsHasBeenSet(false), m_channelIdentification(false), m_channelIdentificationHasBeenSet(false), m_showAlternatives(false), m_showAlternativesHasBeenSet(false), m_maxAlternatives(0), m_maxAlternativesHasBeenSet(false), m_vocabularyNameHasBeenSet(false) { } MedicalTranscriptionSetting::MedicalTranscriptionSetting(JsonView jsonValue) : m_showSpeakerLabels(false), m_showSpeakerLabelsHasBeenSet(false), m_maxSpeakerLabels(0), m_maxSpeakerLabelsHasBeenSet(false), m_channelIdentification(false), m_channelIdentificationHasBeenSet(false), m_showAlternatives(false), m_showAlternativesHasBeenSet(false), m_maxAlternatives(0), m_maxAlternativesHasBeenSet(false), m_vocabularyNameHasBeenSet(false) { *this = jsonValue; } MedicalTranscriptionSetting& MedicalTranscriptionSetting::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ShowSpeakerLabels")) { m_showSpeakerLabels = jsonValue.GetBool("ShowSpeakerLabels"); m_showSpeakerLabelsHasBeenSet = true; } if(jsonValue.ValueExists("MaxSpeakerLabels")) { m_maxSpeakerLabels = jsonValue.GetInteger("MaxSpeakerLabels"); m_maxSpeakerLabelsHasBeenSet = true; } if(jsonValue.ValueExists("ChannelIdentification")) { m_channelIdentification = jsonValue.GetBool("ChannelIdentification"); m_channelIdentificationHasBeenSet = true; } if(jsonValue.ValueExists("ShowAlternatives")) { m_showAlternatives = jsonValue.GetBool("ShowAlternatives"); m_showAlternativesHasBeenSet = true; } if(jsonValue.ValueExists("MaxAlternatives")) { m_maxAlternatives = jsonValue.GetInteger("MaxAlternatives"); m_maxAlternativesHasBeenSet = true; } if(jsonValue.ValueExists("VocabularyName")) { m_vocabularyName = jsonValue.GetString("VocabularyName"); m_vocabularyNameHasBeenSet = true; } return *this; } JsonValue MedicalTranscriptionSetting::Jsonize() const { JsonValue payload; if(m_showSpeakerLabelsHasBeenSet) { payload.WithBool("ShowSpeakerLabels", m_showSpeakerLabels); } if(m_maxSpeakerLabelsHasBeenSet) { payload.WithInteger("MaxSpeakerLabels", m_maxSpeakerLabels); } if(m_channelIdentificationHasBeenSet) { payload.WithBool("ChannelIdentification", m_channelIdentification); } if(m_showAlternativesHasBeenSet) { payload.WithBool("ShowAlternatives", m_showAlternatives); } if(m_maxAlternativesHasBeenSet) { payload.WithInteger("MaxAlternatives", m_maxAlternatives); } if(m_vocabularyNameHasBeenSet) { payload.WithString("VocabularyName", m_vocabularyName); } return payload; } } // namespace Model } // namespace TranscribeService } // namespace Aws