/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The language code that represents the language identified in your audio,
* including the associated confidence score. If you enabled channel identification
* in your request and each channel contained a different language, you will have
* more than one LanguageWithScore
result.See Also:
* AWS
* API Reference
The language code of the identified language.
*/ inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } /** *The language code of the identified language.
*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *The language code of the identified language.
*/ inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *The language code of the identified language.
*/ inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *The language code of the identified language.
*/ inline LanguageWithScore& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} /** *The language code of the identified language.
*/ inline LanguageWithScore& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} /** *The confidence score associated with the identified language code. Confidence * scores are values between zero and one; larger values indicate a higher * confidence in the identified language.
*/ inline double GetScore() const{ return m_score; } /** *The confidence score associated with the identified language code. Confidence * scores are values between zero and one; larger values indicate a higher * confidence in the identified language.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The confidence score associated with the identified language code. Confidence * scores are values between zero and one; larger values indicate a higher * confidence in the identified language.
*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *The confidence score associated with the identified language code. Confidence * scores are values between zero and one; larger values indicate a higher * confidence in the identified language.
*/ inline LanguageWithScore& WithScore(double value) { SetScore(value); return *this;} private: LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws