AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TranslateTextResult.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/translate/model/TranslationSettings.h>
11#include <aws/translate/model/AppliedTerminology.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Translate
27{
28namespace Model
29{
31 {
32 public:
33 AWS_TRANSLATE_API TranslateTextResult();
36
37
39
42 inline const Aws::String& GetTranslatedText() const{ return m_translatedText; }
43 inline void SetTranslatedText(const Aws::String& value) { m_translatedText = value; }
44 inline void SetTranslatedText(Aws::String&& value) { m_translatedText = std::move(value); }
45 inline void SetTranslatedText(const char* value) { m_translatedText.assign(value); }
46 inline TranslateTextResult& WithTranslatedText(const Aws::String& value) { SetTranslatedText(value); return *this;}
47 inline TranslateTextResult& WithTranslatedText(Aws::String&& value) { SetTranslatedText(std::move(value)); return *this;}
48 inline TranslateTextResult& WithTranslatedText(const char* value) { SetTranslatedText(value); return *this;}
50
52
55 inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
56 inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCode = value; }
57 inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCode = std::move(value); }
58 inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCode.assign(value); }
59 inline TranslateTextResult& WithSourceLanguageCode(const Aws::String& value) { SetSourceLanguageCode(value); return *this;}
60 inline TranslateTextResult& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;}
61 inline TranslateTextResult& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
63
65
68 inline const Aws::String& GetTargetLanguageCode() const{ return m_targetLanguageCode; }
69 inline void SetTargetLanguageCode(const Aws::String& value) { m_targetLanguageCode = value; }
70 inline void SetTargetLanguageCode(Aws::String&& value) { m_targetLanguageCode = std::move(value); }
71 inline void SetTargetLanguageCode(const char* value) { m_targetLanguageCode.assign(value); }
72 inline TranslateTextResult& WithTargetLanguageCode(const Aws::String& value) { SetTargetLanguageCode(value); return *this;}
73 inline TranslateTextResult& WithTargetLanguageCode(Aws::String&& value) { SetTargetLanguageCode(std::move(value)); return *this;}
74 inline TranslateTextResult& WithTargetLanguageCode(const char* value) { SetTargetLanguageCode(value); return *this;}
76
78
82 inline const Aws::Vector<AppliedTerminology>& GetAppliedTerminologies() const{ return m_appliedTerminologies; }
83 inline void SetAppliedTerminologies(const Aws::Vector<AppliedTerminology>& value) { m_appliedTerminologies = value; }
84 inline void SetAppliedTerminologies(Aws::Vector<AppliedTerminology>&& value) { m_appliedTerminologies = std::move(value); }
87 inline TranslateTextResult& AddAppliedTerminologies(const AppliedTerminology& value) { m_appliedTerminologies.push_back(value); return *this; }
88 inline TranslateTextResult& AddAppliedTerminologies(AppliedTerminology&& value) { m_appliedTerminologies.push_back(std::move(value)); return *this; }
90
92
95 inline const TranslationSettings& GetAppliedSettings() const{ return m_appliedSettings; }
96 inline void SetAppliedSettings(const TranslationSettings& value) { m_appliedSettings = value; }
97 inline void SetAppliedSettings(TranslationSettings&& value) { m_appliedSettings = std::move(value); }
99 inline TranslateTextResult& WithAppliedSettings(TranslationSettings&& value) { SetAppliedSettings(std::move(value)); return *this;}
101
103
104 inline const Aws::String& GetRequestId() const{ return m_requestId; }
105 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
106 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
107 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
108 inline TranslateTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
109 inline TranslateTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
110 inline TranslateTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
112 private:
113
114 Aws::String m_translatedText;
115
116 Aws::String m_sourceLanguageCode;
117
118 Aws::String m_targetLanguageCode;
119
120 Aws::Vector<AppliedTerminology> m_appliedTerminologies;
121
122 TranslationSettings m_appliedSettings;
123
124 Aws::String m_requestId;
125 };
126
127} // namespace Model
128} // namespace Translate
129} // namespace Aws
TranslateTextResult & WithRequestId(const char *value)
TranslateTextResult & AddAppliedTerminologies(AppliedTerminology &&value)
TranslateTextResult & WithSourceLanguageCode(const Aws::String &value)
void SetTranslatedText(const Aws::String &value)
AWS_TRANSLATE_API TranslateTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TranslateTextResult & WithTargetLanguageCode(Aws::String &&value)
TranslateTextResult & AddAppliedTerminologies(const AppliedTerminology &value)
TranslateTextResult & WithTranslatedText(Aws::String &&value)
const Aws::String & GetSourceLanguageCode() const
const Aws::String & GetTargetLanguageCode() const
void SetTargetLanguageCode(const Aws::String &value)
const TranslationSettings & GetAppliedSettings() const
void SetAppliedSettings(const TranslationSettings &value)
AWS_TRANSLATE_API TranslateTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAppliedSettings(TranslationSettings &&value)
void SetAppliedTerminologies(Aws::Vector< AppliedTerminology > &&value)
TranslateTextResult & WithTargetLanguageCode(const char *value)
TranslateTextResult & WithSourceLanguageCode(const char *value)
TranslateTextResult & WithAppliedTerminologies(Aws::Vector< AppliedTerminology > &&value)
void SetRequestId(const Aws::String &value)
TranslateTextResult & WithRequestId(Aws::String &&value)
TranslateTextResult & WithAppliedSettings(const TranslationSettings &value)
TranslateTextResult & WithSourceLanguageCode(Aws::String &&value)
TranslateTextResult & WithAppliedSettings(TranslationSettings &&value)
const Aws::Vector< AppliedTerminology > & GetAppliedTerminologies() const
void SetAppliedTerminologies(const Aws::Vector< AppliedTerminology > &value)
void SetSourceLanguageCode(const Aws::String &value)
TranslateTextResult & WithTargetLanguageCode(const Aws::String &value)
TranslateTextResult & WithRequestId(const Aws::String &value)
TranslateTextResult & WithTranslatedText(const char *value)
TranslateTextResult & WithAppliedTerminologies(const Aws::Vector< AppliedTerminology > &value)
TranslateTextResult & WithTranslatedText(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue