7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ContentBlockDeltaEvent.h>
9#include <aws/bedrock-runtime/model/ContentBlockStartEvent.h>
10#include <aws/bedrock-runtime/model/ContentBlockStopEvent.h>
11#include <aws/bedrock-runtime/model/ConverseStreamMetadataEvent.h>
12#include <aws/bedrock-runtime/model/MessageStartEvent.h>
13#include <aws/bedrock-runtime/model/MessageStopEvent.h>
14#include <aws/bedrock-runtime/model/ModelStreamErrorException.h>
25namespace BedrockRuntime {
46 template <
typename MessageStartT = MessageStartEvent>
48 m_messageStartHasBeenSet =
true;
49 m_messageStart = std::forward<MessageStartT>(value);
51 template <
typename MessageStartT = MessageStartEvent>
64 template <
typename ContentBlockStartT = ContentBlockStartEvent>
66 m_contentBlockStartHasBeenSet =
true;
67 m_contentBlockStart = std::forward<ContentBlockStartT>(value);
69 template <
typename ContentBlockStartT = ContentBlockStartEvent>
82 template <
typename ContentBlockDeltaT = ContentBlockDeltaEvent>
84 m_contentBlockDeltaHasBeenSet =
true;
85 m_contentBlockDelta = std::forward<ContentBlockDeltaT>(value);
87 template <
typename ContentBlockDeltaT = ContentBlockDeltaEvent>
100 template <
typename ContentBlockStopT = ContentBlockStopEvent>
102 m_contentBlockStopHasBeenSet =
true;
103 m_contentBlockStop = std::forward<ContentBlockStopT>(value);
105 template <
typename ContentBlockStopT = ContentBlockStopEvent>
118 template <
typename MessageStopT = MessageStopEvent>
120 m_messageStopHasBeenSet =
true;
121 m_messageStop = std::forward<MessageStopT>(value);
123 template <
typename MessageStopT = MessageStopEvent>
136 template <
typename MetadataT = ConverseStreamMetadataEvent>
138 m_metadataHasBeenSet =
true;
139 m_metadata = std::forward<MetadataT>(value);
141 template <
typename MetadataT = ConverseStreamMetadataEvent>
154 template <
typename InternalServerExceptionT = BedrockRuntimeError>
156 m_internalServerExceptionHasBeenSet =
true;
157 m_internalServerException = std::forward<InternalServerExceptionT>(value);
159 template <
typename InternalServerExceptionT = BedrockRuntimeError>
172 template <
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
174 m_modelStreamErrorExceptionHasBeenSet =
true;
175 m_modelStreamErrorException = std::forward<ModelStreamErrorExceptionT>(value);
177 template <
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
193 template <
typename Val
idationExceptionT = BedrockRuntimeError>
195 m_validationExceptionHasBeenSet =
true;
196 m_validationException = std::forward<ValidationExceptionT>(value);
198 template <
typename Val
idationExceptionT = BedrockRuntimeError>
214 template <
typename ThrottlingExceptionT = BedrockRuntimeError>
216 m_throttlingExceptionHasBeenSet =
true;
217 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
219 template <
typename ThrottlingExceptionT = BedrockRuntimeError>
234 template <
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
236 m_serviceUnavailableExceptionHasBeenSet =
true;
237 m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value);
239 template <
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
267 bool m_messageStartHasBeenSet =
false;
268 bool m_contentBlockStartHasBeenSet =
false;
269 bool m_contentBlockDeltaHasBeenSet =
false;
270 bool m_contentBlockStopHasBeenSet =
false;
271 bool m_messageStopHasBeenSet =
false;
272 bool m_metadataHasBeenSet =
false;
273 bool m_internalServerExceptionHasBeenSet =
false;
274 bool m_modelStreamErrorExceptionHasBeenSet =
false;
275 bool m_validationExceptionHasBeenSet =
false;
276 bool m_throttlingExceptionHasBeenSet =
false;
277 bool m_serviceUnavailableExceptionHasBeenSet =
false;
void SetContentBlockDelta(ContentBlockDeltaT &&value)
bool ValidationExceptionHasBeenSet() const
AWS_BEDROCKRUNTIME_API ConverseStreamOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ConverseStreamOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentBlockStart(ContentBlockStartT &&value)
const ContentBlockDeltaEvent & GetContentBlockDelta() const
ConverseStreamOutput & WithMetadata(MetadataT &&value)
bool InternalServerExceptionHasBeenSet() const
ConverseStreamOutput & WithValidationException(ValidationExceptionT &&value)
ConverseStreamOutput & WithServiceUnavailableException(ServiceUnavailableExceptionT &&value)
bool ServiceUnavailableExceptionHasBeenSet() const
ConverseStreamOutput & WithContentBlockStop(ContentBlockStopT &&value)
const MessageStartEvent & GetMessageStart() const
ConverseStreamOutput & WithMessageStart(MessageStartT &&value)
bool ThrottlingExceptionHasBeenSet() const
bool ContentBlockStartHasBeenSet() const
const BedrockRuntimeError & GetThrottlingException() const
void SetMetadata(MetadataT &&value)
const ConverseStreamMetadataEvent & GetMetadata() const
bool MessageStopHasBeenSet() const
ConverseStreamOutput & WithContentBlockDelta(ContentBlockDeltaT &&value)
ConverseStreamOutput & WithContentBlockStart(ContentBlockStartT &&value)
AWS_BEDROCKRUNTIME_API ConverseStreamOutput()=default
bool ContentBlockStopHasBeenSet() const
bool MessageStartHasBeenSet() const
void SetMessageStop(MessageStopT &&value)
const MessageStopEvent & GetMessageStop() const
const BedrockRuntimeError & GetValidationException() const
void SetModelStreamErrorException(ModelStreamErrorExceptionT &&value)
void SetServiceUnavailableException(ServiceUnavailableExceptionT &&value)
void SetMessageStart(MessageStartT &&value)
const ContentBlockStopEvent & GetContentBlockStop() const
ConverseStreamOutput & WithModelStreamErrorException(ModelStreamErrorExceptionT &&value)
const ContentBlockStartEvent & GetContentBlockStart() const
const BedrockRuntimeError & GetInternalServerException() const
void SetThrottlingException(ThrottlingExceptionT &&value)
const ModelStreamErrorException & GetModelStreamErrorException() const
ConverseStreamOutput & WithMessageStop(MessageStopT &&value)
bool ModelStreamErrorExceptionHasBeenSet() const
const BedrockRuntimeError & GetServiceUnavailableException() const
bool MetadataHasBeenSet() const
void SetInternalServerException(InternalServerExceptionT &&value)
void SetContentBlockStop(ContentBlockStopT &&value)
ConverseStreamOutput & WithInternalServerException(InternalServerExceptionT &&value)
void SetValidationException(ValidationExceptionT &&value)
ConverseStreamOutput & WithThrottlingException(ThrottlingExceptionT &&value)
bool ContentBlockDeltaHasBeenSet() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue