/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The confidence that Amazon Comprehend accurately detected the source language
* is low. If a low confidence level is acceptable for your application, you can
* use the language in the exception to call Amazon Translate again. For more
* information, see the DetectDominantLanguage
* operation in the Amazon Comprehend Developer Guide. See
* Also:
AWS
* API Reference
The language code of the auto-detected language from Amazon Comprehend.
*/ inline const Aws::String& GetDetectedLanguageCode() const{ return m_detectedLanguageCode; } /** *The language code of the auto-detected language from Amazon Comprehend.
*/ inline bool DetectedLanguageCodeHasBeenSet() const { return m_detectedLanguageCodeHasBeenSet; } /** *The language code of the auto-detected language from Amazon Comprehend.
*/ inline void SetDetectedLanguageCode(const Aws::String& value) { m_detectedLanguageCodeHasBeenSet = true; m_detectedLanguageCode = value; } /** *The language code of the auto-detected language from Amazon Comprehend.
*/ inline void SetDetectedLanguageCode(Aws::String&& value) { m_detectedLanguageCodeHasBeenSet = true; m_detectedLanguageCode = std::move(value); } /** *The language code of the auto-detected language from Amazon Comprehend.
*/ inline void SetDetectedLanguageCode(const char* value) { m_detectedLanguageCodeHasBeenSet = true; m_detectedLanguageCode.assign(value); } /** *The language code of the auto-detected language from Amazon Comprehend.
*/ inline DetectedLanguageLowConfidenceException& WithDetectedLanguageCode(const Aws::String& value) { SetDetectedLanguageCode(value); return *this;} /** *The language code of the auto-detected language from Amazon Comprehend.
*/ inline DetectedLanguageLowConfidenceException& WithDetectedLanguageCode(Aws::String&& value) { SetDetectedLanguageCode(std::move(value)); return *this;} /** *The language code of the auto-detected language from Amazon Comprehend.
*/ inline DetectedLanguageLowConfidenceException& WithDetectedLanguageCode(const char* value) { SetDetectedLanguageCode(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_detectedLanguageCode; bool m_detectedLanguageCodeHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws