AWS SDK for C++  1.9.153
AWS SDK for C++
ConfigurationErrorDetails.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 
34  {
35  public:
40 
41 
45  inline const ErrorCode& GetCode() const{ return m_code; }
46 
50  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
51 
55  inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
56 
60  inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
61 
65  inline ConfigurationErrorDetails& WithCode(const ErrorCode& value) { SetCode(value); return *this;}
66 
70  inline ConfigurationErrorDetails& WithCode(ErrorCode&& value) { SetCode(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetMessage() const{ return m_message; }
77 
81  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 
86  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
87 
91  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
92 
96  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
97 
101  inline ConfigurationErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
102 
106  inline ConfigurationErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
107 
111  inline ConfigurationErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
112 
113  private:
114 
115  ErrorCode m_code;
116  bool m_codeHasBeenSet;
117 
118  Aws::String m_message;
119  bool m_messageHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace IoTSiteWise
124 } // namespace Aws
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::GetMessage
const Aws::String & GetMessage() const
Definition: ConfigurationErrorDetails.h:76
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::WithCode
ConfigurationErrorDetails & WithCode(const ErrorCode &value)
Definition: ConfigurationErrorDetails.h:65
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::WithMessage
ConfigurationErrorDetails & WithMessage(Aws::String &&value)
Definition: ConfigurationErrorDetails.h:106
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::operator=
ConfigurationErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConfigurationErrorDetails.h:81
ErrorCode.h
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ConfigurationErrorDetails.h:50
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::GetCode
const ErrorCode & GetCode() const
Definition: ConfigurationErrorDetails.h:45
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::WithMessage
ConfigurationErrorDetails & WithMessage(const char *value)
Definition: ConfigurationErrorDetails.h:111
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::SetMessage
void SetMessage(const char *value)
Definition: ConfigurationErrorDetails.h:96
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConfigurationErrorDetails.h:91
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::SetCode
void SetCode(const ErrorCode &value)
Definition: ConfigurationErrorDetails.h:55
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::WithCode
ConfigurationErrorDetails & WithCode(ErrorCode &&value)
Definition: ConfigurationErrorDetails.h:70
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConfigurationErrorDetails.h:86
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::ConfigurationErrorDetails
ConfigurationErrorDetails()
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::ConfigurationErrorDetails
ConfigurationErrorDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::ConfigurationErrorDetails
Definition: ConfigurationErrorDetails.h:34
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::ConfigurationErrorDetails::WithMessage
ConfigurationErrorDetails & WithMessage(const Aws::String &value)
Definition: ConfigurationErrorDetails.h:101
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::ConfigurationErrorDetails::SetCode
void SetCode(ErrorCode &&value)
Definition: ConfigurationErrorDetails.h:60