AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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
33 {
34 public:
35 AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream() = default;
36 AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const TranscriptEvent& GetTranscriptEvent() const { return m_transcriptEvent; }
48 inline bool TranscriptEventHasBeenSet() const { return m_transcriptEventHasBeenSet; }
49 template<typename TranscriptEventT = TranscriptEvent>
50 void SetTranscriptEvent(TranscriptEventT&& value) { m_transcriptEventHasBeenSet = true; m_transcriptEvent = std::forward<TranscriptEventT>(value); }
51 template<typename TranscriptEventT = TranscriptEvent>
52 TranscriptResultStream& WithTranscriptEvent(TranscriptEventT&& value) { SetTranscriptEvent(std::forward<TranscriptEventT>(value)); return *this;}
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) { m_badRequestExceptionHasBeenSet = true; m_badRequestException = std::forward<BadRequestExceptionT>(value); }
64 template<typename BadRequestExceptionT = TranscribeStreamingServiceError>
65 TranscriptResultStream& WithBadRequestException(BadRequestExceptionT&& value) { SetBadRequestException(std::forward<BadRequestExceptionT>(value)); return *this;}
67
69
74 inline const TranscribeStreamingServiceError& GetLimitExceededException() const { return m_limitExceededException; }
75 inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; }
76 template<typename LimitExceededExceptionT = TranscribeStreamingServiceError>
77 void SetLimitExceededException(LimitExceededExceptionT&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::forward<LimitExceededExceptionT>(value); }
78 template<typename LimitExceededExceptionT = TranscribeStreamingServiceError>
79 TranscriptResultStream& WithLimitExceededException(LimitExceededExceptionT&& value) { SetLimitExceededException(std::forward<LimitExceededExceptionT>(value)); return *this;}
81
83
87 inline const TranscribeStreamingServiceError& GetInternalFailureException() const { return m_internalFailureException; }
88 inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; }
89 template<typename InternalFailureExceptionT = TranscribeStreamingServiceError>
90 void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward<InternalFailureExceptionT>(value); }
91 template<typename InternalFailureExceptionT = TranscribeStreamingServiceError>
92 TranscriptResultStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward<InternalFailureExceptionT>(value)); return *this;}
94
96
100 inline const TranscribeStreamingServiceError& GetConflictException() const { return m_conflictException; }
101 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
102 template<typename ConflictExceptionT = TranscribeStreamingServiceError>
103 void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward<ConflictExceptionT>(value); }
104 template<typename ConflictExceptionT = TranscribeStreamingServiceError>
105 TranscriptResultStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward<ConflictExceptionT>(value)); return *this;}
107
109
112 inline const TranscribeStreamingServiceError& GetServiceUnavailableException() const { return m_serviceUnavailableException; }
113 inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; }
114 template<typename ServiceUnavailableExceptionT = TranscribeStreamingServiceError>
115 void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value); }
116 template<typename ServiceUnavailableExceptionT = TranscribeStreamingServiceError>
117 TranscriptResultStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward<ServiceUnavailableExceptionT>(value)); return *this;}
119 private:
120
121 TranscriptEvent m_transcriptEvent;
122 bool m_transcriptEventHasBeenSet = false;
123
124 TranscribeStreamingServiceError m_badRequestException;
125 bool m_badRequestExceptionHasBeenSet = false;
126
127 TranscribeStreamingServiceError m_limitExceededException;
128 bool m_limitExceededExceptionHasBeenSet = false;
129
130 TranscribeStreamingServiceError m_internalFailureException;
131 bool m_internalFailureExceptionHasBeenSet = false;
132
133 TranscribeStreamingServiceError m_conflictException;
134 bool m_conflictExceptionHasBeenSet = false;
135
136 TranscribeStreamingServiceError m_serviceUnavailableException;
137 bool m_serviceUnavailableExceptionHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace TranscribeStreamingService
142} // 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