7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/BidirectionalOutputPayloadPart.h>
9#include <aws/bedrock-runtime/model/ModelStreamErrorException.h>
22namespace BedrockRuntime
48 template<
typename ChunkT = B
idirectionalOutputPayloadPart>
49 void SetChunk(ChunkT&& value) { m_chunkHasBeenSet =
true; m_chunk = std::forward<ChunkT>(value); }
50 template<
typename ChunkT = B
idirectionalOutputPayloadPart>
60 template<
typename InternalServerExceptionT = BedrockRuntimeError>
61 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
62 template<
typename InternalServerExceptionT = BedrockRuntimeError>
72 template<
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
73 void SetModelStreamErrorException(ModelStreamErrorExceptionT&& value) { m_modelStreamErrorExceptionHasBeenSet =
true; m_modelStreamErrorException = std::forward<ModelStreamErrorExceptionT>(value); }
74 template<
typename ModelStreamErrorExceptionT = ModelStreamErrorException>
85 template<
typename Val
idationExceptionT = BedrockRuntimeError>
86 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet =
true; m_validationException = std::forward<ValidationExceptionT>(value); }
87 template<
typename Val
idationExceptionT = BedrockRuntimeError>
97 template<
typename ThrottlingExceptionT = BedrockRuntimeError>
98 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
99 template<
typename ThrottlingExceptionT = BedrockRuntimeError>
110 template<
typename ModelTimeoutExceptionT = BedrockRuntimeError>
111 void SetModelTimeoutException(ModelTimeoutExceptionT&& value) { m_modelTimeoutExceptionHasBeenSet =
true; m_modelTimeoutException = std::forward<ModelTimeoutExceptionT>(value); }
112 template<
typename ModelTimeoutExceptionT = BedrockRuntimeError>
122 template<
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
123 void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet =
true; m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value); }
124 template<
typename ServiceUnavailableExceptionT = BedrockRuntimeError>
130 bool m_chunkHasBeenSet =
false;
133 bool m_internalServerExceptionHasBeenSet =
false;
136 bool m_modelStreamErrorExceptionHasBeenSet =
false;
139 bool m_validationExceptionHasBeenSet =
false;
142 bool m_throttlingExceptionHasBeenSet =
false;
145 bool m_modelTimeoutExceptionHasBeenSet =
false;
148 bool m_serviceUnavailableExceptionHasBeenSet =
false;
bool ServiceUnavailableExceptionHasBeenSet() const
void SetServiceUnavailableException(ServiceUnavailableExceptionT &&value)
void SetThrottlingException(ThrottlingExceptionT &&value)
InvokeModelWithBidirectionalStreamOutput & WithThrottlingException(ThrottlingExceptionT &&value)
bool ChunkHasBeenSet() const
const BedrockRuntimeError & GetModelTimeoutException() const
const BedrockRuntimeError & GetValidationException() const
void SetValidationException(ValidationExceptionT &&value)
void SetInternalServerException(InternalServerExceptionT &&value)
InvokeModelWithBidirectionalStreamOutput & WithInternalServerException(InternalServerExceptionT &&value)
InvokeModelWithBidirectionalStreamOutput & WithServiceUnavailableException(ServiceUnavailableExceptionT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModelTimeoutException(ModelTimeoutExceptionT &&value)
void SetChunk(ChunkT &&value)
void SetModelStreamErrorException(ModelStreamErrorExceptionT &&value)
InvokeModelWithBidirectionalStreamOutput & WithModelTimeoutException(ModelTimeoutExceptionT &&value)
const BedrockRuntimeError & GetServiceUnavailableException() const
InvokeModelWithBidirectionalStreamOutput & WithModelStreamErrorException(ModelStreamErrorExceptionT &&value)
bool InternalServerExceptionHasBeenSet() const
const BidirectionalOutputPayloadPart & GetChunk() const
const BedrockRuntimeError & GetInternalServerException() const
InvokeModelWithBidirectionalStreamOutput & WithChunk(ChunkT &&value)
const BedrockRuntimeError & GetThrottlingException() const
AWS_BEDROCKRUNTIME_API InvokeModelWithBidirectionalStreamOutput()=default
bool ModelStreamErrorExceptionHasBeenSet() const
InvokeModelWithBidirectionalStreamOutput & WithValidationException(ValidationExceptionT &&value)
bool ThrottlingExceptionHasBeenSet() const
bool ValidationExceptionHasBeenSet() const
const ModelStreamErrorException & GetModelStreamErrorException() const
bool ModelTimeoutExceptionHasBeenSet() const
AWS_BEDROCKRUNTIME_API InvokeModelWithBidirectionalStreamOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API InvokeModelWithBidirectionalStreamOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue