7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
10#include <aws/transcribestreaming/model/Alternative.h>
11#include <aws/transcribestreaming/model/LanguageCode.h>
12#include <aws/transcribestreaming/model/LanguageWithScore.h>
23namespace TranscribeStreamingService {
38 AWS_TRANSCRIBESTREAMINGSERVICE_API
Result() =
default;
49 template <
typename ResultIdT = Aws::String>
51 m_resultIdHasBeenSet =
true;
52 m_resultId = std::forward<ResultIdT>(value);
54 template <
typename ResultIdT = Aws::String>
69 m_startTimeHasBeenSet =
true;
86 m_endTimeHasBeenSet =
true;
104 m_isPartialHasBeenSet =
true;
121 template <
typename AlternativesT = Aws::Vector<Alternative>>
123 m_alternativesHasBeenSet =
true;
124 m_alternatives = std::forward<AlternativesT>(value);
126 template <
typename AlternativesT = Aws::Vector<Alternative>>
131 template <
typename AlternativesT = Alternative>
133 m_alternativesHasBeenSet =
true;
134 m_alternatives.emplace_back(std::forward<AlternativesT>(value));
145 template <
typename ChannelIdT = Aws::String>
147 m_channelIdHasBeenSet =
true;
148 m_channelId = std::forward<ChannelIdT>(value);
150 template <
typename ChannelIdT = Aws::String>
165 m_languageCodeHasBeenSet =
true;
166 m_languageCode = value;
182 template <
typename LanguageIdentificationT = Aws::Vector<LanguageWithScore>>
184 m_languageIdentificationHasBeenSet =
true;
185 m_languageIdentification = std::forward<LanguageIdentificationT>(value);
187 template <
typename LanguageIdentificationT = Aws::Vector<LanguageWithScore>>
192 template <
typename LanguageIdentificationT = LanguageWithScore>
194 m_languageIdentificationHasBeenSet =
true;
195 m_languageIdentification.emplace_back(std::forward<LanguageIdentificationT>(value));
202 double m_startTime{0.0};
204 double m_endTime{0.0};
206 bool m_isPartial{
false};
215 bool m_resultIdHasBeenSet =
false;
216 bool m_startTimeHasBeenSet =
false;
217 bool m_endTimeHasBeenSet =
false;
218 bool m_isPartialHasBeenSet =
false;
219 bool m_alternativesHasBeenSet =
false;
220 bool m_channelIdHasBeenSet =
false;
221 bool m_languageCodeHasBeenSet =
false;
222 bool m_languageIdentificationHasBeenSet =
false;
const Aws::String & GetResultId() const
bool GetIsPartial() const
bool LanguageCodeHasBeenSet() const
bool ChannelIdHasBeenSet() const
AWS_TRANSCRIBESTREAMINGSERVICE_API Result(Aws::Utils::Json::JsonView jsonValue)
Result & WithLanguageCode(LanguageCode value)
Result & WithIsPartial(bool value)
void SetAlternatives(AlternativesT &&value)
Result & AddAlternatives(AlternativesT &&value)
Result & WithStartTime(double value)
void SetLanguageCode(LanguageCode value)
Result & WithAlternatives(AlternativesT &&value)
Result & WithResultId(ResultIdT &&value)
Result & WithChannelId(ChannelIdT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Result()=default
bool IsPartialHasBeenSet() const
AWS_TRANSCRIBESTREAMINGSERVICE_API Result & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StartTimeHasBeenSet() const
Result & WithEndTime(double value)
bool ResultIdHasBeenSet() const
void SetEndTime(double value)
bool LanguageIdentificationHasBeenSet() const
double GetEndTime() const
void SetStartTime(double value)
void SetChannelId(ChannelIdT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool AlternativesHasBeenSet() const
void SetResultId(ResultIdT &&value)
double GetStartTime() const
Result & AddLanguageIdentification(LanguageIdentificationT &&value)
void SetIsPartial(bool value)
Result & WithLanguageIdentification(LanguageIdentificationT &&value)
LanguageCode GetLanguageCode() const
const Aws::Vector< Alternative > & GetAlternatives() const
void SetLanguageIdentification(LanguageIdentificationT &&value)
const Aws::String & GetChannelId() const
const Aws::Vector< LanguageWithScore > & GetLanguageIdentification() const
bool EndTimeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue