AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Result.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace TranscribeStreamingService
26{
27namespace Model
28{
29
40 class Result
41 {
42 public:
43 AWS_TRANSCRIBESTREAMINGSERVICE_API Result() = default;
44 AWS_TRANSCRIBESTREAMINGSERVICE_API Result(Aws::Utils::Json::JsonView jsonValue);
45 AWS_TRANSCRIBESTREAMINGSERVICE_API Result& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetResultId() const { return m_resultId; }
54 inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
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>
58 Result& WithResultId(ResultIdT&& value) { SetResultId(std::forward<ResultIdT>(value)); return *this;}
60
62
66 inline double GetStartTime() const { return m_startTime; }
67 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
68 inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; }
69 inline Result& WithStartTime(double value) { SetStartTime(value); return *this;}
71
73
77 inline double GetEndTime() const { return m_endTime; }
78 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
79 inline void SetEndTime(double value) { m_endTimeHasBeenSet = true; m_endTime = value; }
80 inline Result& WithEndTime(double value) { SetEndTime(value); return *this;}
82
84
89 inline bool GetIsPartial() const { return m_isPartial; }
90 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
91 inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; }
92 inline Result& WithIsPartial(bool value) { SetIsPartial(value); return *this;}
94
96
101 inline const Aws::Vector<Alternative>& GetAlternatives() const { return m_alternatives; }
102 inline bool AlternativesHasBeenSet() const { return m_alternativesHasBeenSet; }
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>>
106 Result& WithAlternatives(AlternativesT&& value) { SetAlternatives(std::forward<AlternativesT>(value)); return *this;}
107 template<typename AlternativesT = Alternative>
108 Result& AddAlternatives(AlternativesT&& value) { m_alternativesHasBeenSet = true; m_alternatives.emplace_back(std::forward<AlternativesT>(value)); return *this; }
110
112
115 inline const Aws::String& GetChannelId() const { return m_channelId; }
116 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
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>
120 Result& WithChannelId(ChannelIdT&& value) { SetChannelId(std::forward<ChannelIdT>(value)); return *this;}
122
124
128 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
129 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
130 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
131 inline Result& WithLanguageCode(LanguageCode value) { SetLanguageCode(value); return *this;}
133
135
140 inline const Aws::Vector<LanguageWithScore>& GetLanguageIdentification() const { return m_languageIdentification; }
141 inline bool LanguageIdentificationHasBeenSet() const { return m_languageIdentificationHasBeenSet; }
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>>
145 Result& WithLanguageIdentification(LanguageIdentificationT&& value) { SetLanguageIdentification(std::forward<LanguageIdentificationT>(value)); return *this;}
146 template<typename LanguageIdentificationT = LanguageWithScore>
147 Result& AddLanguageIdentification(LanguageIdentificationT&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.emplace_back(std::forward<LanguageIdentificationT>(value)); return *this; }
149 private:
150
151 Aws::String m_resultId;
152 bool m_resultIdHasBeenSet = false;
153
154 double m_startTime{0.0};
155 bool m_startTimeHasBeenSet = false;
156
157 double m_endTime{0.0};
158 bool m_endTimeHasBeenSet = false;
159
160 bool m_isPartial{false};
161 bool m_isPartialHasBeenSet = false;
162
163 Aws::Vector<Alternative> m_alternatives;
164 bool m_alternativesHasBeenSet = false;
165
166 Aws::String m_channelId;
167 bool m_channelIdHasBeenSet = false;
168
169 LanguageCode m_languageCode{LanguageCode::NOT_SET};
170 bool m_languageCodeHasBeenSet = false;
171
172 Aws::Vector<LanguageWithScore> m_languageIdentification;
173 bool m_languageIdentificationHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace TranscribeStreamingService
178} // namespace Aws
const Aws::String & GetResultId() const
Definition Result.h:53
AWS_TRANSCRIBESTREAMINGSERVICE_API Result(Aws::Utils::Json::JsonView jsonValue)
Result & WithLanguageCode(LanguageCode value)
Definition Result.h:131
void SetAlternatives(AlternativesT &&value)
Definition Result.h:104
Result & AddAlternatives(AlternativesT &&value)
Definition Result.h:108
void SetLanguageCode(LanguageCode value)
Definition Result.h:130
Result & WithAlternatives(AlternativesT &&value)
Definition Result.h:106
Result & WithResultId(ResultIdT &&value)
Definition Result.h:58
Result & WithChannelId(ChannelIdT &&value)
Definition Result.h:120
AWS_TRANSCRIBESTREAMINGSERVICE_API Result()=default
AWS_TRANSCRIBESTREAMINGSERVICE_API Result & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChannelId(ChannelIdT &&value)
Definition Result.h:118
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Result & AddLanguageIdentification(LanguageIdentificationT &&value)
Definition Result.h:147
Result & WithLanguageIdentification(LanguageIdentificationT &&value)
Definition Result.h:145
const Aws::Vector< Alternative > & GetAlternatives() const
Definition Result.h:101
void SetLanguageIdentification(LanguageIdentificationT &&value)
Definition Result.h:143
const Aws::String & GetChannelId() const
Definition Result.h:115
const Aws::Vector< LanguageWithScore > & GetLanguageIdentification() const
Definition Result.h:140
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue