AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Result.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace TranscribeStreamingService {
24namespace Model {
25
36class Result {
37 public:
38 AWS_TRANSCRIBESTREAMINGSERVICE_API Result() = default;
39 AWS_TRANSCRIBESTREAMINGSERVICE_API Result(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSCRIBESTREAMINGSERVICE_API Result& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetResultId() const { return m_resultId; }
48 inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
49 template <typename ResultIdT = Aws::String>
50 void SetResultId(ResultIdT&& value) {
51 m_resultIdHasBeenSet = true;
52 m_resultId = std::forward<ResultIdT>(value);
53 }
54 template <typename ResultIdT = Aws::String>
55 Result& WithResultId(ResultIdT&& value) {
56 SetResultId(std::forward<ResultIdT>(value));
57 return *this;
58 }
60
62
66 inline double GetStartTime() const { return m_startTime; }
67 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
68 inline void SetStartTime(double value) {
69 m_startTimeHasBeenSet = true;
70 m_startTime = value;
71 }
72 inline Result& WithStartTime(double value) {
73 SetStartTime(value);
74 return *this;
75 }
77
79
83 inline double GetEndTime() const { return m_endTime; }
84 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
85 inline void SetEndTime(double value) {
86 m_endTimeHasBeenSet = true;
87 m_endTime = value;
88 }
89 inline Result& WithEndTime(double value) {
90 SetEndTime(value);
91 return *this;
92 }
94
96
101 inline bool GetIsPartial() const { return m_isPartial; }
102 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
103 inline void SetIsPartial(bool value) {
104 m_isPartialHasBeenSet = true;
105 m_isPartial = value;
106 }
107 inline Result& WithIsPartial(bool value) {
108 SetIsPartial(value);
109 return *this;
110 }
112
114
119 inline const Aws::Vector<Alternative>& GetAlternatives() const { return m_alternatives; }
120 inline bool AlternativesHasBeenSet() const { return m_alternativesHasBeenSet; }
121 template <typename AlternativesT = Aws::Vector<Alternative>>
122 void SetAlternatives(AlternativesT&& value) {
123 m_alternativesHasBeenSet = true;
124 m_alternatives = std::forward<AlternativesT>(value);
125 }
126 template <typename AlternativesT = Aws::Vector<Alternative>>
127 Result& WithAlternatives(AlternativesT&& value) {
128 SetAlternatives(std::forward<AlternativesT>(value));
129 return *this;
130 }
131 template <typename AlternativesT = Alternative>
132 Result& AddAlternatives(AlternativesT&& value) {
133 m_alternativesHasBeenSet = true;
134 m_alternatives.emplace_back(std::forward<AlternativesT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetChannelId() const { return m_channelId; }
144 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
145 template <typename ChannelIdT = Aws::String>
146 void SetChannelId(ChannelIdT&& value) {
147 m_channelIdHasBeenSet = true;
148 m_channelId = std::forward<ChannelIdT>(value);
149 }
150 template <typename ChannelIdT = Aws::String>
151 Result& WithChannelId(ChannelIdT&& value) {
152 SetChannelId(std::forward<ChannelIdT>(value));
153 return *this;
154 }
156
158
162 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
163 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
164 inline void SetLanguageCode(LanguageCode value) {
165 m_languageCodeHasBeenSet = true;
166 m_languageCode = value;
167 }
169 SetLanguageCode(value);
170 return *this;
171 }
173
175
180 inline const Aws::Vector<LanguageWithScore>& GetLanguageIdentification() const { return m_languageIdentification; }
181 inline bool LanguageIdentificationHasBeenSet() const { return m_languageIdentificationHasBeenSet; }
182 template <typename LanguageIdentificationT = Aws::Vector<LanguageWithScore>>
183 void SetLanguageIdentification(LanguageIdentificationT&& value) {
184 m_languageIdentificationHasBeenSet = true;
185 m_languageIdentification = std::forward<LanguageIdentificationT>(value);
186 }
187 template <typename LanguageIdentificationT = Aws::Vector<LanguageWithScore>>
188 Result& WithLanguageIdentification(LanguageIdentificationT&& value) {
189 SetLanguageIdentification(std::forward<LanguageIdentificationT>(value));
190 return *this;
191 }
192 template <typename LanguageIdentificationT = LanguageWithScore>
193 Result& AddLanguageIdentification(LanguageIdentificationT&& value) {
194 m_languageIdentificationHasBeenSet = true;
195 m_languageIdentification.emplace_back(std::forward<LanguageIdentificationT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_resultId;
201
202 double m_startTime{0.0};
203
204 double m_endTime{0.0};
205
206 bool m_isPartial{false};
207
208 Aws::Vector<Alternative> m_alternatives;
209
210 Aws::String m_channelId;
211
212 LanguageCode m_languageCode{LanguageCode::NOT_SET};
213
214 Aws::Vector<LanguageWithScore> m_languageIdentification;
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;
223};
224
225} // namespace Model
226} // namespace TranscribeStreamingService
227} // namespace Aws
const Aws::String & GetResultId() const
Definition Result.h:47
AWS_TRANSCRIBESTREAMINGSERVICE_API Result(Aws::Utils::Json::JsonView jsonValue)
Result & WithLanguageCode(LanguageCode value)
Definition Result.h:168
void SetAlternatives(AlternativesT &&value)
Definition Result.h:122
Result & AddAlternatives(AlternativesT &&value)
Definition Result.h:132
void SetLanguageCode(LanguageCode value)
Definition Result.h:164
Result & WithAlternatives(AlternativesT &&value)
Definition Result.h:127
Result & WithResultId(ResultIdT &&value)
Definition Result.h:55
Result & WithChannelId(ChannelIdT &&value)
Definition Result.h:151
AWS_TRANSCRIBESTREAMINGSERVICE_API Result()=default
AWS_TRANSCRIBESTREAMINGSERVICE_API Result & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChannelId(ChannelIdT &&value)
Definition Result.h:146
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Result & AddLanguageIdentification(LanguageIdentificationT &&value)
Definition Result.h:193
Result & WithLanguageIdentification(LanguageIdentificationT &&value)
Definition Result.h:188
const Aws::Vector< Alternative > & GetAlternatives() const
Definition Result.h:119
void SetLanguageIdentification(LanguageIdentificationT &&value)
Definition Result.h:183
const Aws::String & GetChannelId() const
Definition Result.h:143
const Aws::Vector< LanguageWithScore > & GetLanguageIdentification() const
Definition Result.h:180
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue