AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Item.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
9#include <aws/transcribestreaming/model/ItemType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TranscribeStreamingService {
21namespace Model {
22
30class Item {
31 public:
32 AWS_TRANSCRIBESTREAMINGSERVICE_API Item() = default;
33 AWS_TRANSCRIBESTREAMINGSERVICE_API Item(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TRANSCRIBESTREAMINGSERVICE_API Item& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline double GetStartTime() const { return m_startTime; }
43 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
44 inline void SetStartTime(double value) {
45 m_startTimeHasBeenSet = true;
46 m_startTime = value;
47 }
48 inline Item& WithStartTime(double value) {
49 SetStartTime(value);
50 return *this;
51 }
53
55
59 inline double GetEndTime() const { return m_endTime; }
60 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 inline void SetEndTime(double value) {
62 m_endTimeHasBeenSet = true;
63 m_endTime = value;
64 }
65 inline Item& WithEndTime(double value) {
66 SetEndTime(value);
67 return *this;
68 }
70
72
76 inline ItemType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(ItemType value) {
79 m_typeHasBeenSet = true;
80 m_type = value;
81 }
82 inline Item& WithType(ItemType value) {
83 SetType(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetContent() const { return m_content; }
93 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
94 template <typename ContentT = Aws::String>
95 void SetContent(ContentT&& value) {
96 m_contentHasBeenSet = true;
97 m_content = std::forward<ContentT>(value);
98 }
99 template <typename ContentT = Aws::String>
100 Item& WithContent(ContentT&& value) {
101 SetContent(std::forward<ContentT>(value));
102 return *this;
103 }
105
107
112 inline bool GetVocabularyFilterMatch() const { return m_vocabularyFilterMatch; }
113 inline bool VocabularyFilterMatchHasBeenSet() const { return m_vocabularyFilterMatchHasBeenSet; }
114 inline void SetVocabularyFilterMatch(bool value) {
115 m_vocabularyFilterMatchHasBeenSet = true;
116 m_vocabularyFilterMatch = value;
117 }
118 inline Item& WithVocabularyFilterMatch(bool value) {
120 return *this;
121 }
123
125
129 inline const Aws::String& GetSpeaker() const { return m_speaker; }
130 inline bool SpeakerHasBeenSet() const { return m_speakerHasBeenSet; }
131 template <typename SpeakerT = Aws::String>
132 void SetSpeaker(SpeakerT&& value) {
133 m_speakerHasBeenSet = true;
134 m_speaker = std::forward<SpeakerT>(value);
135 }
136 template <typename SpeakerT = Aws::String>
137 Item& WithSpeaker(SpeakerT&& value) {
138 SetSpeaker(std::forward<SpeakerT>(value));
139 return *this;
140 }
142
144
150 inline double GetConfidence() const { return m_confidence; }
151 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
152 inline void SetConfidence(double value) {
153 m_confidenceHasBeenSet = true;
154 m_confidence = value;
155 }
156 inline Item& WithConfidence(double value) {
157 SetConfidence(value);
158 return *this;
159 }
161
163
168 inline bool GetStable() const { return m_stable; }
169 inline bool StableHasBeenSet() const { return m_stableHasBeenSet; }
170 inline void SetStable(bool value) {
171 m_stableHasBeenSet = true;
172 m_stable = value;
173 }
174 inline Item& WithStable(bool value) {
175 SetStable(value);
176 return *this;
177 }
179 private:
180 double m_startTime{0.0};
181
182 double m_endTime{0.0};
183
185
186 Aws::String m_content;
187
188 bool m_vocabularyFilterMatch{false};
189
190 Aws::String m_speaker;
191
192 double m_confidence{0.0};
193
194 bool m_stable{false};
195 bool m_startTimeHasBeenSet = false;
196 bool m_endTimeHasBeenSet = false;
197 bool m_typeHasBeenSet = false;
198 bool m_contentHasBeenSet = false;
199 bool m_vocabularyFilterMatchHasBeenSet = false;
200 bool m_speakerHasBeenSet = false;
201 bool m_confidenceHasBeenSet = false;
202 bool m_stableHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace TranscribeStreamingService
207} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API Item & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSpeaker(SpeakerT &&value)
Definition Item.h:132
const Aws::String & GetSpeaker() const
Definition Item.h:129
AWS_TRANSCRIBESTREAMINGSERVICE_API Item()=default
Item & WithSpeaker(SpeakerT &&value)
Definition Item.h:137
void SetContent(ContentT &&value)
Definition Item.h:95
AWS_TRANSCRIBESTREAMINGSERVICE_API Item(Aws::Utils::Json::JsonView jsonValue)
Item & WithVocabularyFilterMatch(bool value)
Definition Item.h:118
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Item & WithType(ItemType value)
Definition Item.h:82
Item & WithContent(ContentT &&value)
Definition Item.h:100
const Aws::String & GetContent() const
Definition Item.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue