AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
TranscriptResultStream.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/transcribestreaming/model/TranscriptEvent.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
29 public:
30 AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream() = default;
31 AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const TranscriptEvent& GetTranscriptEvent() const { return m_transcriptEvent; }
42 inline bool TranscriptEventHasBeenSet() const { return m_transcriptEventHasBeenSet; }
43 template <typename TranscriptEventT = TranscriptEvent>
44 void SetTranscriptEvent(TranscriptEventT&& value) {
45 m_transcriptEventHasBeenSet = true;
46 m_transcriptEvent = std::forward<TranscriptEventT>(value);
47 }
48 template <typename TranscriptEventT = TranscriptEvent>
49 TranscriptResultStream& WithTranscriptEvent(TranscriptEventT&& value) {
50 SetTranscriptEvent(std::forward<TranscriptEventT>(value));
51 return *this;
52 }
54
56
60 inline const TranscribeStreamingServiceError& GetBadRequestException() const { return m_badRequestException; }
61 inline bool BadRequestExceptionHasBeenSet() const { return m_badRequestExceptionHasBeenSet; }
62 template <typename BadRequestExceptionT = TranscribeStreamingServiceError>
63 void SetBadRequestException(BadRequestExceptionT&& value) {
64 m_badRequestExceptionHasBeenSet = true;
65 m_badRequestException = std::forward<BadRequestExceptionT>(value);
66 }
67 template <typename BadRequestExceptionT = TranscribeStreamingServiceError>
68 TranscriptResultStream& WithBadRequestException(BadRequestExceptionT&& value) {
69 SetBadRequestException(std::forward<BadRequestExceptionT>(value));
70 return *this;
71 }
73
75
83 inline const TranscribeStreamingServiceError& GetLimitExceededException() const { return m_limitExceededException; }
84 inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; }
85 template <typename LimitExceededExceptionT = TranscribeStreamingServiceError>
86 void SetLimitExceededException(LimitExceededExceptionT&& value) {
87 m_limitExceededExceptionHasBeenSet = true;
88 m_limitExceededException = std::forward<LimitExceededExceptionT>(value);
89 }
90 template <typename LimitExceededExceptionT = TranscribeStreamingServiceError>
91 TranscriptResultStream& WithLimitExceededException(LimitExceededExceptionT&& value) {
92 SetLimitExceededException(std::forward<LimitExceededExceptionT>(value));
93 return *this;
94 }
96
98
102 inline const TranscribeStreamingServiceError& GetInternalFailureException() const { return m_internalFailureException; }
103 inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; }
104 template <typename InternalFailureExceptionT = TranscribeStreamingServiceError>
105 void SetInternalFailureException(InternalFailureExceptionT&& value) {
106 m_internalFailureExceptionHasBeenSet = true;
107 m_internalFailureException = std::forward<InternalFailureExceptionT>(value);
108 }
109 template <typename InternalFailureExceptionT = TranscribeStreamingServiceError>
110 TranscriptResultStream& WithInternalFailureException(InternalFailureExceptionT&& value) {
111 SetInternalFailureException(std::forward<InternalFailureExceptionT>(value));
112 return *this;
113 }
115
117
121 inline const TranscribeStreamingServiceError& GetConflictException() const { return m_conflictException; }
122 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
123 template <typename ConflictExceptionT = TranscribeStreamingServiceError>
124 void SetConflictException(ConflictExceptionT&& value) {
125 m_conflictExceptionHasBeenSet = true;
126 m_conflictException = std::forward<ConflictExceptionT>(value);
127 }
128 template <typename ConflictExceptionT = TranscribeStreamingServiceError>
129 TranscriptResultStream& WithConflictException(ConflictExceptionT&& value) {
130 SetConflictException(std::forward<ConflictExceptionT>(value));
131 return *this;
132 }
134
136
139 inline const TranscribeStreamingServiceError& GetServiceUnavailableException() const { return m_serviceUnavailableException; }
140 inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; }
141 template <typename ServiceUnavailableExceptionT = TranscribeStreamingServiceError>
142 void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) {
143 m_serviceUnavailableExceptionHasBeenSet = true;
144 m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value);
145 }
146 template <typename ServiceUnavailableExceptionT = TranscribeStreamingServiceError>
147 TranscriptResultStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) {
148 SetServiceUnavailableException(std::forward<ServiceUnavailableExceptionT>(value));
149 return *this;
150 }
152 private:
153 TranscriptEvent m_transcriptEvent;
154
155 TranscribeStreamingServiceError m_badRequestException;
156
157 TranscribeStreamingServiceError m_limitExceededException;
158
159 TranscribeStreamingServiceError m_internalFailureException;
160
161 TranscribeStreamingServiceError m_conflictException;
162
163 TranscribeStreamingServiceError m_serviceUnavailableException;
164 bool m_transcriptEventHasBeenSet = false;
165 bool m_badRequestExceptionHasBeenSet = false;
166 bool m_limitExceededExceptionHasBeenSet = false;
167 bool m_internalFailureExceptionHasBeenSet = false;
168 bool m_conflictExceptionHasBeenSet = false;
169 bool m_serviceUnavailableExceptionHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace TranscribeStreamingService
174} // namespace Aws
TranscriptResultStream & WithInternalFailureException(InternalFailureExceptionT &&value)
TranscriptResultStream & WithTranscriptEvent(TranscriptEventT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceUnavailableException(ServiceUnavailableExceptionT &&value)
const TranscribeStreamingServiceError & GetConflictException() const
TranscriptResultStream & WithLimitExceededException(LimitExceededExceptionT &&value)
TranscriptResultStream & WithBadRequestException(BadRequestExceptionT &&value)
const TranscribeStreamingServiceError & GetServiceUnavailableException() const
AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream()=default
const TranscribeStreamingServiceError & GetInternalFailureException() const
const TranscribeStreamingServiceError & GetLimitExceededException() const
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const TranscribeStreamingServiceError & GetBadRequestException() const
AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream(Aws::Utils::Json::JsonView jsonValue)
TranscriptResultStream & WithServiceUnavailableException(ServiceUnavailableExceptionT &&value)
TranscriptResultStream & WithConflictException(ConflictExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue