AWS SDK for C++  1.9.66
AWS SDK for C++
ErrorDetails.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 ErrorCode& GetCode() const{ return m_code; }
45 
49  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 
54  inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
55 
59  inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
60 
64  inline ErrorDetails& WithCode(const ErrorCode& value) { SetCode(value); return *this;}
65 
69  inline ErrorDetails& WithCode(ErrorCode&& 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 ErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
101 
105  inline ErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
106 
110  inline ErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
111 
112  private:
113 
114  ErrorCode 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::ErrorDetails::WithCode
ErrorDetails & WithCode(const ErrorCode &value)
Definition: ErrorDetails.h:64
Aws::IoTSiteWise::Model::ErrorDetails::operator=
ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::ErrorDetails::GetCode
const ErrorCode & GetCode() const
Definition: ErrorDetails.h:44
Aws::IoTSiteWise::Model::ErrorDetails::WithCode
ErrorDetails & WithCode(ErrorCode &&value)
Definition: ErrorDetails.h:69
Aws::IoTSiteWise::Model::ErrorDetails::ErrorDetails
ErrorDetails()
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ErrorDetails::ErrorDetails
ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::ErrorDetails::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ErrorDetails.h:80
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
ErrorCode.h
Aws::IoTSiteWise::Model::ErrorDetails::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ErrorDetails.h:49
Aws::IoTSiteWise::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(Aws::String &&value)
Definition: ErrorDetails.h:105
Aws::IoTSiteWise::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(const char *value)
Definition: ErrorDetails.h:110
Aws::IoTSiteWise::Model::ErrorDetails::SetMessage
void SetMessage(Aws::String &&value)
Definition: ErrorDetails.h:90
Aws::IoTSiteWise::Model::ErrorDetails::SetMessage
void SetMessage(const Aws::String &value)
Definition: ErrorDetails.h:85
Aws::IoTSiteWise::Model::ErrorDetails::GetMessage
const Aws::String & GetMessage() const
Definition: ErrorDetails.h:75
Aws::IoTSiteWise::Model::ErrorDetails
Definition: ErrorDetails.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::IoTSiteWise::Model::ErrorDetails::SetCode
void SetCode(const ErrorCode &value)
Definition: ErrorDetails.h:54
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoTSiteWise::Model::ErrorDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::ErrorDetails::SetMessage
void SetMessage(const char *value)
Definition: ErrorDetails.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::ErrorCode
ErrorCode
Definition: ErrorCode.h:17
Aws::IoTSiteWise::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(const Aws::String &value)
Definition: ErrorDetails.h:100
Aws::IoTSiteWise::Model::ErrorDetails::SetCode
void SetCode(ErrorCode &&value)
Definition: ErrorDetails.h:59