7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
19namespace BedrockRuntime {
39 template <
typename MessageT = Aws::String>
41 m_messageHasBeenSet =
true;
42 m_message = std::forward<MessageT>(value);
44 template <
typename MessageT = Aws::String>
58 m_originalStatusCodeHasBeenSet =
true;
59 m_originalStatusCode = value;
73 template <
typename ResourceNameT = Aws::String>
75 m_resourceNameHasBeenSet =
true;
76 m_resourceName = std::forward<ResourceNameT>(value);
78 template <
typename ResourceNameT = Aws::String>
87 int m_originalStatusCode{0};
90 bool m_messageHasBeenSet =
false;
91 bool m_originalStatusCodeHasBeenSet =
false;
92 bool m_resourceNameHasBeenSet =
false;
bool OriginalStatusCodeHasBeenSet() const
AWS_BEDROCKRUNTIME_API ModelErrorException()=default
ModelErrorException & WithMessage(MessageT &&value)
int GetOriginalStatusCode() const
void SetMessage(MessageT &&value)
bool MessageHasBeenSet() const
const Aws::String & GetResourceName() const
void SetOriginalStatusCode(int value)
AWS_BEDROCKRUNTIME_API ModelErrorException(Aws::Utils::Json::JsonView jsonValue)
bool ResourceNameHasBeenSet() const
void SetResourceName(ResourceNameT &&value)
const Aws::String & GetMessage() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API ModelErrorException & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelErrorException & WithOriginalStatusCode(int value)
ModelErrorException & WithResourceName(ResourceNameT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue