7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/transcribestreaming/model/LanguageCode.h>
11#include <aws/transcribestreaming/model/Alternative.h>
12#include <aws/transcribestreaming/model/LanguageWithScore.h>
25namespace TranscribeStreamingService
43 AWS_TRANSCRIBESTREAMINGSERVICE_API
Result() =
default;
55 template<
typename ResultIdT = Aws::String>
56 void SetResultId(ResultIdT&& value) { m_resultIdHasBeenSet =
true; m_resultId = std::forward<ResultIdT>(value); }
57 template<
typename ResultIdT = Aws::String>
68 inline void SetStartTime(
double value) { m_startTimeHasBeenSet =
true; m_startTime = value; }
79 inline void SetEndTime(
double value) { m_endTimeHasBeenSet =
true; m_endTime = value; }
91 inline void SetIsPartial(
bool value) { m_isPartialHasBeenSet =
true; m_isPartial = value; }
103 template<
typename AlternativesT = Aws::Vector<Alternative>>
104 void SetAlternatives(AlternativesT&& value) { m_alternativesHasBeenSet =
true; m_alternatives = std::forward<AlternativesT>(value); }
105 template<
typename AlternativesT = Aws::Vector<Alternative>>
107 template<
typename AlternativesT = Alternative>
108 Result&
AddAlternatives(AlternativesT&& value) { m_alternativesHasBeenSet =
true; m_alternatives.emplace_back(std::forward<AlternativesT>(value));
return *
this; }
117 template<
typename ChannelIdT = Aws::String>
118 void SetChannelId(ChannelIdT&& value) { m_channelIdHasBeenSet =
true; m_channelId = std::forward<ChannelIdT>(value); }
119 template<
typename ChannelIdT = Aws::String>
142 template<
typename LanguageIdentificationT = Aws::Vector<LanguageWithScore>>
143 void SetLanguageIdentification(LanguageIdentificationT&& value) { m_languageIdentificationHasBeenSet =
true; m_languageIdentification = std::forward<LanguageIdentificationT>(value); }
144 template<
typename LanguageIdentificationT = Aws::Vector<LanguageWithScore>>
146 template<
typename LanguageIdentificationT = LanguageWithScore>
147 Result&
AddLanguageIdentification(LanguageIdentificationT&& value) { m_languageIdentificationHasBeenSet =
true; m_languageIdentification.emplace_back(std::forward<LanguageIdentificationT>(value));
return *
this; }
152 bool m_resultIdHasBeenSet =
false;
154 double m_startTime{0.0};
155 bool m_startTimeHasBeenSet =
false;
157 double m_endTime{0.0};
158 bool m_endTimeHasBeenSet =
false;
160 bool m_isPartial{
false};
161 bool m_isPartialHasBeenSet =
false;
164 bool m_alternativesHasBeenSet =
false;
167 bool m_channelIdHasBeenSet =
false;
170 bool m_languageCodeHasBeenSet =
false;
173 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