AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TranscriptionJobSummary.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/transcribe/model/LanguageCode.h>
11#include <aws/transcribe/model/TranscriptionJobStatus.h>
12#include <aws/transcribe/model/OutputLocationType.h>
13#include <aws/transcribe/model/ContentRedaction.h>
14#include <aws/transcribe/model/ModelSettings.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/transcribe/model/LanguageCodeItem.h>
17#include <aws/transcribe/model/ToxicityDetectionSettings.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace TranscribeService
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary() = default;
45 AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary(Aws::Utils::Json::JsonView jsonValue);
46 AWS_TRANSCRIBESERVICE_API TranscriptionJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetTranscriptionJobName() const { return m_transcriptionJobName; }
56 inline bool TranscriptionJobNameHasBeenSet() const { return m_transcriptionJobNameHasBeenSet; }
57 template<typename TranscriptionJobNameT = Aws::String>
58 void SetTranscriptionJobName(TranscriptionJobNameT&& value) { m_transcriptionJobNameHasBeenSet = true; m_transcriptionJobName = std::forward<TranscriptionJobNameT>(value); }
59 template<typename TranscriptionJobNameT = Aws::String>
60 TranscriptionJobSummary& WithTranscriptionJobName(TranscriptionJobNameT&& value) { SetTranscriptionJobName(std::forward<TranscriptionJobNameT>(value)); return *this;}
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) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
74 template<typename CreationTimeT = Aws::Utils::DateTime>
75 TranscriptionJobSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
77
79
85 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
86 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 TranscriptionJobSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
92
94
100 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
101 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
102 template<typename CompletionTimeT = Aws::Utils::DateTime>
103 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::forward<CompletionTimeT>(value); }
104 template<typename CompletionTimeT = Aws::Utils::DateTime>
105 TranscriptionJobSummary& WithCompletionTime(CompletionTimeT&& value) { SetCompletionTime(std::forward<CompletionTimeT>(value)); return *this;}
107
109
112 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
113 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
114 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
117
119
127 inline TranscriptionJobStatus GetTranscriptionJobStatus() const { return m_transcriptionJobStatus; }
128 inline bool TranscriptionJobStatusHasBeenSet() const { return m_transcriptionJobStatusHasBeenSet; }
129 inline void SetTranscriptionJobStatus(TranscriptionJobStatus value) { m_transcriptionJobStatusHasBeenSet = true; m_transcriptionJobStatus = value; }
132
134
141 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
142 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
143 template<typename FailureReasonT = Aws::String>
144 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
145 template<typename FailureReasonT = Aws::String>
146 TranscriptionJobSummary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
148
150
161 inline OutputLocationType GetOutputLocationType() const { return m_outputLocationType; }
162 inline bool OutputLocationTypeHasBeenSet() const { return m_outputLocationTypeHasBeenSet; }
163 inline void SetOutputLocationType(OutputLocationType value) { m_outputLocationTypeHasBeenSet = true; m_outputLocationType = value; }
166
168
171 inline const ContentRedaction& GetContentRedaction() const { return m_contentRedaction; }
172 inline bool ContentRedactionHasBeenSet() const { return m_contentRedactionHasBeenSet; }
173 template<typename ContentRedactionT = ContentRedaction>
174 void SetContentRedaction(ContentRedactionT&& value) { m_contentRedactionHasBeenSet = true; m_contentRedaction = std::forward<ContentRedactionT>(value); }
175 template<typename ContentRedactionT = ContentRedaction>
176 TranscriptionJobSummary& WithContentRedaction(ContentRedactionT&& value) { SetContentRedaction(std::forward<ContentRedactionT>(value)); return *this;}
178
180
181 inline const ModelSettings& GetModelSettings() const { return m_modelSettings; }
182 inline bool ModelSettingsHasBeenSet() const { return m_modelSettingsHasBeenSet; }
183 template<typename ModelSettingsT = ModelSettings>
184 void SetModelSettings(ModelSettingsT&& value) { m_modelSettingsHasBeenSet = true; m_modelSettings = std::forward<ModelSettingsT>(value); }
185 template<typename ModelSettingsT = ModelSettings>
186 TranscriptionJobSummary& WithModelSettings(ModelSettingsT&& value) { SetModelSettings(std::forward<ModelSettingsT>(value)); return *this;}
188
190
194 inline bool GetIdentifyLanguage() const { return m_identifyLanguage; }
195 inline bool IdentifyLanguageHasBeenSet() const { return m_identifyLanguageHasBeenSet; }
196 inline void SetIdentifyLanguage(bool value) { m_identifyLanguageHasBeenSet = true; m_identifyLanguage = value; }
197 inline TranscriptionJobSummary& WithIdentifyLanguage(bool value) { SetIdentifyLanguage(value); return *this;}
199
201
205 inline bool GetIdentifyMultipleLanguages() const { return m_identifyMultipleLanguages; }
206 inline bool IdentifyMultipleLanguagesHasBeenSet() const { return m_identifyMultipleLanguagesHasBeenSet; }
207 inline void SetIdentifyMultipleLanguages(bool value) { m_identifyMultipleLanguagesHasBeenSet = true; m_identifyMultipleLanguages = value; }
210
212
218 inline double GetIdentifiedLanguageScore() const { return m_identifiedLanguageScore; }
219 inline bool IdentifiedLanguageScoreHasBeenSet() const { return m_identifiedLanguageScoreHasBeenSet; }
220 inline void SetIdentifiedLanguageScore(double value) { m_identifiedLanguageScoreHasBeenSet = true; m_identifiedLanguageScore = value; }
223
225
230 inline const Aws::Vector<LanguageCodeItem>& GetLanguageCodes() const { return m_languageCodes; }
231 inline bool LanguageCodesHasBeenSet() const { return m_languageCodesHasBeenSet; }
232 template<typename LanguageCodesT = Aws::Vector<LanguageCodeItem>>
233 void SetLanguageCodes(LanguageCodesT&& value) { m_languageCodesHasBeenSet = true; m_languageCodes = std::forward<LanguageCodesT>(value); }
234 template<typename LanguageCodesT = Aws::Vector<LanguageCodeItem>>
235 TranscriptionJobSummary& WithLanguageCodes(LanguageCodesT&& value) { SetLanguageCodes(std::forward<LanguageCodesT>(value)); return *this;}
236 template<typename LanguageCodesT = LanguageCodeItem>
237 TranscriptionJobSummary& AddLanguageCodes(LanguageCodesT&& value) { m_languageCodesHasBeenSet = true; m_languageCodes.emplace_back(std::forward<LanguageCodesT>(value)); return *this; }
239
241
245 inline const Aws::Vector<ToxicityDetectionSettings>& GetToxicityDetection() const { return m_toxicityDetection; }
246 inline bool ToxicityDetectionHasBeenSet() const { return m_toxicityDetectionHasBeenSet; }
247 template<typename ToxicityDetectionT = Aws::Vector<ToxicityDetectionSettings>>
248 void SetToxicityDetection(ToxicityDetectionT&& value) { m_toxicityDetectionHasBeenSet = true; m_toxicityDetection = std::forward<ToxicityDetectionT>(value); }
249 template<typename ToxicityDetectionT = Aws::Vector<ToxicityDetectionSettings>>
250 TranscriptionJobSummary& WithToxicityDetection(ToxicityDetectionT&& value) { SetToxicityDetection(std::forward<ToxicityDetectionT>(value)); return *this;}
251 template<typename ToxicityDetectionT = ToxicityDetectionSettings>
252 TranscriptionJobSummary& AddToxicityDetection(ToxicityDetectionT&& value) { m_toxicityDetectionHasBeenSet = true; m_toxicityDetection.emplace_back(std::forward<ToxicityDetectionT>(value)); return *this; }
254 private:
255
256 Aws::String m_transcriptionJobName;
257 bool m_transcriptionJobNameHasBeenSet = false;
258
259 Aws::Utils::DateTime m_creationTime{};
260 bool m_creationTimeHasBeenSet = false;
261
262 Aws::Utils::DateTime m_startTime{};
263 bool m_startTimeHasBeenSet = false;
264
265 Aws::Utils::DateTime m_completionTime{};
266 bool m_completionTimeHasBeenSet = false;
267
268 LanguageCode m_languageCode{LanguageCode::NOT_SET};
269 bool m_languageCodeHasBeenSet = false;
270
272 bool m_transcriptionJobStatusHasBeenSet = false;
273
274 Aws::String m_failureReason;
275 bool m_failureReasonHasBeenSet = false;
276
278 bool m_outputLocationTypeHasBeenSet = false;
279
280 ContentRedaction m_contentRedaction;
281 bool m_contentRedactionHasBeenSet = false;
282
283 ModelSettings m_modelSettings;
284 bool m_modelSettingsHasBeenSet = false;
285
286 bool m_identifyLanguage{false};
287 bool m_identifyLanguageHasBeenSet = false;
288
289 bool m_identifyMultipleLanguages{false};
290 bool m_identifyMultipleLanguagesHasBeenSet = false;
291
292 double m_identifiedLanguageScore{0.0};
293 bool m_identifiedLanguageScoreHasBeenSet = false;
294
295 Aws::Vector<LanguageCodeItem> m_languageCodes;
296 bool m_languageCodesHasBeenSet = false;
297
298 Aws::Vector<ToxicityDetectionSettings> m_toxicityDetection;
299 bool m_toxicityDetectionHasBeenSet = false;
300 };
301
302} // namespace Model
303} // namespace TranscribeService
304} // 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