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