AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename JobNameT = Aws::String>
49 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
50 template<typename JobNameT = Aws::String>
51 StartTextTranslationJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
53
55
59 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
60 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
61 template<typename InputDataConfigT = InputDataConfig>
62 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
63 template<typename InputDataConfigT = InputDataConfig>
64 StartTextTranslationJobRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
66
68
71 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
72 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
73 template<typename OutputDataConfigT = OutputDataConfig>
74 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
75 template<typename OutputDataConfigT = OutputDataConfig>
76 StartTextTranslationJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
78
80
87 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
88 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
89 template<typename DataAccessRoleArnT = Aws::String>
90 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value); }
91 template<typename DataAccessRoleArnT = Aws::String>
92 StartTextTranslationJobRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) { SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value)); return *this;}
94
96
105 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
106 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
107 template<typename SourceLanguageCodeT = Aws::String>
108 void SetSourceLanguageCode(SourceLanguageCodeT&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value); }
109 template<typename SourceLanguageCodeT = Aws::String>
110 StartTextTranslationJobRequest& WithSourceLanguageCode(SourceLanguageCodeT&& value) { SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value)); return *this;}
112
114
121 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
122 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
123 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
124 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value); }
125 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
126 StartTextTranslationJobRequest& WithTargetLanguageCodes(TargetLanguageCodesT&& value) { SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value)); return *this;}
127 template<typename TargetLanguageCodesT = Aws::String>
128 StartTextTranslationJobRequest& AddTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value)); return *this; }
130
132
144 inline const Aws::Vector<Aws::String>& GetTerminologyNames() const { return m_terminologyNames; }
145 inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
146 template<typename TerminologyNamesT = Aws::Vector<Aws::String>>
147 void SetTerminologyNames(TerminologyNamesT&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::forward<TerminologyNamesT>(value); }
148 template<typename TerminologyNamesT = Aws::Vector<Aws::String>>
149 StartTextTranslationJobRequest& WithTerminologyNames(TerminologyNamesT&& value) { SetTerminologyNames(std::forward<TerminologyNamesT>(value)); return *this;}
150 template<typename TerminologyNamesT = Aws::String>
151 StartTextTranslationJobRequest& AddTerminologyNames(TerminologyNamesT&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.emplace_back(std::forward<TerminologyNamesT>(value)); return *this; }
153
155
170 inline const Aws::Vector<Aws::String>& GetParallelDataNames() const { return m_parallelDataNames; }
171 inline bool ParallelDataNamesHasBeenSet() const { return m_parallelDataNamesHasBeenSet; }
172 template<typename ParallelDataNamesT = Aws::Vector<Aws::String>>
173 void SetParallelDataNames(ParallelDataNamesT&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames = std::forward<ParallelDataNamesT>(value); }
174 template<typename ParallelDataNamesT = Aws::Vector<Aws::String>>
175 StartTextTranslationJobRequest& WithParallelDataNames(ParallelDataNamesT&& value) { SetParallelDataNames(std::forward<ParallelDataNamesT>(value)); return *this;}
176 template<typename ParallelDataNamesT = Aws::String>
177 StartTextTranslationJobRequest& AddParallelDataNames(ParallelDataNamesT&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.emplace_back(std::forward<ParallelDataNamesT>(value)); return *this; }
179
181
185 inline const Aws::String& GetClientToken() const { return m_clientToken; }
186 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
187 template<typename ClientTokenT = Aws::String>
188 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
189 template<typename ClientTokenT = Aws::String>
190 StartTextTranslationJobRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
192
194
201 inline const TranslationSettings& GetSettings() const { return m_settings; }
202 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
203 template<typename SettingsT = TranslationSettings>
204 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
205 template<typename SettingsT = TranslationSettings>
206 StartTextTranslationJobRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
208 private:
209
210 Aws::String m_jobName;
211 bool m_jobNameHasBeenSet = false;
212
213 InputDataConfig m_inputDataConfig;
214 bool m_inputDataConfigHasBeenSet = false;
215
216 OutputDataConfig m_outputDataConfig;
217 bool m_outputDataConfigHasBeenSet = false;
218
219 Aws::String m_dataAccessRoleArn;
220 bool m_dataAccessRoleArnHasBeenSet = false;
221
222 Aws::String m_sourceLanguageCode;
223 bool m_sourceLanguageCodeHasBeenSet = false;
224
225 Aws::Vector<Aws::String> m_targetLanguageCodes;
226 bool m_targetLanguageCodesHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_terminologyNames;
229 bool m_terminologyNamesHasBeenSet = false;
230
231 Aws::Vector<Aws::String> m_parallelDataNames;
232 bool m_parallelDataNamesHasBeenSet = false;
233
235 bool m_clientTokenHasBeenSet = true;
236
237 TranslationSettings m_settings;
238 bool m_settingsHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace Translate
243} // namespace Aws
StartTextTranslationJobRequest & AddTargetLanguageCodes(TargetLanguageCodesT &&value)
StartTextTranslationJobRequest & AddParallelDataNames(ParallelDataNamesT &&value)
StartTextTranslationJobRequest & WithParallelDataNames(ParallelDataNamesT &&value)
StartTextTranslationJobRequest & WithSettings(SettingsT &&value)
StartTextTranslationJobRequest & WithSourceLanguageCode(SourceLanguageCodeT &&value)
StartTextTranslationJobRequest & WithTerminologyNames(TerminologyNamesT &&value)
StartTextTranslationJobRequest & WithJobName(JobNameT &&value)
const Aws::Vector< Aws::String > & GetParallelDataNames() const
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
StartTextTranslationJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartTextTranslationJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
AWS_TRANSLATE_API Aws::String SerializePayload() const override
StartTextTranslationJobRequest & WithClientToken(ClientTokenT &&value)
StartTextTranslationJobRequest & WithInputDataConfig(InputDataConfigT &&value)
AWS_TRANSLATE_API StartTextTranslationJobRequest()=default
StartTextTranslationJobRequest & WithTargetLanguageCodes(TargetLanguageCodesT &&value)
AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartTextTranslationJobRequest & AddTerminologyNames(TerminologyNamesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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