AWS SDK for C++  1.9.159
AWS SDK for C++
MonitorErrorDetails.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoTSiteWise
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const MonitorErrorCode& GetCode() const{ return m_code; }
45 
49  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 
54  inline void SetCode(const MonitorErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
55 
59  inline void SetCode(MonitorErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
60 
64  inline MonitorErrorDetails& WithCode(const MonitorErrorCode& value) { SetCode(value); return *this;}
65 
69  inline MonitorErrorDetails& WithCode(MonitorErrorCode&& value) { SetCode(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetMessage() const{ return m_message; }
76 
80  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 
85  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
86 
90  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
91 
95  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
96 
100  inline MonitorErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
101 
105  inline MonitorErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
106 
110  inline MonitorErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
111 
112  private:
113 
114  MonitorErrorCode m_code;
115  bool m_codeHasBeenSet;
116 
117  Aws::String m_message;
118  bool m_messageHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace IoTSiteWise
123 } // namespace Aws
Aws::IoTSiteWise::Model::MonitorErrorDetails::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: MonitorErrorDetails.h:80
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::MonitorErrorDetails::MonitorErrorDetails
MonitorErrorDetails()
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::MonitorErrorDetails::WithCode
MonitorErrorDetails & WithCode(const MonitorErrorCode &value)
Definition: MonitorErrorDetails.h:64
Aws::IoTSiteWise::Model::MonitorErrorDetails::SetCode
void SetCode(MonitorErrorCode &&value)
Definition: MonitorErrorDetails.h:59
Aws::IoTSiteWise::Model::MonitorErrorDetails::WithMessage
MonitorErrorDetails & WithMessage(const Aws::String &value)
Definition: MonitorErrorDetails.h:100
Aws::IoTSiteWise::Model::MonitorErrorDetails::operator=
MonitorErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::MonitorErrorDetails::SetMessage
void SetMessage(Aws::String &&value)
Definition: MonitorErrorDetails.h:90
Aws::IoTSiteWise::Model::MonitorErrorDetails::WithMessage
MonitorErrorDetails & WithMessage(Aws::String &&value)
Definition: MonitorErrorDetails.h:105
Aws::IoTSiteWise::Model::MonitorErrorDetails::GetMessage
const Aws::String & GetMessage() const
Definition: MonitorErrorDetails.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::MonitorErrorDetails::SetMessage
void SetMessage(const Aws::String &value)
Definition: MonitorErrorDetails.h:85
Aws::IoTSiteWise::Model::MonitorErrorCode
MonitorErrorCode
Definition: MonitorErrorCode.h:17
Aws::IoTSiteWise::Model::MonitorErrorDetails::SetMessage
void SetMessage(const char *value)
Definition: MonitorErrorDetails.h:95
Aws::IoTSiteWise::Model::MonitorErrorDetails::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: MonitorErrorDetails.h:49
Aws::IoTSiteWise::Model::MonitorErrorDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::MonitorErrorDetails::WithCode
MonitorErrorDetails & WithCode(MonitorErrorCode &&value)
Definition: MonitorErrorDetails.h:69
Aws::IoTSiteWise::Model::MonitorErrorDetails
Definition: MonitorErrorDetails.h:33
Aws::IoTSiteWise::Model::MonitorErrorDetails::SetCode
void SetCode(const MonitorErrorCode &value)
Definition: MonitorErrorDetails.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::MonitorErrorDetails::MonitorErrorDetails
MonitorErrorDetails(Aws::Utils::Json::JsonView jsonValue)
MonitorErrorCode.h
Aws::IoTSiteWise::Model::MonitorErrorDetails::GetCode
const MonitorErrorCode & GetCode() const
Definition: MonitorErrorDetails.h:44
Aws::IoTSiteWise::Model::MonitorErrorDetails::WithMessage
MonitorErrorDetails & WithMessage(const char *value)
Definition: MonitorErrorDetails.h:110