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 SetResourceName(
const char* value) { m_resourceNameHasBeenSet =
true; m_resourceName.assign(value); }
79 bool m_messageHasBeenSet =
false;
81 int m_originalStatusCode;
82 bool m_originalStatusCodeHasBeenSet =
false;
85 bool m_resourceNameHasBeenSet =
false;
bool OriginalStatusCodeHasBeenSet() const
int GetOriginalStatusCode() const
ModelErrorException & WithResourceName(const Aws::String &value)
bool MessageHasBeenSet() const
AWS_BEDROCKRUNTIME_API ModelErrorException()
ModelErrorException & WithResourceName(Aws::String &&value)
void SetResourceName(const char *value)
const Aws::String & GetResourceName() const
void SetResourceName(Aws::String &&value)
void SetOriginalStatusCode(int value)
AWS_BEDROCKRUNTIME_API ModelErrorException(Aws::Utils::Json::JsonView jsonValue)
bool ResourceNameHasBeenSet() const
void SetResourceName(const Aws::String &value)
ModelErrorException & WithMessage(const Aws::String &value)
void SetMessage(const char *value)
const Aws::String & GetMessage() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ModelErrorException & WithMessage(const char *value)
void SetMessage(const Aws::String &value)
AWS_BEDROCKRUNTIME_API ModelErrorException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(Aws::String &&value)
ModelErrorException & WithOriginalStatusCode(int value)
ModelErrorException & WithMessage(Aws::String &&value)
ModelErrorException & WithResourceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue