7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
21namespace BedrockRuntime
47 inline void SetMessage(
const char* value) { m_messageHasBeenSet =
true; m_message.assign(value); }
59 inline void SetOriginalStatusCode(
int value) { m_originalStatusCodeHasBeenSet =
true; m_originalStatusCode = value; }
71 inline void SetOriginalMessage(
const char* value) { m_originalMessageHasBeenSet =
true; m_originalMessage.assign(value); }
79 bool m_messageHasBeenSet =
false;
81 int m_originalStatusCode;
82 bool m_originalStatusCodeHasBeenSet =
false;
85 bool m_originalMessageHasBeenSet =
false;
ModelStreamErrorException & WithOriginalStatusCode(int value)
ModelStreamErrorException & WithOriginalMessage(const Aws::String &value)
void SetMessage(const char *value)
bool OriginalStatusCodeHasBeenSet() const
AWS_BEDROCKRUNTIME_API ModelStreamErrorException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOriginalStatusCode(int value)
void SetOriginalMessage(const Aws::String &value)
AWS_BEDROCKRUNTIME_API ModelStreamErrorException()
ModelStreamErrorException & WithMessage(const Aws::String &value)
AWS_BEDROCKRUNTIME_API ModelStreamErrorException(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetOriginalMessage() const
ModelStreamErrorException & WithOriginalMessage(Aws::String &&value)
ModelStreamErrorException & WithMessage(Aws::String &&value)
bool MessageHasBeenSet() const
const Aws::String & GetMessage() const
ModelStreamErrorException & WithMessage(const char *value)
void SetOriginalMessage(const char *value)
int GetOriginalStatusCode() const
void SetMessage(const Aws::String &value)
ModelStreamErrorException & WithOriginalMessage(const char *value)
void SetOriginalMessage(Aws::String &&value)
void SetMessage(Aws::String &&value)
bool OriginalMessageHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue