7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/PayloadPart.h>
9#include <aws/bedrock-runtime/model/ModelStreamErrorException.h>
22namespace BedrockRuntime
47 template<
typename ChunkT = PayloadPart>
48 void SetChunk(ChunkT&& value) { m_chunkHasBeenSet =
true; m_chunk = std::forward<ChunkT>(value); }
49 template<
typename ChunkT = PayloadPart>
59 template<
typename InternalServerExceptionT = BedrockRuntimeError>
60 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
61 template<
typename InternalServerExceptionT = BedrockRuntimeError>
71 template<
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
72 void SetModelStreamErrorException(ModelStreamErrorExceptionT&& value) { m_modelStreamErrorExceptionHasBeenSet =
true; m_modelStreamErrorException = std::forward<ModelStreamErrorExceptionT>(value); }
73 template<
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
84 template<
typename Val
idationExceptionT = BedrockRuntimeError>
85 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet =
true; m_validationException = std::forward<ValidationExceptionT>(value); }
86 template<
typename Val
idationExceptionT = BedrockRuntimeError>
99 template<
typename ThrottlingExceptionT = BedrockRuntimeError>
100 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
101 template<
typename ThrottlingExceptionT = BedrockRuntimeError>
112 template<
typename ModelTimeoutExceptionT = BedrockRuntimeError>
113 void SetModelTimeoutException(ModelTimeoutExceptionT&& value) { m_modelTimeoutExceptionHasBeenSet =
true; m_modelTimeoutException = std::forward<ModelTimeoutExceptionT>(value); }
114 template<
typename ModelTimeoutExceptionT = BedrockRuntimeError>
124 template<
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
125 void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet =
true; m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value); }
126 template<
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
132 bool m_chunkHasBeenSet =
false;
135 bool m_internalServerExceptionHasBeenSet =
false;
138 bool m_modelStreamErrorExceptionHasBeenSet =
false;
141 bool m_validationExceptionHasBeenSet =
false;
144 bool m_throttlingExceptionHasBeenSet =
false;
147 bool m_modelTimeoutExceptionHasBeenSet =
false;
150 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
Aws::Utils::Json::JsonValue JsonValue