7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/PayloadPart.h>
9#include <aws/bedrock-runtime/model/InternalServerException.h>
10#include <aws/bedrock-runtime/model/ModelStreamErrorException.h>
11#include <aws/bedrock-runtime/model/ValidationException.h>
12#include <aws/bedrock-runtime/model/ThrottlingException.h>
13#include <aws/bedrock-runtime/model/ModelTimeoutException.h>
14#include <aws/bedrock-runtime/model/ServiceUnavailableException.h>
27namespace BedrockRuntime
64 inline void SetInternalServerException(
const InternalServerException& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = value; }
65 inline void SetInternalServerException(InternalServerException&& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = std::move(value); }
89 inline void SetValidationException(
const ValidationException& value) { m_validationExceptionHasBeenSet =
true; m_validationException = value; }
90 inline void SetValidationException(ValidationException&& value) { m_validationExceptionHasBeenSet =
true; m_validationException = std::move(value); }
104 inline void SetThrottlingException(
const ThrottlingException& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = value; }
105 inline void SetThrottlingException(ThrottlingException&& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = std::move(value); }
117 inline void SetModelTimeoutException(
const ModelTimeoutException& value) { m_modelTimeoutExceptionHasBeenSet =
true; m_modelTimeoutException = value; }
118 inline void SetModelTimeoutException(ModelTimeoutException&& value) { m_modelTimeoutExceptionHasBeenSet =
true; m_modelTimeoutException = std::move(value); }
127 inline void SetServiceUnavailableException(
const ServiceUnavailableException& value) { m_serviceUnavailableExceptionHasBeenSet =
true; m_serviceUnavailableException = value; }
128 inline void SetServiceUnavailableException(ServiceUnavailableException&& value) { m_serviceUnavailableExceptionHasBeenSet =
true; m_serviceUnavailableException = std::move(value); }
135 bool m_chunkHasBeenSet =
false;
137 InternalServerException m_internalServerException;
138 bool m_internalServerExceptionHasBeenSet =
false;
141 bool m_modelStreamErrorExceptionHasBeenSet =
false;
143 ValidationException m_validationException;
144 bool m_validationExceptionHasBeenSet =
false;
146 ThrottlingException m_throttlingException;
147 bool m_throttlingExceptionHasBeenSet =
false;
149 ModelTimeoutException m_modelTimeoutException;
150 bool m_modelTimeoutExceptionHasBeenSet =
false;
152 ServiceUnavailableException m_serviceUnavailableException;
153 bool m_serviceUnavailableExceptionHasBeenSet =
false;
void SetServiceUnavailableException(const ServiceUnavailableException &value)
bool ModelTimeoutExceptionHasBeenSet() const
void SetModelTimeoutException(ModelTimeoutException &&value)
bool ValidationExceptionHasBeenSet() const
const PayloadPart & GetChunk() const
bool ChunkHasBeenSet() const
AWS_BEDROCKRUNTIME_API ResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseStream & WithChunk(PayloadPart &&value)
void SetChunk(const PayloadPart &value)
ResponseStream & WithInternalServerException(const InternalServerException &value)
ResponseStream & WithChunk(const PayloadPart &value)
void SetValidationException(ValidationException &&value)
void SetChunk(PayloadPart &&value)
ResponseStream & WithModelStreamErrorException(ModelStreamErrorException &&value)
const ValidationException & GetValidationException() const
void SetModelStreamErrorException(const ModelStreamErrorException &value)
void SetServiceUnavailableException(ServiceUnavailableException &&value)
const ThrottlingException & GetThrottlingException() const
void SetModelStreamErrorException(ModelStreamErrorException &&value)
bool ServiceUnavailableExceptionHasBeenSet() const
ResponseStream & WithInternalServerException(InternalServerException &&value)
bool ThrottlingExceptionHasBeenSet() const
ResponseStream & WithModelStreamErrorException(const ModelStreamErrorException &value)
ResponseStream & WithValidationException(ValidationException &&value)
const InternalServerException & GetInternalServerException() const
ResponseStream & WithThrottlingException(const ThrottlingException &value)
void SetModelTimeoutException(const ModelTimeoutException &value)
ResponseStream & WithServiceUnavailableException(const ServiceUnavailableException &value)
ResponseStream & WithModelTimeoutException(const ModelTimeoutException &value)
void SetInternalServerException(InternalServerException &&value)
const ServiceUnavailableException & GetServiceUnavailableException() const
void SetThrottlingException(ThrottlingException &&value)
AWS_BEDROCKRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ResponseStream()
void SetValidationException(const ValidationException &value)
void SetThrottlingException(const ThrottlingException &value)
bool InternalServerExceptionHasBeenSet() const
const ModelTimeoutException & GetModelTimeoutException() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseStream & WithModelTimeoutException(ModelTimeoutException &&value)
void SetInternalServerException(const InternalServerException &value)
ResponseStream & WithThrottlingException(ThrottlingException &&value)
const ModelStreamErrorException & GetModelStreamErrorException() const
bool ModelStreamErrorExceptionHasBeenSet() const
ResponseStream & WithServiceUnavailableException(ServiceUnavailableException &&value)
ResponseStream & WithValidationException(const ValidationException &value)
Aws::Utils::Json::JsonValue JsonValue