AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
49 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
50 inline UnsupportedLanguagePairException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
51 inline UnsupportedLanguagePairException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
52 inline UnsupportedLanguagePairException& WithMessage(const char* value) { SetMessage(value); return *this;}
54
56
59 inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
60 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
61 inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; }
62 inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); }
63 inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); }
66 inline UnsupportedLanguagePairException& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
68
70
73 inline const Aws::String& GetTargetLanguageCode() const{ return m_targetLanguageCode; }
74 inline bool TargetLanguageCodeHasBeenSet() const { return m_targetLanguageCodeHasBeenSet; }
75 inline void SetTargetLanguageCode(const Aws::String& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = value; }
76 inline void SetTargetLanguageCode(Aws::String&& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = std::move(value); }
77 inline void SetTargetLanguageCode(const char* value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode.assign(value); }
80 inline UnsupportedLanguagePairException& WithTargetLanguageCode(const char* value) { SetTargetLanguageCode(value); return *this;}
82 private:
83
84 Aws::String m_message;
85 bool m_messageHasBeenSet = false;
86
87 Aws::String m_sourceLanguageCode;
88 bool m_sourceLanguageCodeHasBeenSet = false;
89
90 Aws::String m_targetLanguageCode;
91 bool m_targetLanguageCodeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Translate
96} // namespace Aws
UnsupportedLanguagePairException & WithMessage(Aws::String &&value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
UnsupportedLanguagePairException & WithMessage(const char *value)
UnsupportedLanguagePairException & WithTargetLanguageCode(const Aws::String &value)
UnsupportedLanguagePairException & WithTargetLanguageCode(const char *value)
UnsupportedLanguagePairException & WithSourceLanguageCode(Aws::String &&value)
AWS_TRANSLATE_API UnsupportedLanguagePairException(Aws::Utils::Json::JsonView jsonValue)
UnsupportedLanguagePairException & WithMessage(const Aws::String &value)
UnsupportedLanguagePairException & WithTargetLanguageCode(Aws::String &&value)
AWS_TRANSLATE_API UnsupportedLanguagePairException & operator=(Aws::Utils::Json::JsonView jsonValue)
UnsupportedLanguagePairException & WithSourceLanguageCode(const char *value)
UnsupportedLanguagePairException & WithSourceLanguageCode(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue