AWS SDK for C++  1.9.161
AWS SDK for C++
ErrorDetails.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoTSiteWise
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const ErrorCode& GetCode() const{ return m_code; }
47 
51  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 
56  inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
57 
61  inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
62 
66  inline ErrorDetails& WithCode(const ErrorCode& value) { SetCode(value); return *this;}
67 
71  inline ErrorDetails& WithCode(ErrorCode&& value) { SetCode(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetMessage() const{ return m_message; }
78 
82  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 
87  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
88 
92  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
93 
97  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
98 
102  inline ErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
103 
107  inline ErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
108 
112  inline ErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
113 
114 
118  inline const Aws::Vector<DetailedError>& GetDetails() const{ return m_details; }
119 
123  inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
124 
128  inline void SetDetails(const Aws::Vector<DetailedError>& value) { m_detailsHasBeenSet = true; m_details = value; }
129 
133  inline void SetDetails(Aws::Vector<DetailedError>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
134 
138  inline ErrorDetails& WithDetails(const Aws::Vector<DetailedError>& value) { SetDetails(value); return *this;}
139 
143  inline ErrorDetails& WithDetails(Aws::Vector<DetailedError>&& value) { SetDetails(std::move(value)); return *this;}
144 
148  inline ErrorDetails& AddDetails(const DetailedError& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
149 
153  inline ErrorDetails& AddDetails(DetailedError&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
154 
155  private:
156 
157  ErrorCode m_code;
158  bool m_codeHasBeenSet;
159 
160  Aws::String m_message;
161  bool m_messageHasBeenSet;
162 
163  Aws::Vector<DetailedError> m_details;
164  bool m_detailsHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace IoTSiteWise
169 } // namespace Aws
Aws::IoTSiteWise::Model::ErrorDetails::WithDetails
ErrorDetails & WithDetails(const Aws::Vector< DetailedError > &value)
Definition: ErrorDetails.h:138
Aws::IoTSiteWise::Model::ErrorDetails::WithCode
ErrorDetails & WithCode(const ErrorCode &value)
Definition: ErrorDetails.h:66
Aws::IoTSiteWise::Model::ErrorDetails::operator=
ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::ErrorDetails::GetCode
const ErrorCode & GetCode() const
Definition: ErrorDetails.h:46
Aws::IoTSiteWise::Model::ErrorDetails::WithCode
ErrorDetails & WithCode(ErrorCode &&value)
Definition: ErrorDetails.h:71
DetailedError.h
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:82
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ErrorDetails::WithDetails
ErrorDetails & WithDetails(Aws::Vector< DetailedError > &&value)
Definition: ErrorDetails.h:143
ErrorCode.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTSiteWise::Model::ErrorDetails::SetDetails
void SetDetails(const Aws::Vector< DetailedError > &value)
Definition: ErrorDetails.h:128
AWSVector.h
Aws::IoTSiteWise::Model::ErrorDetails::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ErrorDetails.h:51
Aws::IoTSiteWise::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(Aws::String &&value)
Definition: ErrorDetails.h:107
Aws::IoTSiteWise::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(const char *value)
Definition: ErrorDetails.h:112
Aws::IoTSiteWise::Model::ErrorDetails::SetMessage
void SetMessage(Aws::String &&value)
Definition: ErrorDetails.h:92
Aws::IoTSiteWise::Model::ErrorDetails::SetMessage
void SetMessage(const Aws::String &value)
Definition: ErrorDetails.h:87
Aws::IoTSiteWise::Model::ErrorDetails::GetMessage
const Aws::String & GetMessage() const
Definition: ErrorDetails.h:77
Aws::IoTSiteWise::Model::ErrorDetails
Definition: ErrorDetails.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoTSiteWise::Model::ErrorDetails::SetCode
void SetCode(const ErrorCode &value)
Definition: ErrorDetails.h:56
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::ErrorDetails::DetailsHasBeenSet
bool DetailsHasBeenSet() const
Definition: ErrorDetails.h:123
Aws::IoTSiteWise::Model::ErrorDetails::AddDetails
ErrorDetails & AddDetails(DetailedError &&value)
Definition: ErrorDetails.h:153
Aws::IoTSiteWise::Model::ErrorDetails::GetDetails
const Aws::Vector< DetailedError > & GetDetails() const
Definition: ErrorDetails.h:118
Aws::IoTSiteWise::Model::DetailedError
Definition: DetailedError.h:33
Aws::IoTSiteWise::Model::ErrorDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::ErrorDetails::SetMessage
void SetMessage(const char *value)
Definition: ErrorDetails.h:97
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:102
Aws::IoTSiteWise::Model::ErrorDetails::SetDetails
void SetDetails(Aws::Vector< DetailedError > &&value)
Definition: ErrorDetails.h:133
Aws::IoTSiteWise::Model::ErrorDetails::AddDetails
ErrorDetails & AddDetails(const DetailedError &value)
Definition: ErrorDetails.h:148
Aws::IoTSiteWise::Model::ErrorDetails::SetCode
void SetCode(ErrorCode &&value)
Definition: ErrorDetails.h:61