AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConverseStreamOutput.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/MessageStartEvent.h>
9#include <aws/bedrock-runtime/model/ContentBlockStartEvent.h>
10#include <aws/bedrock-runtime/model/ContentBlockDeltaEvent.h>
11#include <aws/bedrock-runtime/model/ContentBlockStopEvent.h>
12#include <aws/bedrock-runtime/model/MessageStopEvent.h>
13#include <aws/bedrock-runtime/model/ConverseStreamMetadataEvent.h>
14#include <aws/bedrock-runtime/model/InternalServerException.h>
15#include <aws/bedrock-runtime/model/ModelStreamErrorException.h>
16#include <aws/bedrock-runtime/model/ValidationException.h>
17#include <aws/bedrock-runtime/model/ThrottlingException.h>
18#include <aws/bedrock-runtime/model/ServiceUnavailableException.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace BedrockRuntime
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_BEDROCKRUNTIME_API ConverseStreamOutput();
45 AWS_BEDROCKRUNTIME_API ConverseStreamOutput(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKRUNTIME_API ConverseStreamOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const MessageStartEvent& GetMessageStart() const{ return m_messageStart; }
55 inline bool MessageStartHasBeenSet() const { return m_messageStartHasBeenSet; }
56 inline void SetMessageStart(const MessageStartEvent& value) { m_messageStartHasBeenSet = true; m_messageStart = value; }
57 inline void SetMessageStart(MessageStartEvent&& value) { m_messageStartHasBeenSet = true; m_messageStart = std::move(value); }
58 inline ConverseStreamOutput& WithMessageStart(const MessageStartEvent& value) { SetMessageStart(value); return *this;}
59 inline ConverseStreamOutput& WithMessageStart(MessageStartEvent&& value) { SetMessageStart(std::move(value)); return *this;}
61
63
66 inline const ContentBlockStartEvent& GetContentBlockStart() const{ return m_contentBlockStart; }
67 inline bool ContentBlockStartHasBeenSet() const { return m_contentBlockStartHasBeenSet; }
68 inline void SetContentBlockStart(const ContentBlockStartEvent& value) { m_contentBlockStartHasBeenSet = true; m_contentBlockStart = value; }
69 inline void SetContentBlockStart(ContentBlockStartEvent&& value) { m_contentBlockStartHasBeenSet = true; m_contentBlockStart = std::move(value); }
73
75
78 inline const ContentBlockDeltaEvent& GetContentBlockDelta() const{ return m_contentBlockDelta; }
79 inline bool ContentBlockDeltaHasBeenSet() const { return m_contentBlockDeltaHasBeenSet; }
80 inline void SetContentBlockDelta(const ContentBlockDeltaEvent& value) { m_contentBlockDeltaHasBeenSet = true; m_contentBlockDelta = value; }
81 inline void SetContentBlockDelta(ContentBlockDeltaEvent&& value) { m_contentBlockDeltaHasBeenSet = true; m_contentBlockDelta = std::move(value); }
85
87
90 inline const ContentBlockStopEvent& GetContentBlockStop() const{ return m_contentBlockStop; }
91 inline bool ContentBlockStopHasBeenSet() const { return m_contentBlockStopHasBeenSet; }
92 inline void SetContentBlockStop(const ContentBlockStopEvent& value) { m_contentBlockStopHasBeenSet = true; m_contentBlockStop = value; }
93 inline void SetContentBlockStop(ContentBlockStopEvent&& value) { m_contentBlockStopHasBeenSet = true; m_contentBlockStop = std::move(value); }
95 inline ConverseStreamOutput& WithContentBlockStop(ContentBlockStopEvent&& value) { SetContentBlockStop(std::move(value)); return *this;}
97
99
102 inline const MessageStopEvent& GetMessageStop() const{ return m_messageStop; }
103 inline bool MessageStopHasBeenSet() const { return m_messageStopHasBeenSet; }
104 inline void SetMessageStop(const MessageStopEvent& value) { m_messageStopHasBeenSet = true; m_messageStop = value; }
105 inline void SetMessageStop(MessageStopEvent&& value) { m_messageStopHasBeenSet = true; m_messageStop = std::move(value); }
106 inline ConverseStreamOutput& WithMessageStop(const MessageStopEvent& value) { SetMessageStop(value); return *this;}
107 inline ConverseStreamOutput& WithMessageStop(MessageStopEvent&& value) { SetMessageStop(std::move(value)); return *this;}
109
111
114 inline const ConverseStreamMetadataEvent& GetMetadata() const{ return m_metadata; }
115 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
116 inline void SetMetadata(const ConverseStreamMetadataEvent& value) { m_metadataHasBeenSet = true; m_metadata = value; }
117 inline void SetMetadata(ConverseStreamMetadataEvent&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
118 inline ConverseStreamOutput& WithMetadata(const ConverseStreamMetadataEvent& value) { SetMetadata(value); return *this;}
119 inline ConverseStreamOutput& WithMetadata(ConverseStreamMetadataEvent&& value) { SetMetadata(std::move(value)); return *this;}
121
123
126 inline const InternalServerException& GetInternalServerException() const{ return m_internalServerException; }
127 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
128 inline void SetInternalServerException(const InternalServerException& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = value; }
129 inline void SetInternalServerException(InternalServerException&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::move(value); }
130 inline ConverseStreamOutput& WithInternalServerException(const InternalServerException& value) { SetInternalServerException(value); return *this;}
131 inline ConverseStreamOutput& WithInternalServerException(InternalServerException&& value) { SetInternalServerException(std::move(value)); return *this;}
133
135
138 inline const ModelStreamErrorException& GetModelStreamErrorException() const{ return m_modelStreamErrorException; }
139 inline bool ModelStreamErrorExceptionHasBeenSet() const { return m_modelStreamErrorExceptionHasBeenSet; }
140 inline void SetModelStreamErrorException(const ModelStreamErrorException& value) { m_modelStreamErrorExceptionHasBeenSet = true; m_modelStreamErrorException = value; }
141 inline void SetModelStreamErrorException(ModelStreamErrorException&& value) { m_modelStreamErrorExceptionHasBeenSet = true; m_modelStreamErrorException = std::move(value); }
145
147
151 inline const ValidationException& GetValidationException() const{ return m_validationException; }
152 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
153 inline void SetValidationException(const ValidationException& value) { m_validationExceptionHasBeenSet = true; m_validationException = value; }
154 inline void SetValidationException(ValidationException&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::move(value); }
155 inline ConverseStreamOutput& WithValidationException(const ValidationException& value) { SetValidationException(value); return *this;}
156 inline ConverseStreamOutput& WithValidationException(ValidationException&& value) { SetValidationException(std::move(value)); return *this;}
158
160
163 inline const ThrottlingException& GetThrottlingException() const{ return m_throttlingException; }
164 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
165 inline void SetThrottlingException(const ThrottlingException& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = value; }
166 inline void SetThrottlingException(ThrottlingException&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::move(value); }
167 inline ConverseStreamOutput& WithThrottlingException(const ThrottlingException& value) { SetThrottlingException(value); return *this;}
168 inline ConverseStreamOutput& WithThrottlingException(ThrottlingException&& value) { SetThrottlingException(std::move(value)); return *this;}
170
172
175 inline const ServiceUnavailableException& GetServiceUnavailableException() const{ return m_serviceUnavailableException; }
176 inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; }
177 inline void SetServiceUnavailableException(const ServiceUnavailableException& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = value; }
178 inline void SetServiceUnavailableException(ServiceUnavailableException&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::move(value); }
179 inline ConverseStreamOutput& WithServiceUnavailableException(const ServiceUnavailableException& value) { SetServiceUnavailableException(value); return *this;}
180 inline ConverseStreamOutput& WithServiceUnavailableException(ServiceUnavailableException&& value) { SetServiceUnavailableException(std::move(value)); return *this;}
182 private:
183
184 MessageStartEvent m_messageStart;
185 bool m_messageStartHasBeenSet = false;
186
187 ContentBlockStartEvent m_contentBlockStart;
188 bool m_contentBlockStartHasBeenSet = false;
189
190 ContentBlockDeltaEvent m_contentBlockDelta;
191 bool m_contentBlockDeltaHasBeenSet = false;
192
193 ContentBlockStopEvent m_contentBlockStop;
194 bool m_contentBlockStopHasBeenSet = false;
195
196 MessageStopEvent m_messageStop;
197 bool m_messageStopHasBeenSet = false;
198
200 bool m_metadataHasBeenSet = false;
201
202 InternalServerException m_internalServerException;
203 bool m_internalServerExceptionHasBeenSet = false;
204
205 ModelStreamErrorException m_modelStreamErrorException;
206 bool m_modelStreamErrorExceptionHasBeenSet = false;
207
208 ValidationException m_validationException;
209 bool m_validationExceptionHasBeenSet = false;
210
211 ThrottlingException m_throttlingException;
212 bool m_throttlingExceptionHasBeenSet = false;
213
214 ServiceUnavailableException m_serviceUnavailableException;
215 bool m_serviceUnavailableExceptionHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace BedrockRuntime
220} // namespace Aws
const ServiceUnavailableException & GetServiceUnavailableException() const
AWS_BEDROCKRUNTIME_API ConverseStreamOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ConverseStreamOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
ConverseStreamOutput & WithMetadata(ConverseStreamMetadataEvent &&value)
ConverseStreamOutput & WithContentBlockStop(ContentBlockStopEvent &&value)
ConverseStreamOutput & WithInternalServerException(const InternalServerException &value)
const ContentBlockDeltaEvent & GetContentBlockDelta() const
void SetInternalServerException(const InternalServerException &value)
void SetContentBlockStop(const ContentBlockStopEvent &value)
ConverseStreamOutput & WithModelStreamErrorException(ModelStreamErrorException &&value)
void SetModelStreamErrorException(ModelStreamErrorException &&value)
void SetMetadata(ConverseStreamMetadataEvent &&value)
void SetValidationException(const ValidationException &value)
void SetMessageStop(const MessageStopEvent &value)
void SetThrottlingException(ThrottlingException &&value)
ConverseStreamOutput & WithMetadata(const ConverseStreamMetadataEvent &value)
ConverseStreamOutput & WithMessageStart(const MessageStartEvent &value)
const MessageStartEvent & GetMessageStart() const
void SetMetadata(const ConverseStreamMetadataEvent &value)
ConverseStreamOutput & WithThrottlingException(const ThrottlingException &value)
void SetInternalServerException(InternalServerException &&value)
void SetServiceUnavailableException(const ServiceUnavailableException &value)
const ConverseStreamMetadataEvent & GetMetadata() const
void SetMessageStart(const MessageStartEvent &value)
ConverseStreamOutput & WithContentBlockStart(const ContentBlockStartEvent &value)
ConverseStreamOutput & WithModelStreamErrorException(const ModelStreamErrorException &value)
ConverseStreamOutput & WithMessageStop(MessageStopEvent &&value)
const ThrottlingException & GetThrottlingException() const
ConverseStreamOutput & WithContentBlockStart(ContentBlockStartEvent &&value)
ConverseStreamOutput & WithContentBlockDelta(ContentBlockDeltaEvent &&value)
void SetModelStreamErrorException(const ModelStreamErrorException &value)
ConverseStreamOutput & WithThrottlingException(ThrottlingException &&value)
const InternalServerException & GetInternalServerException() const
ConverseStreamOutput & WithInternalServerException(InternalServerException &&value)
ConverseStreamOutput & WithContentBlockStop(const ContentBlockStopEvent &value)
const ContentBlockStopEvent & GetContentBlockStop() const
const ContentBlockStartEvent & GetContentBlockStart() const
ConverseStreamOutput & WithServiceUnavailableException(const ServiceUnavailableException &value)
const ModelStreamErrorException & GetModelStreamErrorException() const
ConverseStreamOutput & WithContentBlockDelta(const ContentBlockDeltaEvent &value)
void SetContentBlockDelta(ContentBlockDeltaEvent &&value)
void SetThrottlingException(const ThrottlingException &value)
ConverseStreamOutput & WithServiceUnavailableException(ServiceUnavailableException &&value)
ConverseStreamOutput & WithValidationException(ValidationException &&value)
void SetContentBlockDelta(const ContentBlockDeltaEvent &value)
ConverseStreamOutput & WithMessageStart(MessageStartEvent &&value)
const ValidationException & GetValidationException() const
void SetContentBlockStop(ContentBlockStopEvent &&value)
void SetContentBlockStart(const ContentBlockStartEvent &value)
void SetServiceUnavailableException(ServiceUnavailableException &&value)
ConverseStreamOutput & WithValidationException(const ValidationException &value)
void SetContentBlockStart(ContentBlockStartEvent &&value)
void SetValidationException(ValidationException &&value)
ConverseStreamOutput & WithMessageStop(const MessageStopEvent &value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue