/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns the code for the dominant language in the input text and the level of
* confidence that Amazon Comprehend has in the accuracy of the
* detection.See Also:
AWS
* API Reference
The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline const Aws::String& GetLanguageCode() const{ return m_languageCode; } /** *The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); } /** *The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline DominantLanguage& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;} /** *The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline DominantLanguage& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;} /** *The RFC 5646 language code for the dominant language. For more information * about RFC 5646, see Tags for * Identifying Languages on the IETF Tools web site.
*/ inline DominantLanguage& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;} /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline double GetScore() const{ return m_score; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline DominantLanguage& WithScore(double value) { SetScore(value); return *this;} private: Aws::String m_languageCode; bool m_languageCodeHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws