7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ModelStreamErrorException.h>
9#include <aws/bedrock-runtime/model/PayloadPart.h>
20namespace BedrockRuntime {
41 template <
typename ChunkT = PayloadPart>
43 m_chunkHasBeenSet =
true;
44 m_chunk = std::forward<ChunkT>(value);
46 template <
typename ChunkT = PayloadPart>
48 SetChunk(std::forward<ChunkT>(value));
59 template <
typename InternalServerExceptionT = BedrockRuntimeError>
61 m_internalServerExceptionHasBeenSet =
true;
62 m_internalServerException = std::forward<InternalServerExceptionT>(value);
64 template <
typename InternalServerExceptionT = BedrockRuntimeError>
77 template <
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
79 m_modelStreamErrorExceptionHasBeenSet =
true;
80 m_modelStreamErrorException = std::forward<ModelStreamErrorExceptionT>(value);
82 template <
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
96 template <
typename Val
idationExceptionT = BedrockRuntimeError>
98 m_validationExceptionHasBeenSet =
true;
99 m_validationException = std::forward<ValidationExceptionT>(value);
101 template <
typename Val
idationExceptionT = BedrockRuntimeError>
117 template <
typename ThrottlingExceptionT = BedrockRuntimeError>
119 m_throttlingExceptionHasBeenSet =
true;
120 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
122 template <
typename ThrottlingExceptionT = BedrockRuntimeError>
136 template <
typename ModelTimeoutExceptionT = BedrockRuntimeError>
138 m_modelTimeoutExceptionHasBeenSet =
true;
139 m_modelTimeoutException = std::forward<ModelTimeoutExceptionT>(value);
141 template <
typename ModelTimeoutExceptionT = BedrockRuntimeError>
154 template <
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
156 m_serviceUnavailableExceptionHasBeenSet =
true;
157 m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value);
159 template <
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
179 bool m_chunkHasBeenSet =
false;
180 bool m_internalServerExceptionHasBeenSet =
false;
181 bool m_modelStreamErrorExceptionHasBeenSet =
false;
182 bool m_validationExceptionHasBeenSet =
false;
183 bool m_throttlingExceptionHasBeenSet =
false;
184 bool m_modelTimeoutExceptionHasBeenSet =
false;
185 bool m_serviceUnavailableExceptionHasBeenSet =
false;
const BedrockRuntimeError & GetModelTimeoutException() const
bool ModelTimeoutExceptionHasBeenSet() const
bool ValidationExceptionHasBeenSet() const
const PayloadPart & GetChunk() const
bool ChunkHasBeenSet() const
ResponseStream & WithModelTimeoutException(ModelTimeoutExceptionT &&value)
AWS_BEDROCKRUNTIME_API ResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetModelStreamErrorException(ModelStreamErrorExceptionT &&value)
const BedrockRuntimeError & GetValidationException() const
ResponseStream & WithModelStreamErrorException(ModelStreamErrorExceptionT &&value)
void SetModelTimeoutException(ModelTimeoutExceptionT &&value)
AWS_BEDROCKRUNTIME_API ResponseStream()=default
void SetValidationException(ValidationExceptionT &&value)
ResponseStream & WithChunk(ChunkT &&value)
bool ServiceUnavailableExceptionHasBeenSet() const
void SetChunk(ChunkT &&value)
bool ThrottlingExceptionHasBeenSet() const
void SetServiceUnavailableException(ServiceUnavailableExceptionT &&value)
ResponseStream & WithInternalServerException(InternalServerExceptionT &&value)
ResponseStream & WithValidationException(ValidationExceptionT &&value)
void SetThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue)
bool InternalServerExceptionHasBeenSet() const
const BedrockRuntimeError & GetServiceUnavailableException() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInternalServerException(InternalServerExceptionT &&value)
const BedrockRuntimeError & GetThrottlingException() const
const ModelStreamErrorException & GetModelStreamErrorException() const
bool ModelStreamErrorExceptionHasBeenSet() const
ResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
ResponseStream & WithServiceUnavailableException(ServiceUnavailableExceptionT &&value)
const BedrockRuntimeError & GetInternalServerException() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue