AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModelError.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMakerRuntime
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKERRUNTIME_API ModelError();
36 AWS_SAGEMAKERRUNTIME_API ModelError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKERRUNTIME_API ModelError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::String& GetMessage() const{ return m_message; }
44 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
46 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
47 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
48 inline ModelError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
49 inline ModelError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
50 inline ModelError& WithMessage(const char* value) { SetMessage(value); return *this;}
52
54
57 inline int GetOriginalStatusCode() const{ return m_originalStatusCode; }
58 inline bool OriginalStatusCodeHasBeenSet() const { return m_originalStatusCodeHasBeenSet; }
59 inline void SetOriginalStatusCode(int value) { m_originalStatusCodeHasBeenSet = true; m_originalStatusCode = value; }
60 inline ModelError& WithOriginalStatusCode(int value) { SetOriginalStatusCode(value); return *this;}
62
64
67 inline const Aws::String& GetOriginalMessage() const{ return m_originalMessage; }
68 inline bool OriginalMessageHasBeenSet() const { return m_originalMessageHasBeenSet; }
69 inline void SetOriginalMessage(const Aws::String& value) { m_originalMessageHasBeenSet = true; m_originalMessage = value; }
70 inline void SetOriginalMessage(Aws::String&& value) { m_originalMessageHasBeenSet = true; m_originalMessage = std::move(value); }
71 inline void SetOriginalMessage(const char* value) { m_originalMessageHasBeenSet = true; m_originalMessage.assign(value); }
72 inline ModelError& WithOriginalMessage(const Aws::String& value) { SetOriginalMessage(value); return *this;}
73 inline ModelError& WithOriginalMessage(Aws::String&& value) { SetOriginalMessage(std::move(value)); return *this;}
74 inline ModelError& WithOriginalMessage(const char* value) { SetOriginalMessage(value); return *this;}
76
78
81 inline const Aws::String& GetLogStreamArn() const{ return m_logStreamArn; }
82 inline bool LogStreamArnHasBeenSet() const { return m_logStreamArnHasBeenSet; }
83 inline void SetLogStreamArn(const Aws::String& value) { m_logStreamArnHasBeenSet = true; m_logStreamArn = value; }
84 inline void SetLogStreamArn(Aws::String&& value) { m_logStreamArnHasBeenSet = true; m_logStreamArn = std::move(value); }
85 inline void SetLogStreamArn(const char* value) { m_logStreamArnHasBeenSet = true; m_logStreamArn.assign(value); }
86 inline ModelError& WithLogStreamArn(const Aws::String& value) { SetLogStreamArn(value); return *this;}
87 inline ModelError& WithLogStreamArn(Aws::String&& value) { SetLogStreamArn(std::move(value)); return *this;}
88 inline ModelError& WithLogStreamArn(const char* value) { SetLogStreamArn(value); return *this;}
90 private:
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94
95 int m_originalStatusCode;
96 bool m_originalStatusCodeHasBeenSet = false;
97
98 Aws::String m_originalMessage;
99 bool m_originalMessageHasBeenSet = false;
100
101 Aws::String m_logStreamArn;
102 bool m_logStreamArnHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SageMakerRuntime
107} // namespace Aws
ModelError & WithMessage(const char *value)
Definition ModelError.h:50
void SetLogStreamArn(Aws::String &&value)
Definition ModelError.h:84
ModelError & WithOriginalMessage(const Aws::String &value)
Definition ModelError.h:72
void SetMessage(const Aws::String &value)
Definition ModelError.h:45
void SetLogStreamArn(const char *value)
Definition ModelError.h:85
void SetOriginalMessage(const char *value)
Definition ModelError.h:71
const Aws::String & GetOriginalMessage() const
Definition ModelError.h:67
ModelError & WithMessage(const Aws::String &value)
Definition ModelError.h:48
ModelError & WithOriginalMessage(Aws::String &&value)
Definition ModelError.h:73
ModelError & WithLogStreamArn(Aws::String &&value)
Definition ModelError.h:87
void SetMessage(const char *value)
Definition ModelError.h:47
ModelError & WithOriginalMessage(const char *value)
Definition ModelError.h:74
void SetOriginalMessage(Aws::String &&value)
Definition ModelError.h:70
ModelError & WithLogStreamArn(const Aws::String &value)
Definition ModelError.h:86
AWS_SAGEMAKERRUNTIME_API ModelError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogStreamArn(const Aws::String &value)
Definition ModelError.h:83
void SetMessage(Aws::String &&value)
Definition ModelError.h:46
const Aws::String & GetLogStreamArn() const
Definition ModelError.h:81
AWS_SAGEMAKERRUNTIME_API ModelError()
void SetOriginalMessage(const Aws::String &value)
Definition ModelError.h:69
ModelError & WithOriginalStatusCode(int value)
Definition ModelError.h:60
ModelError & WithLogStreamArn(const char *value)
Definition ModelError.h:88
AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
Definition ModelError.h:43
AWS_SAGEMAKERRUNTIME_API ModelError(Aws::Utils::Json::JsonView jsonValue)
ModelError & WithMessage(Aws::String &&value)
Definition ModelError.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue