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/ModelStreamErrorException.h>
27namespace BedrockRuntime
52 template<
typename MessageStartT = MessageStartEvent>
53 void SetMessageStart(MessageStartT&& value) { m_messageStartHasBeenSet =
true; m_messageStart = std::forward<MessageStartT>(value); }
54 template<
typename MessageStartT = MessageStartEvent>
64 template<
typename ContentBlockStartT = ContentBlockStartEvent>
65 void SetContentBlockStart(ContentBlockStartT&& value) { m_contentBlockStartHasBeenSet =
true; m_contentBlockStart = std::forward<ContentBlockStartT>(value); }
66 template<
typename ContentBlockStartT = ContentBlockStartEvent>
76 template<
typename ContentBlockDeltaT = ContentBlockDeltaEvent>
77 void SetContentBlockDelta(ContentBlockDeltaT&& value) { m_contentBlockDeltaHasBeenSet =
true; m_contentBlockDelta = std::forward<ContentBlockDeltaT>(value); }
78 template<
typename ContentBlockDeltaT = ContentBlockDeltaEvent>
88 template<
typename ContentBlockStopT = ContentBlockStopEvent>
89 void SetContentBlockStop(ContentBlockStopT&& value) { m_contentBlockStopHasBeenSet =
true; m_contentBlockStop = std::forward<ContentBlockStopT>(value); }
90 template<
typename ContentBlockStopT = ContentBlockStopEvent>
100 template<
typename MessageStopT = MessageStopEvent>
101 void SetMessageStop(MessageStopT&& value) { m_messageStopHasBeenSet =
true; m_messageStop = std::forward<MessageStopT>(value); }
102 template<
typename MessageStopT = MessageStopEvent>
112 template<
typename MetadataT = ConverseStreamMetadataEvent>
113 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet =
true; m_metadata = std::forward<MetadataT>(value); }
114 template<
typename MetadataT = ConverseStreamMetadataEvent>
124 template<
typename InternalServerExceptionT = BedrockRuntimeError>
125 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
126 template<
typename InternalServerExceptionT = BedrockRuntimeError>
136 template<
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
137 void SetModelStreamErrorException(ModelStreamErrorExceptionT&& value) { m_modelStreamErrorExceptionHasBeenSet =
true; m_modelStreamErrorException = std::forward<ModelStreamErrorExceptionT>(value); }
138 template<
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
151 template<
typename Val
idationExceptionT = BedrockRuntimeError>
152 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet =
true; m_validationException = std::forward<ValidationExceptionT>(value); }
153 template<
typename Val
idationExceptionT = BedrockRuntimeError>
166 template<
typename ThrottlingExceptionT = BedrockRuntimeError>
167 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
168 template<
typename ThrottlingExceptionT = BedrockRuntimeError>
180 template<
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
181 void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet =
true; m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value); }
182 template<
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
188 bool m_messageStartHasBeenSet =
false;
191 bool m_contentBlockStartHasBeenSet =
false;
194 bool m_contentBlockDeltaHasBeenSet =
false;
197 bool m_contentBlockStopHasBeenSet =
false;
200 bool m_messageStopHasBeenSet =
false;
203 bool m_metadataHasBeenSet =
false;
206 bool m_internalServerExceptionHasBeenSet =
false;
209 bool m_modelStreamErrorExceptionHasBeenSet =
false;
212 bool m_validationExceptionHasBeenSet =
false;
215 bool m_throttlingExceptionHasBeenSet =
false;
218 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
Aws::Utils::Json::JsonValue JsonValue