AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TranscribeStreamingService
22{
23namespace Model
24{
25
34 class Entity
35 {
36 public:
37 AWS_TRANSCRIBESTREAMINGSERVICE_API Entity() = default;
38 AWS_TRANSCRIBESTREAMINGSERVICE_API Entity(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSCRIBESTREAMINGSERVICE_API Entity& 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 Entity& 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 Entity& WithEndTime(double value) { SetEndTime(value); return *this;}
64
66
70 inline const Aws::String& GetCategory() const { return m_category; }
71 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
72 template<typename CategoryT = Aws::String>
73 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
74 template<typename CategoryT = Aws::String>
75 Entity& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
77
79
83 inline const Aws::String& GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 template<typename TypeT = Aws::String>
86 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
87 template<typename TypeT = Aws::String>
88 Entity& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
90
92
95 inline const Aws::String& GetContent() const { return m_content; }
96 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
97 template<typename ContentT = Aws::String>
98 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
99 template<typename ContentT = Aws::String>
100 Entity& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
102
104
110 inline double GetConfidence() const { return m_confidence; }
111 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
112 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
113 inline Entity& WithConfidence(double value) { SetConfidence(value); return *this;}
115 private:
116
117 double m_startTime{0.0};
118 bool m_startTimeHasBeenSet = false;
119
120 double m_endTime{0.0};
121 bool m_endTimeHasBeenSet = false;
122
123 Aws::String m_category;
124 bool m_categoryHasBeenSet = false;
125
126 Aws::String m_type;
127 bool m_typeHasBeenSet = false;
128
129 Aws::String m_content;
130 bool m_contentHasBeenSet = false;
131
132 double m_confidence{0.0};
133 bool m_confidenceHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace TranscribeStreamingService
138} // namespace Aws
const Aws::String & GetContent() const
Definition Entity.h:95
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Entity & WithCategory(CategoryT &&value)
Definition Entity.h:75
AWS_TRANSCRIBESTREAMINGSERVICE_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition Entity.h:83
Entity & WithContent(ContentT &&value)
Definition Entity.h:100
AWS_TRANSCRIBESTREAMINGSERVICE_API Entity(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Entity()=default
const Aws::String & GetCategory() const
Definition Entity.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue