AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace TranscribeStreamingService {
20namespace Model {
21
30class Entity {
31 public:
32 AWS_TRANSCRIBESTREAMINGSERVICE_API Entity() = default;
33 AWS_TRANSCRIBESTREAMINGSERVICE_API Entity(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TRANSCRIBESTREAMINGSERVICE_API Entity& 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 Entity& 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 Entity& WithEndTime(double value) {
66 SetEndTime(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetCategory() const { return m_category; }
77 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
78 template <typename CategoryT = Aws::String>
79 void SetCategory(CategoryT&& value) {
80 m_categoryHasBeenSet = true;
81 m_category = std::forward<CategoryT>(value);
82 }
83 template <typename CategoryT = Aws::String>
84 Entity& WithCategory(CategoryT&& value) {
85 SetCategory(std::forward<CategoryT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 template <typename TypeT = Aws::String>
98 void SetType(TypeT&& value) {
99 m_typeHasBeenSet = true;
100 m_type = std::forward<TypeT>(value);
101 }
102 template <typename TypeT = Aws::String>
103 Entity& WithType(TypeT&& value) {
104 SetType(std::forward<TypeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetContent() const { return m_content; }
114 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
115 template <typename ContentT = Aws::String>
116 void SetContent(ContentT&& value) {
117 m_contentHasBeenSet = true;
118 m_content = std::forward<ContentT>(value);
119 }
120 template <typename ContentT = Aws::String>
121 Entity& WithContent(ContentT&& value) {
122 SetContent(std::forward<ContentT>(value));
123 return *this;
124 }
126
128
134 inline double GetConfidence() const { return m_confidence; }
135 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
136 inline void SetConfidence(double value) {
137 m_confidenceHasBeenSet = true;
138 m_confidence = value;
139 }
140 inline Entity& WithConfidence(double value) {
141 SetConfidence(value);
142 return *this;
143 }
145 private:
146 double m_startTime{0.0};
147
148 double m_endTime{0.0};
149
150 Aws::String m_category;
151
152 Aws::String m_type;
153
154 Aws::String m_content;
155
156 double m_confidence{0.0};
157 bool m_startTimeHasBeenSet = false;
158 bool m_endTimeHasBeenSet = false;
159 bool m_categoryHasBeenSet = false;
160 bool m_typeHasBeenSet = false;
161 bool m_contentHasBeenSet = false;
162 bool m_confidenceHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace TranscribeStreamingService
167} // namespace Aws
const Aws::String & GetContent() const
Definition Entity.h:113
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Entity & WithCategory(CategoryT &&value)
Definition Entity.h:84
AWS_TRANSCRIBESTREAMINGSERVICE_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition Entity.h:95
Entity & WithContent(ContentT &&value)
Definition Entity.h:121
AWS_TRANSCRIBESTREAMINGSERVICE_API Entity(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Entity()=default
const Aws::String & GetCategory() const
Definition Entity.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue