AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
TranscriptionJobSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/transcribe/TranscribeService_EXPORTS.h>
11#include <aws/transcribe/model/ContentRedaction.h>
12#include <aws/transcribe/model/LanguageCode.h>
13#include <aws/transcribe/model/LanguageCodeItem.h>
14#include <aws/transcribe/model/ModelSettings.h>
15#include <aws/transcribe/model/OutputLocationType.h>
16#include <aws/transcribe/model/ToxicityDetectionSettings.h>
17#include <aws/transcribe/model/TranscriptionJobStatus.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace TranscribeService {
29namespace Model {
30
38 public:
39 AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary() = default;
40 AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline const Aws::String& GetTranscriptionJobName() const { return m_transcriptionJobName; }
50 inline bool TranscriptionJobNameHasBeenSet() const { return m_transcriptionJobNameHasBeenSet; }
51 template <typename TranscriptionJobNameT = Aws::String>
52 void SetTranscriptionJobName(TranscriptionJobNameT&& value) {
53 m_transcriptionJobNameHasBeenSet = true;
54 m_transcriptionJobName = std::forward<TranscriptionJobNameT>(value);
55 }
56 template <typename TranscriptionJobNameT = Aws::String>
57 TranscriptionJobSummary& WithTranscriptionJobName(TranscriptionJobNameT&& value) {
58 SetTranscriptionJobName(std::forward<TranscriptionJobNameT>(value));
59 return *this;
60 }
62
64
70 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
71 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
72 template <typename CreationTimeT = Aws::Utils::DateTime>
73 void SetCreationTime(CreationTimeT&& value) {
74 m_creationTimeHasBeenSet = true;
75 m_creationTime = std::forward<CreationTimeT>(value);
76 }
77 template <typename CreationTimeT = Aws::Utils::DateTime>
78 TranscriptionJobSummary& WithCreationTime(CreationTimeT&& value) {
79 SetCreationTime(std::forward<CreationTimeT>(value));
80 return *this;
81 }
83
85
91 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
92 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
93 template <typename StartTimeT = Aws::Utils::DateTime>
94 void SetStartTime(StartTimeT&& value) {
95 m_startTimeHasBeenSet = true;
96 m_startTime = std::forward<StartTimeT>(value);
97 }
98 template <typename StartTimeT = Aws::Utils::DateTime>
100 SetStartTime(std::forward<StartTimeT>(value));
101 return *this;
102 }
104
106
112 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
113 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
114 template <typename CompletionTimeT = Aws::Utils::DateTime>
115 void SetCompletionTime(CompletionTimeT&& value) {
116 m_completionTimeHasBeenSet = true;
117 m_completionTime = std::forward<CompletionTimeT>(value);
118 }
119 template <typename CompletionTimeT = Aws::Utils::DateTime>
120 TranscriptionJobSummary& WithCompletionTime(CompletionTimeT&& value) {
121 SetCompletionTime(std::forward<CompletionTimeT>(value));
122 return *this;
123 }
125
127
130 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
131 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
132 inline void SetLanguageCode(LanguageCode value) {
133 m_languageCodeHasBeenSet = true;
134 m_languageCode = value;
135 }
137 SetLanguageCode(value);
138 return *this;
139 }
141
143
151 inline TranscriptionJobStatus GetTranscriptionJobStatus() const { return m_transcriptionJobStatus; }
152 inline bool TranscriptionJobStatusHasBeenSet() const { return m_transcriptionJobStatusHasBeenSet; }
154 m_transcriptionJobStatusHasBeenSet = true;
155 m_transcriptionJobStatus = value;
156 }
159 return *this;
160 }
162
164
171 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
172 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
173 template <typename FailureReasonT = Aws::String>
174 void SetFailureReason(FailureReasonT&& value) {
175 m_failureReasonHasBeenSet = true;
176 m_failureReason = std::forward<FailureReasonT>(value);
177 }
178 template <typename FailureReasonT = Aws::String>
180 SetFailureReason(std::forward<FailureReasonT>(value));
181 return *this;
182 }
184
186
197 inline OutputLocationType GetOutputLocationType() const { return m_outputLocationType; }
198 inline bool OutputLocationTypeHasBeenSet() const { return m_outputLocationTypeHasBeenSet; }
200 m_outputLocationTypeHasBeenSet = true;
201 m_outputLocationType = value;
202 }
205 return *this;
206 }
208
210
213 inline const ContentRedaction& GetContentRedaction() const { return m_contentRedaction; }
214 inline bool ContentRedactionHasBeenSet() const { return m_contentRedactionHasBeenSet; }
215 template <typename ContentRedactionT = ContentRedaction>
216 void SetContentRedaction(ContentRedactionT&& value) {
217 m_contentRedactionHasBeenSet = true;
218 m_contentRedaction = std::forward<ContentRedactionT>(value);
219 }
220 template <typename ContentRedactionT = ContentRedaction>
221 TranscriptionJobSummary& WithContentRedaction(ContentRedactionT&& value) {
222 SetContentRedaction(std::forward<ContentRedactionT>(value));
223 return *this;
224 }
226
228
229 inline const ModelSettings& GetModelSettings() const { return m_modelSettings; }
230 inline bool ModelSettingsHasBeenSet() const { return m_modelSettingsHasBeenSet; }
231 template <typename ModelSettingsT = ModelSettings>
232 void SetModelSettings(ModelSettingsT&& value) {
233 m_modelSettingsHasBeenSet = true;
234 m_modelSettings = std::forward<ModelSettingsT>(value);
235 }
236 template <typename ModelSettingsT = ModelSettings>
238 SetModelSettings(std::forward<ModelSettingsT>(value));
239 return *this;
240 }
242
244
248 inline bool GetIdentifyLanguage() const { return m_identifyLanguage; }
249 inline bool IdentifyLanguageHasBeenSet() const { return m_identifyLanguageHasBeenSet; }
250 inline void SetIdentifyLanguage(bool value) {
251 m_identifyLanguageHasBeenSet = true;
252 m_identifyLanguage = value;
253 }
255 SetIdentifyLanguage(value);
256 return *this;
257 }
259
261
265 inline bool GetIdentifyMultipleLanguages() const { return m_identifyMultipleLanguages; }
266 inline bool IdentifyMultipleLanguagesHasBeenSet() const { return m_identifyMultipleLanguagesHasBeenSet; }
267 inline void SetIdentifyMultipleLanguages(bool value) {
268 m_identifyMultipleLanguagesHasBeenSet = true;
269 m_identifyMultipleLanguages = value;
270 }
273 return *this;
274 }
276
278
284 inline double GetIdentifiedLanguageScore() const { return m_identifiedLanguageScore; }
285 inline bool IdentifiedLanguageScoreHasBeenSet() const { return m_identifiedLanguageScoreHasBeenSet; }
286 inline void SetIdentifiedLanguageScore(double value) {
287 m_identifiedLanguageScoreHasBeenSet = true;
288 m_identifiedLanguageScore = value;
289 }
292 return *this;
293 }
295
297
302 inline const Aws::Vector<LanguageCodeItem>& GetLanguageCodes() const { return m_languageCodes; }
303 inline bool LanguageCodesHasBeenSet() const { return m_languageCodesHasBeenSet; }
304 template <typename LanguageCodesT = Aws::Vector<LanguageCodeItem>>
305 void SetLanguageCodes(LanguageCodesT&& value) {
306 m_languageCodesHasBeenSet = true;
307 m_languageCodes = std::forward<LanguageCodesT>(value);
308 }
309 template <typename LanguageCodesT = Aws::Vector<LanguageCodeItem>>
311 SetLanguageCodes(std::forward<LanguageCodesT>(value));
312 return *this;
313 }
314 template <typename LanguageCodesT = LanguageCodeItem>
315 TranscriptionJobSummary& AddLanguageCodes(LanguageCodesT&& value) {
316 m_languageCodesHasBeenSet = true;
317 m_languageCodes.emplace_back(std::forward<LanguageCodesT>(value));
318 return *this;
319 }
321
323
327 inline const Aws::Vector<ToxicityDetectionSettings>& GetToxicityDetection() const { return m_toxicityDetection; }
328 inline bool ToxicityDetectionHasBeenSet() const { return m_toxicityDetectionHasBeenSet; }
329 template <typename ToxicityDetectionT = Aws::Vector<ToxicityDetectionSettings>>
330 void SetToxicityDetection(ToxicityDetectionT&& value) {
331 m_toxicityDetectionHasBeenSet = true;
332 m_toxicityDetection = std::forward<ToxicityDetectionT>(value);
333 }
334 template <typename ToxicityDetectionT = Aws::Vector<ToxicityDetectionSettings>>
335 TranscriptionJobSummary& WithToxicityDetection(ToxicityDetectionT&& value) {
336 SetToxicityDetection(std::forward<ToxicityDetectionT>(value));
337 return *this;
338 }
339 template <typename ToxicityDetectionT = ToxicityDetectionSettings>
340 TranscriptionJobSummary& AddToxicityDetection(ToxicityDetectionT&& value) {
341 m_toxicityDetectionHasBeenSet = true;
342 m_toxicityDetection.emplace_back(std::forward<ToxicityDetectionT>(value));
343 return *this;
344 }
346 private:
347 Aws::String m_transcriptionJobName;
348
349 Aws::Utils::DateTime m_creationTime{};
350
351 Aws::Utils::DateTime m_startTime{};
352
353 Aws::Utils::DateTime m_completionTime{};
354
355 LanguageCode m_languageCode{LanguageCode::NOT_SET};
356
358
359 Aws::String m_failureReason;
360
362
363 ContentRedaction m_contentRedaction;
364
365 ModelSettings m_modelSettings;
366
367 bool m_identifyLanguage{false};
368
369 bool m_identifyMultipleLanguages{false};
370
371 double m_identifiedLanguageScore{0.0};
372
373 Aws::Vector<LanguageCodeItem> m_languageCodes;
374
375 Aws::Vector<ToxicityDetectionSettings> m_toxicityDetection;
376 bool m_transcriptionJobNameHasBeenSet = false;
377 bool m_creationTimeHasBeenSet = false;
378 bool m_startTimeHasBeenSet = false;
379 bool m_completionTimeHasBeenSet = false;
380 bool m_languageCodeHasBeenSet = false;
381 bool m_transcriptionJobStatusHasBeenSet = false;
382 bool m_failureReasonHasBeenSet = false;
383 bool m_outputLocationTypeHasBeenSet = false;
384 bool m_contentRedactionHasBeenSet = false;
385 bool m_modelSettingsHasBeenSet = false;
386 bool m_identifyLanguageHasBeenSet = false;
387 bool m_identifyMultipleLanguagesHasBeenSet = false;
388 bool m_identifiedLanguageScoreHasBeenSet = false;
389 bool m_languageCodesHasBeenSet = false;
390 bool m_toxicityDetectionHasBeenSet = false;
391};
392
393} // namespace Model
394} // namespace TranscribeService
395} // namespace Aws
const Aws::Vector< ToxicityDetectionSettings > & GetToxicityDetection() const
AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TranscriptionJobSummary & AddToxicityDetection(ToxicityDetectionT &&value)
TranscriptionJobSummary & WithCompletionTime(CompletionTimeT &&value)
TranscriptionJobSummary & WithModelSettings(ModelSettingsT &&value)
TranscriptionJobSummary & WithTranscriptionJobName(TranscriptionJobNameT &&value)
TranscriptionJobSummary & AddLanguageCodes(LanguageCodesT &&value)
const Aws::Vector< LanguageCodeItem > & GetLanguageCodes() const
TranscriptionJobSummary & WithStartTime(StartTimeT &&value)
TranscriptionJobSummary & WithToxicityDetection(ToxicityDetectionT &&value)
TranscriptionJobSummary & WithIdentifyMultipleLanguages(bool value)
TranscriptionJobSummary & WithContentRedaction(ContentRedactionT &&value)
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TranscriptionJobSummary & WithLanguageCodes(LanguageCodesT &&value)
AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary(Aws::Utils::Json::JsonView jsonValue)
TranscriptionJobSummary & WithLanguageCode(LanguageCode value)
TranscriptionJobSummary & WithTranscriptionJobStatus(TranscriptionJobStatus value)
AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary()=default
TranscriptionJobSummary & WithOutputLocationType(OutputLocationType value)
TranscriptionJobSummary & WithIdentifiedLanguageScore(double value)
TranscriptionJobSummary & WithFailureReason(FailureReasonT &&value)
TranscriptionJobSummary & WithCreationTime(CreationTimeT &&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