AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TranslateDocumentRequest.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/TranslateRequest.h>
9#include <aws/translate/model/Document.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/translate/model/TranslationSettings.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Translate
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_TRANSLATE_API TranslateDocumentRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "TranslateDocument"; }
34
35 AWS_TRANSLATE_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Document& GetDocument() const{ return m_document; }
46 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
47 inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
48 inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
49 inline TranslateDocumentRequest& WithDocument(const Document& value) { SetDocument(value); return *this;}
50 inline TranslateDocumentRequest& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
52
54
64 inline const Aws::Vector<Aws::String>& GetTerminologyNames() const{ return m_terminologyNames; }
65 inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
66 inline void SetTerminologyNames(const Aws::Vector<Aws::String>& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = value; }
67 inline void SetTerminologyNames(Aws::Vector<Aws::String>&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::move(value); }
70 inline TranslateDocumentRequest& AddTerminologyNames(const Aws::String& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
71 inline TranslateDocumentRequest& AddTerminologyNames(Aws::String&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(std::move(value)); return *this; }
72 inline TranslateDocumentRequest& AddTerminologyNames(const char* value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
74
76
90 inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
91 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
92 inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; }
93 inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); }
94 inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); }
96 inline TranslateDocumentRequest& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;}
97 inline TranslateDocumentRequest& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
99
101
107 inline const Aws::String& GetTargetLanguageCode() const{ return m_targetLanguageCode; }
108 inline bool TargetLanguageCodeHasBeenSet() const { return m_targetLanguageCodeHasBeenSet; }
109 inline void SetTargetLanguageCode(const Aws::String& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = value; }
110 inline void SetTargetLanguageCode(Aws::String&& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = std::move(value); }
111 inline void SetTargetLanguageCode(const char* value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode.assign(value); }
113 inline TranslateDocumentRequest& WithTargetLanguageCode(Aws::String&& value) { SetTargetLanguageCode(std::move(value)); return *this;}
114 inline TranslateDocumentRequest& WithTargetLanguageCode(const char* value) { SetTargetLanguageCode(value); return *this;}
116
118
125 inline const TranslationSettings& GetSettings() const{ return m_settings; }
126 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
127 inline void SetSettings(const TranslationSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
128 inline void SetSettings(TranslationSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
129 inline TranslateDocumentRequest& WithSettings(const TranslationSettings& value) { SetSettings(value); return *this;}
130 inline TranslateDocumentRequest& WithSettings(TranslationSettings&& value) { SetSettings(std::move(value)); return *this;}
132 private:
133
134 Document m_document;
135 bool m_documentHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_terminologyNames;
138 bool m_terminologyNamesHasBeenSet = false;
139
140 Aws::String m_sourceLanguageCode;
141 bool m_sourceLanguageCodeHasBeenSet = false;
142
143 Aws::String m_targetLanguageCode;
144 bool m_targetLanguageCodeHasBeenSet = false;
145
146 TranslationSettings m_settings;
147 bool m_settingsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Translate
152} // namespace Aws
TranslateDocumentRequest & WithSourceLanguageCode(Aws::String &&value)
TranslateDocumentRequest & WithTargetLanguageCode(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
TranslateDocumentRequest & WithSettings(const TranslationSettings &value)
TranslateDocumentRequest & WithTargetLanguageCode(const char *value)
void SetTerminologyNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetTerminologyNames() const
TranslateDocumentRequest & WithSourceLanguageCode(const Aws::String &value)
TranslateDocumentRequest & WithSourceLanguageCode(const char *value)
TranslateDocumentRequest & WithDocument(const Document &value)
TranslateDocumentRequest & WithTerminologyNames(const Aws::Vector< Aws::String > &value)
AWS_TRANSLATE_API Aws::String SerializePayload() const override
TranslateDocumentRequest & AddTerminologyNames(Aws::String &&value)
AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TranslateDocumentRequest & AddTerminologyNames(const Aws::String &value)
void SetTerminologyNames(const Aws::Vector< Aws::String > &value)
TranslateDocumentRequest & WithTerminologyNames(Aws::Vector< Aws::String > &&value)
TranslateDocumentRequest & WithDocument(Document &&value)
TranslateDocumentRequest & WithTargetLanguageCode(Aws::String &&value)
TranslateDocumentRequest & AddTerminologyNames(const char *value)
void SetSettings(const TranslationSettings &value)
TranslateDocumentRequest & WithSettings(TranslationSettings &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector