AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartTextTranslationJobRequest.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/TranslateRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/translate/model/InputDataConfig.h>
11#include <aws/translate/model/OutputDataConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/translate/model/TranslationSettings.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Translate
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TRANSLATE_API StartTextTranslationJobRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartTextTranslationJob"; }
36
37 AWS_TRANSLATE_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetJobName() const{ return m_jobName; }
47 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
48 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
49 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
50 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
51 inline StartTextTranslationJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
52 inline StartTextTranslationJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
53 inline StartTextTranslationJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
55
57
61 inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
62 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
63 inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
64 inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
66 inline StartTextTranslationJobRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
68
70
73 inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
74 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
75 inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
76 inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
80
82
89 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
90 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
91 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
92 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
93 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
95 inline StartTextTranslationJobRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
96 inline StartTextTranslationJobRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
98
100
109 inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
110 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
111 inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; }
112 inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); }
113 inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); }
116 inline StartTextTranslationJobRequest& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
118
120
127 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const{ return m_targetLanguageCodes; }
128 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
129 inline void SetTargetLanguageCodes(const Aws::Vector<Aws::String>& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = value; }
130 inline void SetTargetLanguageCodes(Aws::Vector<Aws::String>&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::move(value); }
133 inline StartTextTranslationJobRequest& AddTargetLanguageCodes(const Aws::String& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; }
134 inline StartTextTranslationJobRequest& AddTargetLanguageCodes(Aws::String&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(std::move(value)); return *this; }
135 inline StartTextTranslationJobRequest& AddTargetLanguageCodes(const char* value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; }
137
139
151 inline const Aws::Vector<Aws::String>& GetTerminologyNames() const{ return m_terminologyNames; }
152 inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
153 inline void SetTerminologyNames(const Aws::Vector<Aws::String>& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = value; }
154 inline void SetTerminologyNames(Aws::Vector<Aws::String>&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::move(value); }
157 inline StartTextTranslationJobRequest& AddTerminologyNames(const Aws::String& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
158 inline StartTextTranslationJobRequest& AddTerminologyNames(Aws::String&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(std::move(value)); return *this; }
159 inline StartTextTranslationJobRequest& AddTerminologyNames(const char* value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
161
163
178 inline const Aws::Vector<Aws::String>& GetParallelDataNames() const{ return m_parallelDataNames; }
179 inline bool ParallelDataNamesHasBeenSet() const { return m_parallelDataNamesHasBeenSet; }
180 inline void SetParallelDataNames(const Aws::Vector<Aws::String>& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames = value; }
181 inline void SetParallelDataNames(Aws::Vector<Aws::String>&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames = std::move(value); }
184 inline StartTextTranslationJobRequest& AddParallelDataNames(const Aws::String& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(value); return *this; }
185 inline StartTextTranslationJobRequest& AddParallelDataNames(Aws::String&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(std::move(value)); return *this; }
186 inline StartTextTranslationJobRequest& AddParallelDataNames(const char* value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(value); return *this; }
188
190
194 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
195 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
196 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
197 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
198 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
199 inline StartTextTranslationJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
200 inline StartTextTranslationJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
201 inline StartTextTranslationJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
203
205
212 inline const TranslationSettings& GetSettings() const{ return m_settings; }
213 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
214 inline void SetSettings(const TranslationSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
215 inline void SetSettings(TranslationSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
216 inline StartTextTranslationJobRequest& WithSettings(const TranslationSettings& value) { SetSettings(value); return *this;}
217 inline StartTextTranslationJobRequest& WithSettings(TranslationSettings&& value) { SetSettings(std::move(value)); return *this;}
219 private:
220
221 Aws::String m_jobName;
222 bool m_jobNameHasBeenSet = false;
223
224 InputDataConfig m_inputDataConfig;
225 bool m_inputDataConfigHasBeenSet = false;
226
227 OutputDataConfig m_outputDataConfig;
228 bool m_outputDataConfigHasBeenSet = false;
229
230 Aws::String m_dataAccessRoleArn;
231 bool m_dataAccessRoleArnHasBeenSet = false;
232
233 Aws::String m_sourceLanguageCode;
234 bool m_sourceLanguageCodeHasBeenSet = false;
235
236 Aws::Vector<Aws::String> m_targetLanguageCodes;
237 bool m_targetLanguageCodesHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_terminologyNames;
240 bool m_terminologyNamesHasBeenSet = false;
241
242 Aws::Vector<Aws::String> m_parallelDataNames;
243 bool m_parallelDataNamesHasBeenSet = false;
244
245 Aws::String m_clientToken;
246 bool m_clientTokenHasBeenSet = false;
247
248 TranslationSettings m_settings;
249 bool m_settingsHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace Translate
254} // namespace Aws
StartTextTranslationJobRequest & WithInputDataConfig(const InputDataConfig &value)
void SetParallelDataNames(const Aws::Vector< Aws::String > &value)
StartTextTranslationJobRequest & AddTerminologyNames(const Aws::String &value)
StartTextTranslationJobRequest & WithSettings(const TranslationSettings &value)
StartTextTranslationJobRequest & AddTargetLanguageCodes(Aws::String &&value)
StartTextTranslationJobRequest & WithOutputDataConfig(const OutputDataConfig &value)
StartTextTranslationJobRequest & WithJobName(Aws::String &&value)
StartTextTranslationJobRequest & WithSourceLanguageCode(const char *value)
StartTextTranslationJobRequest & WithTargetLanguageCodes(Aws::Vector< Aws::String > &&value)
StartTextTranslationJobRequest & AddParallelDataNames(Aws::String &&value)
StartTextTranslationJobRequest & WithDataAccessRoleArn(const char *value)
StartTextTranslationJobRequest & AddTerminologyNames(const char *value)
StartTextTranslationJobRequest & AddParallelDataNames(const char *value)
const Aws::Vector< Aws::String > & GetParallelDataNames() const
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
StartTextTranslationJobRequest & WithDataAccessRoleArn(Aws::String &&value)
StartTextTranslationJobRequest & WithSourceLanguageCode(const Aws::String &value)
StartTextTranslationJobRequest & WithParallelDataNames(Aws::Vector< Aws::String > &&value)
StartTextTranslationJobRequest & WithInputDataConfig(InputDataConfig &&value)
StartTextTranslationJobRequest & WithClientToken(Aws::String &&value)
StartTextTranslationJobRequest & WithClientToken(const Aws::String &value)
void SetTargetLanguageCodes(const Aws::Vector< Aws::String > &value)
StartTextTranslationJobRequest & AddTargetLanguageCodes(const char *value)
StartTextTranslationJobRequest & WithSourceLanguageCode(Aws::String &&value)
AWS_TRANSLATE_API Aws::String SerializePayload() const override
StartTextTranslationJobRequest & WithSettings(TranslationSettings &&value)
StartTextTranslationJobRequest & WithTerminologyNames(const Aws::Vector< Aws::String > &value)
StartTextTranslationJobRequest & WithOutputDataConfig(OutputDataConfig &&value)
StartTextTranslationJobRequest & WithClientToken(const char *value)
void SetTerminologyNames(const Aws::Vector< Aws::String > &value)
StartTextTranslationJobRequest & AddTargetLanguageCodes(const Aws::String &value)
AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartTextTranslationJobRequest & WithTerminologyNames(Aws::Vector< Aws::String > &&value)
StartTextTranslationJobRequest & AddParallelDataNames(const Aws::String &value)
StartTextTranslationJobRequest & WithJobName(const Aws::String &value)
StartTextTranslationJobRequest & WithTargetLanguageCodes(const Aws::Vector< Aws::String > &value)
StartTextTranslationJobRequest & WithParallelDataNames(const Aws::Vector< Aws::String > &value)
StartTextTranslationJobRequest & AddTerminologyNames(Aws::String &&value)
StartTextTranslationJobRequest & WithDataAccessRoleArn(const Aws::String &value)
StartTextTranslationJobRequest & WithJobName(const char *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