AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UnsupportedLanguagePairException.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Translate
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_TRANSLATE_API UnsupportedLanguagePairException() = default;
40 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const { return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 template<typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
49 template<typename MessageT = Aws::String>
50 UnsupportedLanguagePairException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
52
54
57 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
58 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
59 template<typename SourceLanguageCodeT = Aws::String>
60 void SetSourceLanguageCode(SourceLanguageCodeT&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value); }
61 template<typename SourceLanguageCodeT = Aws::String>
62 UnsupportedLanguagePairException& WithSourceLanguageCode(SourceLanguageCodeT&& value) { SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTargetLanguageCode() const { return m_targetLanguageCode; }
70 inline bool TargetLanguageCodeHasBeenSet() const { return m_targetLanguageCodeHasBeenSet; }
71 template<typename TargetLanguageCodeT = Aws::String>
72 void SetTargetLanguageCode(TargetLanguageCodeT&& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = std::forward<TargetLanguageCodeT>(value); }
73 template<typename TargetLanguageCodeT = Aws::String>
74 UnsupportedLanguagePairException& WithTargetLanguageCode(TargetLanguageCodeT&& value) { SetTargetLanguageCode(std::forward<TargetLanguageCodeT>(value)); return *this;}
76 private:
77
78 Aws::String m_message;
79 bool m_messageHasBeenSet = false;
80
81 Aws::String m_sourceLanguageCode;
82 bool m_sourceLanguageCodeHasBeenSet = false;
83
84 Aws::String m_targetLanguageCode;
85 bool m_targetLanguageCodeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Translate
90} // namespace Aws
UnsupportedLanguagePairException & WithSourceLanguageCode(SourceLanguageCodeT &&value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
UnsupportedLanguagePairException & WithMessage(MessageT &&value)
AWS_TRANSLATE_API UnsupportedLanguagePairException()=default
AWS_TRANSLATE_API UnsupportedLanguagePairException(Aws::Utils::Json::JsonView jsonValue)
UnsupportedLanguagePairException & WithTargetLanguageCode(TargetLanguageCodeT &&value)
AWS_TRANSLATE_API UnsupportedLanguagePairException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue