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>
31namespace BedrockRuntime
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); }
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); }
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); }
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); }
185 bool m_messageStartHasBeenSet =
false;
188 bool m_contentBlockStartHasBeenSet =
false;
191 bool m_contentBlockDeltaHasBeenSet =
false;
194 bool m_contentBlockStopHasBeenSet =
false;
197 bool m_messageStopHasBeenSet =
false;
200 bool m_metadataHasBeenSet =
false;
202 InternalServerException m_internalServerException;
203 bool m_internalServerExceptionHasBeenSet =
false;
206 bool m_modelStreamErrorExceptionHasBeenSet =
false;
208 ValidationException m_validationException;
209 bool m_validationExceptionHasBeenSet =
false;
211 ThrottlingException m_throttlingException;
212 bool m_throttlingExceptionHasBeenSet =
false;
214 ServiceUnavailableException m_serviceUnavailableException;
215 bool m_serviceUnavailableExceptionHasBeenSet =
false;
const ServiceUnavailableException & GetServiceUnavailableException() const
bool ValidationExceptionHasBeenSet() 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 SetMessageStart(MessageStartEvent &&value)
bool InternalServerExceptionHasBeenSet() const
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)
bool ServiceUnavailableExceptionHasBeenSet() const
ConverseStreamOutput & WithMessageStart(const MessageStartEvent &value)
const MessageStartEvent & GetMessageStart() const
void SetMetadata(const ConverseStreamMetadataEvent &value)
bool ThrottlingExceptionHasBeenSet() const
ConverseStreamOutput & WithThrottlingException(const ThrottlingException &value)
bool ContentBlockStartHasBeenSet() const
void SetInternalServerException(InternalServerException &&value)
void SetServiceUnavailableException(const ServiceUnavailableException &value)
const ConverseStreamMetadataEvent & GetMetadata() const
void SetMessageStop(MessageStopEvent &&value)
void SetMessageStart(const MessageStartEvent &value)
ConverseStreamOutput & WithContentBlockStart(const ContentBlockStartEvent &value)
bool MessageStopHasBeenSet() const
ConverseStreamOutput & WithModelStreamErrorException(const ModelStreamErrorException &value)
ConverseStreamOutput & WithMessageStop(MessageStopEvent &&value)
bool ContentBlockStopHasBeenSet() const
const ThrottlingException & GetThrottlingException() const
bool MessageStartHasBeenSet() const
ConverseStreamOutput & WithContentBlockStart(ContentBlockStartEvent &&value)
const MessageStopEvent & GetMessageStop() const
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)
bool ModelStreamErrorExceptionHasBeenSet() const
void SetContentBlockDelta(ContentBlockDeltaEvent &&value)
bool MetadataHasBeenSet() const
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)
bool ContentBlockDeltaHasBeenSet() const
AWS_BEDROCKRUNTIME_API ConverseStreamOutput()
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