AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Item.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/transcribestreaming/model/ItemType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TranscribeStreamingService
23{
24namespace Model
25{
26
34 class Item
35 {
36 public:
37 AWS_TRANSCRIBESTREAMINGSERVICE_API Item() = default;
38 AWS_TRANSCRIBESTREAMINGSERVICE_API Item(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSCRIBESTREAMINGSERVICE_API Item& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline double GetStartTime() const { return m_startTime; }
49 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
50 inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; }
51 inline Item& WithStartTime(double value) { SetStartTime(value); return *this;}
53
55
59 inline double GetEndTime() const { return m_endTime; }
60 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 inline void SetEndTime(double value) { m_endTimeHasBeenSet = true; m_endTime = value; }
62 inline Item& WithEndTime(double value) { SetEndTime(value); return *this;}
64
66
70 inline ItemType GetType() const { return m_type; }
71 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
72 inline void SetType(ItemType value) { m_typeHasBeenSet = true; m_type = value; }
73 inline Item& WithType(ItemType value) { SetType(value); return *this;}
75
77
80 inline const Aws::String& GetContent() const { return m_content; }
81 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
82 template<typename ContentT = Aws::String>
83 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
84 template<typename ContentT = Aws::String>
85 Item& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
87
89
94 inline bool GetVocabularyFilterMatch() const { return m_vocabularyFilterMatch; }
95 inline bool VocabularyFilterMatchHasBeenSet() const { return m_vocabularyFilterMatchHasBeenSet; }
96 inline void SetVocabularyFilterMatch(bool value) { m_vocabularyFilterMatchHasBeenSet = true; m_vocabularyFilterMatch = value; }
97 inline Item& WithVocabularyFilterMatch(bool value) { SetVocabularyFilterMatch(value); return *this;}
99
101
105 inline const Aws::String& GetSpeaker() const { return m_speaker; }
106 inline bool SpeakerHasBeenSet() const { return m_speakerHasBeenSet; }
107 template<typename SpeakerT = Aws::String>
108 void SetSpeaker(SpeakerT&& value) { m_speakerHasBeenSet = true; m_speaker = std::forward<SpeakerT>(value); }
109 template<typename SpeakerT = Aws::String>
110 Item& WithSpeaker(SpeakerT&& value) { SetSpeaker(std::forward<SpeakerT>(value)); return *this;}
112
114
120 inline double GetConfidence() const { return m_confidence; }
121 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
122 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
123 inline Item& WithConfidence(double value) { SetConfidence(value); return *this;}
125
127
132 inline bool GetStable() const { return m_stable; }
133 inline bool StableHasBeenSet() const { return m_stableHasBeenSet; }
134 inline void SetStable(bool value) { m_stableHasBeenSet = true; m_stable = value; }
135 inline Item& WithStable(bool value) { SetStable(value); return *this;}
137 private:
138
139 double m_startTime{0.0};
140 bool m_startTimeHasBeenSet = false;
141
142 double m_endTime{0.0};
143 bool m_endTimeHasBeenSet = false;
144
146 bool m_typeHasBeenSet = false;
147
148 Aws::String m_content;
149 bool m_contentHasBeenSet = false;
150
151 bool m_vocabularyFilterMatch{false};
152 bool m_vocabularyFilterMatchHasBeenSet = false;
153
154 Aws::String m_speaker;
155 bool m_speakerHasBeenSet = false;
156
157 double m_confidence{0.0};
158 bool m_confidenceHasBeenSet = false;
159
160 bool m_stable{false};
161 bool m_stableHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace TranscribeStreamingService
166} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API Item & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSpeaker(SpeakerT &&value)
Definition Item.h:108
const Aws::String & GetSpeaker() const
Definition Item.h:105
AWS_TRANSCRIBESTREAMINGSERVICE_API Item()=default
Item & WithSpeaker(SpeakerT &&value)
Definition Item.h:110
void SetContent(ContentT &&value)
Definition Item.h:83
AWS_TRANSCRIBESTREAMINGSERVICE_API Item(Aws::Utils::Json::JsonView jsonValue)
Item & WithVocabularyFilterMatch(bool value)
Definition Item.h:97
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Item & WithType(ItemType value)
Definition Item.h:73
Item & WithContent(ContentT &&value)
Definition Item.h:85
const Aws::String & GetContent() const
Definition Item.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue