AWS SDK for C++  1.9.102
AWS SDK for C++
TranslateTextRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Translate
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "TranslateText"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetText() const{ return m_text; }
43 
48  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
49 
54  inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
55 
60  inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
61 
66  inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
67 
72  inline TranslateTextRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
73 
78  inline TranslateTextRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
79 
84  inline TranslateTextRequest& WithText(const char* value) { SetText(value); return *this;}
85 
86 
92  inline const Aws::Vector<Aws::String>& GetTerminologyNames() const{ return m_terminologyNames; }
93 
99  inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
100 
106  inline void SetTerminologyNames(const Aws::Vector<Aws::String>& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = value; }
107 
113  inline void SetTerminologyNames(Aws::Vector<Aws::String>&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::move(value); }
114 
120  inline TranslateTextRequest& WithTerminologyNames(const Aws::Vector<Aws::String>& value) { SetTerminologyNames(value); return *this;}
121 
127  inline TranslateTextRequest& WithTerminologyNames(Aws::Vector<Aws::String>&& value) { SetTerminologyNames(std::move(value)); return *this;}
128 
134  inline TranslateTextRequest& AddTerminologyNames(const Aws::String& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
135 
141  inline TranslateTextRequest& AddTerminologyNames(Aws::String&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(std::move(value)); return *this; }
142 
148  inline TranslateTextRequest& AddTerminologyNames(const char* value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
149 
150 
161  inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
162 
173  inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
174 
185  inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; }
186 
197  inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); }
198 
209  inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); }
210 
221  inline TranslateTextRequest& WithSourceLanguageCode(const Aws::String& value) { SetSourceLanguageCode(value); return *this;}
222 
233  inline TranslateTextRequest& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;}
234 
245  inline TranslateTextRequest& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
246 
247 
252  inline const Aws::String& GetTargetLanguageCode() const{ return m_targetLanguageCode; }
253 
258  inline bool TargetLanguageCodeHasBeenSet() const { return m_targetLanguageCodeHasBeenSet; }
259 
264  inline void SetTargetLanguageCode(const Aws::String& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = value; }
265 
270  inline void SetTargetLanguageCode(Aws::String&& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = std::move(value); }
271 
276  inline void SetTargetLanguageCode(const char* value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode.assign(value); }
277 
282  inline TranslateTextRequest& WithTargetLanguageCode(const Aws::String& value) { SetTargetLanguageCode(value); return *this;}
283 
288  inline TranslateTextRequest& WithTargetLanguageCode(Aws::String&& value) { SetTargetLanguageCode(std::move(value)); return *this;}
289 
294  inline TranslateTextRequest& WithTargetLanguageCode(const char* value) { SetTargetLanguageCode(value); return *this;}
295 
296  private:
297 
298  Aws::String m_text;
299  bool m_textHasBeenSet;
300 
301  Aws::Vector<Aws::String> m_terminologyNames;
302  bool m_terminologyNamesHasBeenSet;
303 
304  Aws::String m_sourceLanguageCode;
305  bool m_sourceLanguageCodeHasBeenSet;
306 
307  Aws::String m_targetLanguageCode;
308  bool m_targetLanguageCodeHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace Translate
313 } // namespace Aws
Aws::Translate::Model::TranslateTextRequest::SetTargetLanguageCode
void SetTargetLanguageCode(Aws::String &&value)
Definition: TranslateTextRequest.h:270
Aws::Translate::Model::TranslateTextRequest::TerminologyNamesHasBeenSet
bool TerminologyNamesHasBeenSet() const
Definition: TranslateTextRequest.h:99
Aws::Translate::Model::TranslateTextRequest::TargetLanguageCodeHasBeenSet
bool TargetLanguageCodeHasBeenSet() const
Definition: TranslateTextRequest.h:258
Aws::Translate::Model::TranslateTextRequest::AddTerminologyNames
TranslateTextRequest & AddTerminologyNames(const char *value)
Definition: TranslateTextRequest.h:148
Aws::Translate::Model::TranslateTextRequest::WithTerminologyNames
TranslateTextRequest & WithTerminologyNames(Aws::Vector< Aws::String > &&value)
Definition: TranslateTextRequest.h:127
Translate_EXPORTS.h
Aws::Translate::Model::TranslateTextRequest::WithText
TranslateTextRequest & WithText(const Aws::String &value)
Definition: TranslateTextRequest.h:72
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Translate::Model::TranslateTextRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Translate::Model::TranslateTextRequest::WithText
TranslateTextRequest & WithText(const char *value)
Definition: TranslateTextRequest.h:84
Aws::Translate::Model::TranslateTextRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Translate::TranslateRequest
Definition: TranslateRequest.h:17
Aws::Translate::Model::TranslateTextRequest::WithTerminologyNames
TranslateTextRequest & WithTerminologyNames(const Aws::Vector< Aws::String > &value)
Definition: TranslateTextRequest.h:120
Aws::Translate::Model::TranslateTextRequest::WithTargetLanguageCode
TranslateTextRequest & WithTargetLanguageCode(const Aws::String &value)
Definition: TranslateTextRequest.h:282
AWS_TRANSLATE_API
#define AWS_TRANSLATE_API
Definition: Translate_EXPORTS.h:28
Aws::Translate::Model::TranslateTextRequest::SetTerminologyNames
void SetTerminologyNames(Aws::Vector< Aws::String > &&value)
Definition: TranslateTextRequest.h:113
Aws::Translate::Model::TranslateTextRequest::AddTerminologyNames
TranslateTextRequest & AddTerminologyNames(const Aws::String &value)
Definition: TranslateTextRequest.h:134
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Translate::Model::TranslateTextRequest::SetText
void SetText(const char *value)
Definition: TranslateTextRequest.h:66
Aws::Translate::Model::TranslateTextRequest::WithTargetLanguageCode
TranslateTextRequest & WithTargetLanguageCode(Aws::String &&value)
Definition: TranslateTextRequest.h:288
Aws::Translate::Model::TranslateTextRequest::WithSourceLanguageCode
TranslateTextRequest & WithSourceLanguageCode(const char *value)
Definition: TranslateTextRequest.h:245
TranslateRequest.h
AWSVector.h
Aws::Translate::Model::TranslateTextRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TranslateTextRequest.h:31
Aws::Translate::Model::TranslateTextRequest::SetTargetLanguageCode
void SetTargetLanguageCode(const char *value)
Definition: TranslateTextRequest.h:276
Aws::Translate::Model::TranslateTextRequest::SetText
void SetText(const Aws::String &value)
Definition: TranslateTextRequest.h:54
Aws::Translate::Model::TranslateTextRequest::TranslateTextRequest
TranslateTextRequest()
Aws::Translate::Model::TranslateTextRequest::GetTerminologyNames
const Aws::Vector< Aws::String > & GetTerminologyNames() const
Definition: TranslateTextRequest.h:92
Aws::Translate::Model::TranslateTextRequest::SetTerminologyNames
void SetTerminologyNames(const Aws::Vector< Aws::String > &value)
Definition: TranslateTextRequest.h:106
Aws::Translate::Model::TranslateTextRequest::AddTerminologyNames
TranslateTextRequest & AddTerminologyNames(Aws::String &&value)
Definition: TranslateTextRequest.h:141
Aws::Translate::Model::TranslateTextRequest::SetText
void SetText(Aws::String &&value)
Definition: TranslateTextRequest.h:60
Aws::Translate::Model::TranslateTextRequest::SourceLanguageCodeHasBeenSet
bool SourceLanguageCodeHasBeenSet() const
Definition: TranslateTextRequest.h:173
Aws::Translate::Model::TranslateTextRequest::SetSourceLanguageCode
void SetSourceLanguageCode(const Aws::String &value)
Definition: TranslateTextRequest.h:185
Aws::Translate::Model::TranslateTextRequest::TextHasBeenSet
bool TextHasBeenSet() const
Definition: TranslateTextRequest.h:48
AWSString.h
Aws::Translate::Model::TranslateTextRequest::WithText
TranslateTextRequest & WithText(Aws::String &&value)
Definition: TranslateTextRequest.h:78
Aws::Translate::Model::TranslateTextRequest::SetSourceLanguageCode
void SetSourceLanguageCode(const char *value)
Definition: TranslateTextRequest.h:209
Aws::Translate::Model::TranslateTextRequest::SetTargetLanguageCode
void SetTargetLanguageCode(const Aws::String &value)
Definition: TranslateTextRequest.h:264
Aws
Definition: AccessManagementClient.h:15
Aws::Translate::Model::TranslateTextRequest::SetSourceLanguageCode
void SetSourceLanguageCode(Aws::String &&value)
Definition: TranslateTextRequest.h:197
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Translate::Model::TranslateTextRequest::WithSourceLanguageCode
TranslateTextRequest & WithSourceLanguageCode(Aws::String &&value)
Definition: TranslateTextRequest.h:233
Aws::Translate::Model::TranslateTextRequest::GetText
const Aws::String & GetText() const
Definition: TranslateTextRequest.h:42
Aws::Translate::Model::TranslateTextRequest
Definition: TranslateTextRequest.h:23
Aws::Translate::Model::TranslateTextRequest::WithSourceLanguageCode
TranslateTextRequest & WithSourceLanguageCode(const Aws::String &value)
Definition: TranslateTextRequest.h:221
Aws::Translate::Model::TranslateTextRequest::GetSourceLanguageCode
const Aws::String & GetSourceLanguageCode() const
Definition: TranslateTextRequest.h:161
Aws::Translate::Model::TranslateTextRequest::GetTargetLanguageCode
const Aws::String & GetTargetLanguageCode() const
Definition: TranslateTextRequest.h:252
Aws::Translate::Model::TranslateTextRequest::WithTargetLanguageCode
TranslateTextRequest & WithTargetLanguageCode(const char *value)
Definition: TranslateTextRequest.h:294