AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; }
56 inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); }
57 inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); }
58 inline Result& WithResultId(const Aws::String& value) { SetResultId(value); return *this;}
59 inline Result& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;}
60 inline Result& WithResultId(const char* value) { SetResultId(value); return *this;}
62
64
67 inline double GetStartTime() const{ return m_startTime; }
68 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
69 inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; }
70 inline Result& WithStartTime(double value) { SetStartTime(value); return *this;}
72
74
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 inline void SetAlternatives(const Aws::Vector<Alternative>& value) { m_alternativesHasBeenSet = true; m_alternatives = value; }
104 inline void SetAlternatives(Aws::Vector<Alternative>&& value) { m_alternativesHasBeenSet = true; m_alternatives = std::move(value); }
105 inline Result& WithAlternatives(const Aws::Vector<Alternative>& value) { SetAlternatives(value); return *this;}
106 inline Result& WithAlternatives(Aws::Vector<Alternative>&& value) { SetAlternatives(std::move(value)); return *this;}
107 inline Result& AddAlternatives(const Alternative& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(value); return *this; }
108 inline Result& AddAlternatives(Alternative&& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(std::move(value)); return *this; }
110
112
115 inline const Aws::String& GetChannelId() const{ return m_channelId; }
116 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
117 inline void SetChannelId(const Aws::String& value) { m_channelIdHasBeenSet = true; m_channelId = value; }
118 inline void SetChannelId(Aws::String&& value) { m_channelIdHasBeenSet = true; m_channelId = std::move(value); }
119 inline void SetChannelId(const char* value) { m_channelIdHasBeenSet = true; m_channelId.assign(value); }
120 inline Result& WithChannelId(const Aws::String& value) { SetChannelId(value); return *this;}
121 inline Result& WithChannelId(Aws::String&& value) { SetChannelId(std::move(value)); return *this;}
122 inline Result& WithChannelId(const char* value) { SetChannelId(value); return *this;}
124
126
130 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
131 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
132 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
133 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
134 inline Result& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
135 inline Result& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
137
139
144 inline const Aws::Vector<LanguageWithScore>& GetLanguageIdentification() const{ return m_languageIdentification; }
145 inline bool LanguageIdentificationHasBeenSet() const { return m_languageIdentificationHasBeenSet; }
146 inline void SetLanguageIdentification(const Aws::Vector<LanguageWithScore>& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification = value; }
147 inline void SetLanguageIdentification(Aws::Vector<LanguageWithScore>&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification = std::move(value); }
150 inline Result& AddLanguageIdentification(const LanguageWithScore& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.push_back(value); return *this; }
151 inline Result& AddLanguageIdentification(LanguageWithScore&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.push_back(std::move(value)); return *this; }
153 private:
154
155 Aws::String m_resultId;
156 bool m_resultIdHasBeenSet = false;
157
158 double m_startTime;
159 bool m_startTimeHasBeenSet = false;
160
161 double m_endTime;
162 bool m_endTimeHasBeenSet = false;
163
164 bool m_isPartial;
165 bool m_isPartialHasBeenSet = false;
166
167 Aws::Vector<Alternative> m_alternatives;
168 bool m_alternativesHasBeenSet = false;
169
170 Aws::String m_channelId;
171 bool m_channelIdHasBeenSet = false;
172
173 LanguageCode m_languageCode;
174 bool m_languageCodeHasBeenSet = false;
175
176 Aws::Vector<LanguageWithScore> m_languageIdentification;
177 bool m_languageIdentificationHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace TranscribeStreamingService
182} // namespace Aws
const Aws::String & GetResultId() const
Definition Result.h:53
AWS_TRANSCRIBESTREAMINGSERVICE_API Result(Aws::Utils::Json::JsonView jsonValue)
Result & WithLanguageCode(const LanguageCode &value)
Definition Result.h:134
void SetResultId(Aws::String &&value)
Definition Result.h:56
Result & WithResultId(const Aws::String &value)
Definition Result.h:58
Result & WithLanguageIdentification(const Aws::Vector< LanguageWithScore > &value)
Definition Result.h:148
Result & WithChannelId(const Aws::String &value)
Definition Result.h:120
Result & WithAlternatives(const Aws::Vector< Alternative > &value)
Definition Result.h:105
AWS_TRANSCRIBESTREAMINGSERVICE_API Result & operator=(Aws::Utils::Json::JsonView jsonValue)
Result & WithChannelId(Aws::String &&value)
Definition Result.h:121
Result & WithAlternatives(Aws::Vector< Alternative > &&value)
Definition Result.h:106
Result & WithChannelId(const char *value)
Definition Result.h:122
void SetLanguageCode(LanguageCode &&value)
Definition Result.h:133
AWS_TRANSCRIBESTREAMINGSERVICE_API Result()
void SetLanguageIdentification(const Aws::Vector< LanguageWithScore > &value)
Definition Result.h:146
const LanguageCode & GetLanguageCode() const
Definition Result.h:130
Result & AddAlternatives(Alternative &&value)
Definition Result.h:108
Result & AddAlternatives(const Alternative &value)
Definition Result.h:107
Result & WithResultId(const char *value)
Definition Result.h:60
void SetAlternatives(const Aws::Vector< Alternative > &value)
Definition Result.h:103
Result & WithResultId(Aws::String &&value)
Definition Result.h:59
Result & AddLanguageIdentification(LanguageWithScore &&value)
Definition Result.h:151
Result & AddLanguageIdentification(const LanguageWithScore &value)
Definition Result.h:150
void SetChannelId(Aws::String &&value)
Definition Result.h:118
void SetChannelId(const Aws::String &value)
Definition Result.h:117
void SetResultId(const Aws::String &value)
Definition Result.h:55
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Result & WithLanguageIdentification(Aws::Vector< LanguageWithScore > &&value)
Definition Result.h:149
void SetLanguageCode(const LanguageCode &value)
Definition Result.h:132
Result & WithLanguageCode(LanguageCode &&value)
Definition Result.h:135
const Aws::Vector< Alternative > & GetAlternatives() const
Definition Result.h:101
void SetAlternatives(Aws::Vector< Alternative > &&value)
Definition Result.h:104
const Aws::String & GetChannelId() const
Definition Result.h:115
const Aws::Vector< LanguageWithScore > & GetLanguageIdentification() const
Definition Result.h:144
void SetLanguageIdentification(Aws::Vector< LanguageWithScore > &&value)
Definition Result.h:147
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue