AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
MedicalResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
10#include <aws/transcribestreaming/model/MedicalAlternative.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TranscribeStreamingService {
22namespace Model {
23
35 public:
36 AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult() = default;
37 AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetResultId() const { return m_resultId; }
46 inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
47 template <typename ResultIdT = Aws::String>
48 void SetResultId(ResultIdT&& value) {
49 m_resultIdHasBeenSet = true;
50 m_resultId = std::forward<ResultIdT>(value);
51 }
52 template <typename ResultIdT = Aws::String>
53 MedicalResult& WithResultId(ResultIdT&& value) {
54 SetResultId(std::forward<ResultIdT>(value));
55 return *this;
56 }
58
60
63 inline double GetStartTime() const { return m_startTime; }
64 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
65 inline void SetStartTime(double value) {
66 m_startTimeHasBeenSet = true;
67 m_startTime = value;
68 }
69 inline MedicalResult& WithStartTime(double value) {
70 SetStartTime(value);
71 return *this;
72 }
74
76
79 inline double GetEndTime() const { return m_endTime; }
80 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
81 inline void SetEndTime(double value) {
82 m_endTimeHasBeenSet = true;
83 m_endTime = value;
84 }
85 inline MedicalResult& WithEndTime(double value) {
86 SetEndTime(value);
87 return *this;
88 }
90
92
97 inline bool GetIsPartial() const { return m_isPartial; }
98 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
99 inline void SetIsPartial(bool value) {
100 m_isPartialHasBeenSet = true;
101 m_isPartial = value;
102 }
103 inline MedicalResult& WithIsPartial(bool value) {
104 SetIsPartial(value);
105 return *this;
106 }
108
110
115 inline const Aws::Vector<MedicalAlternative>& GetAlternatives() const { return m_alternatives; }
116 inline bool AlternativesHasBeenSet() const { return m_alternativesHasBeenSet; }
117 template <typename AlternativesT = Aws::Vector<MedicalAlternative>>
118 void SetAlternatives(AlternativesT&& value) {
119 m_alternativesHasBeenSet = true;
120 m_alternatives = std::forward<AlternativesT>(value);
121 }
122 template <typename AlternativesT = Aws::Vector<MedicalAlternative>>
123 MedicalResult& WithAlternatives(AlternativesT&& value) {
124 SetAlternatives(std::forward<AlternativesT>(value));
125 return *this;
126 }
127 template <typename AlternativesT = MedicalAlternative>
128 MedicalResult& AddAlternatives(AlternativesT&& value) {
129 m_alternativesHasBeenSet = true;
130 m_alternatives.emplace_back(std::forward<AlternativesT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetChannelId() const { return m_channelId; }
140 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
141 template <typename ChannelIdT = Aws::String>
142 void SetChannelId(ChannelIdT&& value) {
143 m_channelIdHasBeenSet = true;
144 m_channelId = std::forward<ChannelIdT>(value);
145 }
146 template <typename ChannelIdT = Aws::String>
147 MedicalResult& WithChannelId(ChannelIdT&& value) {
148 SetChannelId(std::forward<ChannelIdT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_resultId;
154
155 double m_startTime{0.0};
156
157 double m_endTime{0.0};
158
159 bool m_isPartial{false};
160
161 Aws::Vector<MedicalAlternative> m_alternatives;
162
163 Aws::String m_channelId;
164 bool m_resultIdHasBeenSet = false;
165 bool m_startTimeHasBeenSet = false;
166 bool m_endTimeHasBeenSet = false;
167 bool m_isPartialHasBeenSet = false;
168 bool m_alternativesHasBeenSet = false;
169 bool m_channelIdHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace TranscribeStreamingService
174} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult()=default
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MedicalResult & AddAlternatives(AlternativesT &&value)
const Aws::Vector< MedicalAlternative > & GetAlternatives() const
MedicalResult & WithChannelId(ChannelIdT &&value)
MedicalResult & WithResultId(ResultIdT &&value)
MedicalResult & WithAlternatives(AlternativesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue