AWS SDK for C++  1.9.154
AWS SDK for C++
Result.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace TranscribeStreamingService
26 {
27 namespace Model
28 {
29 
37  {
38  public:
39  Result();
43 
44 
48  inline const Aws::String& GetResultId() const{ return m_resultId; }
49 
53  inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
54 
58  inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; }
59 
63  inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); }
64 
68  inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); }
69 
73  inline Result& WithResultId(const Aws::String& value) { SetResultId(value); return *this;}
74 
78  inline Result& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;}
79 
83  inline Result& WithResultId(const char* value) { SetResultId(value); return *this;}
84 
85 
90  inline double GetStartTime() const{ return m_startTime; }
91 
96  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
97 
102  inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; }
103 
108  inline Result& WithStartTime(double value) { SetStartTime(value); return *this;}
109 
110 
115  inline double GetEndTime() const{ return m_endTime; }
116 
121  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
122 
127  inline void SetEndTime(double value) { m_endTimeHasBeenSet = true; m_endTime = value; }
128 
133  inline Result& WithEndTime(double value) { SetEndTime(value); return *this;}
134 
135 
143  inline bool GetIsPartial() const{ return m_isPartial; }
144 
152  inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
153 
161  inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; }
162 
170  inline Result& WithIsPartial(bool value) { SetIsPartial(value); return *this;}
171 
172 
178  inline const Aws::Vector<Alternative>& GetAlternatives() const{ return m_alternatives; }
179 
185  inline bool AlternativesHasBeenSet() const { return m_alternativesHasBeenSet; }
186 
192  inline void SetAlternatives(const Aws::Vector<Alternative>& value) { m_alternativesHasBeenSet = true; m_alternatives = value; }
193 
199  inline void SetAlternatives(Aws::Vector<Alternative>&& value) { m_alternativesHasBeenSet = true; m_alternatives = std::move(value); }
200 
206  inline Result& WithAlternatives(const Aws::Vector<Alternative>& value) { SetAlternatives(value); return *this;}
207 
213  inline Result& WithAlternatives(Aws::Vector<Alternative>&& value) { SetAlternatives(std::move(value)); return *this;}
214 
220  inline Result& AddAlternatives(const Alternative& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(value); return *this; }
221 
227  inline Result& AddAlternatives(Alternative&& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(std::move(value)); return *this; }
228 
229 
236  inline const Aws::String& GetChannelId() const{ return m_channelId; }
237 
244  inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
245 
252  inline void SetChannelId(const Aws::String& value) { m_channelIdHasBeenSet = true; m_channelId = value; }
253 
260  inline void SetChannelId(Aws::String&& value) { m_channelIdHasBeenSet = true; m_channelId = std::move(value); }
261 
268  inline void SetChannelId(const char* value) { m_channelIdHasBeenSet = true; m_channelId.assign(value); }
269 
276  inline Result& WithChannelId(const Aws::String& value) { SetChannelId(value); return *this;}
277 
284  inline Result& WithChannelId(Aws::String&& value) { SetChannelId(std::move(value)); return *this;}
285 
292  inline Result& WithChannelId(const char* value) { SetChannelId(value); return *this;}
293 
294 
298  inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
299 
303  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
304 
308  inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
309 
313  inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
314 
318  inline Result& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
319 
323  inline Result& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
324 
325 
329  inline const Aws::Vector<LanguageWithScore>& GetLanguageIdentification() const{ return m_languageIdentification; }
330 
334  inline bool LanguageIdentificationHasBeenSet() const { return m_languageIdentificationHasBeenSet; }
335 
339  inline void SetLanguageIdentification(const Aws::Vector<LanguageWithScore>& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification = value; }
340 
344  inline void SetLanguageIdentification(Aws::Vector<LanguageWithScore>&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification = std::move(value); }
345 
349  inline Result& WithLanguageIdentification(const Aws::Vector<LanguageWithScore>& value) { SetLanguageIdentification(value); return *this;}
350 
354  inline Result& WithLanguageIdentification(Aws::Vector<LanguageWithScore>&& value) { SetLanguageIdentification(std::move(value)); return *this;}
355 
359  inline Result& AddLanguageIdentification(const LanguageWithScore& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.push_back(value); return *this; }
360 
364  inline Result& AddLanguageIdentification(LanguageWithScore&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.push_back(std::move(value)); return *this; }
365 
366  private:
367 
368  Aws::String m_resultId;
369  bool m_resultIdHasBeenSet;
370 
371  double m_startTime;
372  bool m_startTimeHasBeenSet;
373 
374  double m_endTime;
375  bool m_endTimeHasBeenSet;
376 
377  bool m_isPartial;
378  bool m_isPartialHasBeenSet;
379 
380  Aws::Vector<Alternative> m_alternatives;
381  bool m_alternativesHasBeenSet;
382 
383  Aws::String m_channelId;
384  bool m_channelIdHasBeenSet;
385 
386  LanguageCode m_languageCode;
387  bool m_languageCodeHasBeenSet;
388 
389  Aws::Vector<LanguageWithScore> m_languageIdentification;
390  bool m_languageIdentificationHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace TranscribeStreamingService
395 } // namespace Aws
Aws::TranscribeStreamingService::Model::LanguageCode
LanguageCode
Definition: LanguageCode.h:17
Aws::TranscribeStreamingService::Model::Result::Result
Result()
Aws::TranscribeStreamingService::Model::Alternative
Definition: Alternative.h:36
AWS_TRANSCRIBESTREAMINGSERVICE_API
#define AWS_TRANSCRIBESTREAMINGSERVICE_API
Definition: TranscribeStreamingService_EXPORTS.h:28
Aws::TranscribeStreamingService::Model::Result::AddLanguageIdentification
Result & AddLanguageIdentification(const LanguageWithScore &value)
Definition: Result.h:359
Aws::TranscribeStreamingService::Model::Result::SetChannelId
void SetChannelId(const Aws::String &value)
Definition: Result.h:252
Aws::TranscribeStreamingService::Model::Result::GetIsPartial
bool GetIsPartial() const
Definition: Result.h:143
Aws::TranscribeStreamingService::Model::Result::WithResultId
Result & WithResultId(Aws::String &&value)
Definition: Result.h:78
Aws::TranscribeStreamingService::Model::Result::Result
Result(Aws::Utils::Json::JsonView jsonValue)
Aws::TranscribeStreamingService::Model::Result::WithIsPartial
Result & WithIsPartial(bool value)
Definition: Result.h:170
Aws::TranscribeStreamingService::Model::Result::SetChannelId
void SetChannelId(Aws::String &&value)
Definition: Result.h:260
Aws::TranscribeStreamingService::Model::Result::SetLanguageIdentification
void SetLanguageIdentification(const Aws::Vector< LanguageWithScore > &value)
Definition: Result.h:339
Aws::TranscribeStreamingService::Model::Result::WithChannelId
Result & WithChannelId(const Aws::String &value)
Definition: Result.h:276
Aws::TranscribeStreamingService::Model::Result::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: Result.h:121
Aws::TranscribeStreamingService::Model::Result::WithLanguageCode
Result & WithLanguageCode(LanguageCode &&value)
Definition: Result.h:323
Aws::TranscribeStreamingService::Model::Result::SetIsPartial
void SetIsPartial(bool value)
Definition: Result.h:161
Aws::TranscribeStreamingService::Model::Result::SetAlternatives
void SetAlternatives(Aws::Vector< Alternative > &&value)
Definition: Result.h:199
Aws::TranscribeStreamingService::Model::Result::SetStartTime
void SetStartTime(double value)
Definition: Result.h:102
Aws::TranscribeStreamingService::Model::Result::WithResultId
Result & WithResultId(const Aws::String &value)
Definition: Result.h:73
Aws::TranscribeStreamingService::Model::Result::GetStartTime
double GetStartTime() const
Definition: Result.h:90
Aws::TranscribeStreamingService::Model::Result::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: Result.h:96
Aws::TranscribeStreamingService::Model::Result::SetLanguageCode
void SetLanguageCode(const LanguageCode &value)
Definition: Result.h:308
LanguageWithScore.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::TranscribeStreamingService::Model::Result::SetResultId
void SetResultId(const Aws::String &value)
Definition: Result.h:58
Aws::TranscribeStreamingService::Model::Result::AddAlternatives
Result & AddAlternatives(Alternative &&value)
Definition: Result.h:227
Aws::TranscribeStreamingService::Model::Result::AddLanguageIdentification
Result & AddLanguageIdentification(LanguageWithScore &&value)
Definition: Result.h:364
AWSVector.h
Aws::TranscribeStreamingService::Model::Result
Definition: Result.h:37
Aws::TranscribeStreamingService::Model::Result::IsPartialHasBeenSet
bool IsPartialHasBeenSet() const
Definition: Result.h:152
Aws::TranscribeStreamingService::Model::Result::GetAlternatives
const Aws::Vector< Alternative > & GetAlternatives() const
Definition: Result.h:178
Aws::TranscribeStreamingService::Model::Result::GetChannelId
const Aws::String & GetChannelId() const
Definition: Result.h:236
Aws::TranscribeStreamingService::Model::Result::SetAlternatives
void SetAlternatives(const Aws::Vector< Alternative > &value)
Definition: Result.h:192
Aws::TranscribeStreamingService::Model::Result::WithStartTime
Result & WithStartTime(double value)
Definition: Result.h:108
Aws::TranscribeStreamingService::Model::Result::GetLanguageCode
const LanguageCode & GetLanguageCode() const
Definition: Result.h:298
Aws::TranscribeStreamingService::Model::Result::SetLanguageIdentification
void SetLanguageIdentification(Aws::Vector< LanguageWithScore > &&value)
Definition: Result.h:344
Aws::TranscribeStreamingService::Model::Result::WithResultId
Result & WithResultId(const char *value)
Definition: Result.h:83
Aws::TranscribeStreamingService::Model::Result::WithAlternatives
Result & WithAlternatives(const Aws::Vector< Alternative > &value)
Definition: Result.h:206
Alternative.h
Aws::TranscribeStreamingService::Model::Result::WithAlternatives
Result & WithAlternatives(Aws::Vector< Alternative > &&value)
Definition: Result.h:213
LanguageCode.h
Aws::TranscribeStreamingService::Model::Result::SetEndTime
void SetEndTime(double value)
Definition: Result.h:127
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::TranscribeStreamingService::Model::Result::SetResultId
void SetResultId(const char *value)
Definition: Result.h:68
Aws::TranscribeStreamingService::Model::Result::WithEndTime
Result & WithEndTime(double value)
Definition: Result.h:133
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
TranscribeStreamingService_EXPORTS.h
Aws::TranscribeStreamingService::Model::LanguageWithScore
Definition: LanguageWithScore.h:35
Aws::TranscribeStreamingService::Model::Result::WithLanguageIdentification
Result & WithLanguageIdentification(const Aws::Vector< LanguageWithScore > &value)
Definition: Result.h:349
Aws::TranscribeStreamingService::Model::Result::SetLanguageCode
void SetLanguageCode(LanguageCode &&value)
Definition: Result.h:313
Aws::TranscribeStreamingService::Model::Result::ChannelIdHasBeenSet
bool ChannelIdHasBeenSet() const
Definition: Result.h:244
Aws::TranscribeStreamingService::Model::Result::SetChannelId
void SetChannelId(const char *value)
Definition: Result.h:268
Aws::TranscribeStreamingService::Model::Result::LanguageCodeHasBeenSet
bool LanguageCodeHasBeenSet() const
Definition: Result.h:303
Aws::TranscribeStreamingService::Model::Result::GetLanguageIdentification
const Aws::Vector< LanguageWithScore > & GetLanguageIdentification() const
Definition: Result.h:329
Aws::TranscribeStreamingService::Model::Result::WithChannelId
Result & WithChannelId(const char *value)
Definition: Result.h:292
Aws::TranscribeStreamingService::Model::Result::GetEndTime
double GetEndTime() const
Definition: Result.h:115
Aws::TranscribeStreamingService::Model::Result::operator=
Result & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::TranscribeStreamingService::Model::Result::WithLanguageIdentification
Result & WithLanguageIdentification(Aws::Vector< LanguageWithScore > &&value)
Definition: Result.h:354
Aws::TranscribeStreamingService::Model::Result::LanguageIdentificationHasBeenSet
bool LanguageIdentificationHasBeenSet() const
Definition: Result.h:334
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::TranscribeStreamingService::Model::Result::WithChannelId
Result & WithChannelId(Aws::String &&value)
Definition: Result.h:284
Aws::TranscribeStreamingService::Model::Result::AddAlternatives
Result & AddAlternatives(const Alternative &value)
Definition: Result.h:220
Aws::TranscribeStreamingService::Model::Result::WithLanguageCode
Result & WithLanguageCode(const LanguageCode &value)
Definition: Result.h:318
Aws::TranscribeStreamingService::Model::Result::AlternativesHasBeenSet
bool AlternativesHasBeenSet() const
Definition: Result.h:185
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TranscribeStreamingService::Model::Result::SetResultId
void SetResultId(Aws::String &&value)
Definition: Result.h:63
Aws::TranscribeStreamingService::Model::Result::ResultIdHasBeenSet
bool ResultIdHasBeenSet() const
Definition: Result.h:53
Aws::TranscribeStreamingService::Model::Result::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::TranscribeStreamingService::Model::Result::GetResultId
const Aws::String & GetResultId() const
Definition: Result.h:48