AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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
80 inline const TranscribeStreamingServiceError& GetLimitExceededException() const { return m_limitExceededException; }
81 inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; }
82 template <typename LimitExceededExceptionT = TranscribeStreamingServiceError>
83 void SetLimitExceededException(LimitExceededExceptionT&& value) {
84 m_limitExceededExceptionHasBeenSet = true;
85 m_limitExceededException = std::forward<LimitExceededExceptionT>(value);
86 }
87 template <typename LimitExceededExceptionT = TranscribeStreamingServiceError>
88 TranscriptResultStream& WithLimitExceededException(LimitExceededExceptionT&& value) {
89 SetLimitExceededException(std::forward<LimitExceededExceptionT>(value));
90 return *this;
91 }
93
95
99 inline const TranscribeStreamingServiceError& GetInternalFailureException() const { return m_internalFailureException; }
100 inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; }
101 template <typename InternalFailureExceptionT = TranscribeStreamingServiceError>
102 void SetInternalFailureException(InternalFailureExceptionT&& value) {
103 m_internalFailureExceptionHasBeenSet = true;
104 m_internalFailureException = std::forward<InternalFailureExceptionT>(value);
105 }
106 template <typename InternalFailureExceptionT = TranscribeStreamingServiceError>
107 TranscriptResultStream& WithInternalFailureException(InternalFailureExceptionT&& value) {
108 SetInternalFailureException(std::forward<InternalFailureExceptionT>(value));
109 return *this;
110 }
112
114
118 inline const TranscribeStreamingServiceError& GetConflictException() const { return m_conflictException; }
119 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
120 template <typename ConflictExceptionT = TranscribeStreamingServiceError>
121 void SetConflictException(ConflictExceptionT&& value) {
122 m_conflictExceptionHasBeenSet = true;
123 m_conflictException = std::forward<ConflictExceptionT>(value);
124 }
125 template <typename ConflictExceptionT = TranscribeStreamingServiceError>
126 TranscriptResultStream& WithConflictException(ConflictExceptionT&& value) {
127 SetConflictException(std::forward<ConflictExceptionT>(value));
128 return *this;
129 }
131
133
136 inline const TranscribeStreamingServiceError& GetServiceUnavailableException() const { return m_serviceUnavailableException; }
137 inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; }
138 template <typename ServiceUnavailableExceptionT = TranscribeStreamingServiceError>
139 void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) {
140 m_serviceUnavailableExceptionHasBeenSet = true;
141 m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value);
142 }
143 template <typename ServiceUnavailableExceptionT = TranscribeStreamingServiceError>
144 TranscriptResultStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) {
145 SetServiceUnavailableException(std::forward<ServiceUnavailableExceptionT>(value));
146 return *this;
147 }
149 private:
150 TranscriptEvent m_transcriptEvent;
151
152 TranscribeStreamingServiceError m_badRequestException;
153
154 TranscribeStreamingServiceError m_limitExceededException;
155
156 TranscribeStreamingServiceError m_internalFailureException;
157
158 TranscribeStreamingServiceError m_conflictException;
159
160 TranscribeStreamingServiceError m_serviceUnavailableException;
161 bool m_transcriptEventHasBeenSet = false;
162 bool m_badRequestExceptionHasBeenSet = false;
163 bool m_limitExceededExceptionHasBeenSet = false;
164 bool m_internalFailureExceptionHasBeenSet = false;
165 bool m_conflictExceptionHasBeenSet = false;
166 bool m_serviceUnavailableExceptionHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace TranscribeStreamingService
171} // 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