AWS SDK for C++  1.9.108
AWS SDK for C++
ServiceError.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetServiceErrorId() const{ return m_serviceErrorId; }
44 
48  inline bool ServiceErrorIdHasBeenSet() const { return m_serviceErrorIdHasBeenSet; }
49 
53  inline void SetServiceErrorId(const Aws::String& value) { m_serviceErrorIdHasBeenSet = true; m_serviceErrorId = value; }
54 
58  inline void SetServiceErrorId(Aws::String&& value) { m_serviceErrorIdHasBeenSet = true; m_serviceErrorId = std::move(value); }
59 
63  inline void SetServiceErrorId(const char* value) { m_serviceErrorIdHasBeenSet = true; m_serviceErrorId.assign(value); }
64 
68  inline ServiceError& WithServiceErrorId(const Aws::String& value) { SetServiceErrorId(value); return *this;}
69 
73  inline ServiceError& WithServiceErrorId(Aws::String&& value) { SetServiceErrorId(std::move(value)); return *this;}
74 
78  inline ServiceError& WithServiceErrorId(const char* value) { SetServiceErrorId(value); return *this;}
79 
80 
84  inline const Aws::String& GetStackId() const{ return m_stackId; }
85 
89  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
90 
94  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
95 
99  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
100 
104  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
105 
109  inline ServiceError& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
110 
114  inline ServiceError& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
115 
119  inline ServiceError& WithStackId(const char* value) { SetStackId(value); return *this;}
120 
121 
125  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
126 
130  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
131 
135  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
136 
140  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
141 
145  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
146 
150  inline ServiceError& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
151 
155  inline ServiceError& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
156 
160  inline ServiceError& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
161 
162 
166  inline const Aws::String& GetType() const{ return m_type; }
167 
171  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
172 
176  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
177 
181  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
182 
186  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
187 
191  inline ServiceError& WithType(const Aws::String& value) { SetType(value); return *this;}
192 
196  inline ServiceError& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
197 
201  inline ServiceError& WithType(const char* value) { SetType(value); return *this;}
202 
203 
207  inline const Aws::String& GetMessage() const{ return m_message; }
208 
212  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
213 
217  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
218 
222  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
223 
227  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
228 
232  inline ServiceError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
233 
237  inline ServiceError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
238 
242  inline ServiceError& WithMessage(const char* value) { SetMessage(value); return *this;}
243 
244 
248  inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
249 
253  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
254 
258  inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
259 
263  inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
264 
268  inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
269 
273  inline ServiceError& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
274 
278  inline ServiceError& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
279 
283  inline ServiceError& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
284 
285  private:
286 
287  Aws::String m_serviceErrorId;
288  bool m_serviceErrorIdHasBeenSet;
289 
290  Aws::String m_stackId;
291  bool m_stackIdHasBeenSet;
292 
293  Aws::String m_instanceId;
294  bool m_instanceIdHasBeenSet;
295 
296  Aws::String m_type;
297  bool m_typeHasBeenSet;
298 
299  Aws::String m_message;
300  bool m_messageHasBeenSet;
301 
302  Aws::String m_createdAt;
303  bool m_createdAtHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace OpsWorks
308 } // namespace Aws
Aws::OpsWorks::Model::ServiceError::WithMessage
ServiceError & WithMessage(const char *value)
Definition: ServiceError.h:242
Aws::OpsWorks::Model::ServiceError::SetMessage
void SetMessage(Aws::String &&value)
Definition: ServiceError.h:222
Aws::OpsWorks::Model::ServiceError::WithServiceErrorId
ServiceError & WithServiceErrorId(const char *value)
Definition: ServiceError.h:78
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::ServiceError::SetServiceErrorId
void SetServiceErrorId(Aws::String &&value)
Definition: ServiceError.h:58
Aws::OpsWorks::Model::ServiceError::SetStackId
void SetStackId(const Aws::String &value)
Definition: ServiceError.h:94
Aws::OpsWorks::Model::ServiceError::operator=
ServiceError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::ServiceError::GetServiceErrorId
const Aws::String & GetServiceErrorId() const
Definition: ServiceError.h:43
Aws::OpsWorks::Model::ServiceError::WithServiceErrorId
ServiceError & WithServiceErrorId(Aws::String &&value)
Definition: ServiceError.h:73
Aws::OpsWorks::Model::ServiceError::SetStackId
void SetStackId(Aws::String &&value)
Definition: ServiceError.h:99
Aws::OpsWorks::Model::ServiceError::GetType
const Aws::String & GetType() const
Definition: ServiceError.h:166
Aws::OpsWorks::Model::ServiceError::SetServiceErrorId
void SetServiceErrorId(const char *value)
Definition: ServiceError.h:63
Aws::OpsWorks::Model::ServiceError::SetCreatedAt
void SetCreatedAt(const Aws::String &value)
Definition: ServiceError.h:258
Aws::OpsWorks::Model::ServiceError::ServiceError
ServiceError()
Aws::OpsWorks::Model::ServiceError::SetCreatedAt
void SetCreatedAt(const char *value)
Definition: ServiceError.h:268
Aws::OpsWorks::Model::ServiceError::WithMessage
ServiceError & WithMessage(Aws::String &&value)
Definition: ServiceError.h:237
Aws::OpsWorks::Model::ServiceError::WithMessage
ServiceError & WithMessage(const Aws::String &value)
Definition: ServiceError.h:232
Aws::OpsWorks::Model::ServiceError::GetCreatedAt
const Aws::String & GetCreatedAt() const
Definition: ServiceError.h:248
Aws::OpsWorks::Model::ServiceError::WithStackId
ServiceError & WithStackId(const Aws::String &value)
Definition: ServiceError.h:109
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::ServiceError::WithType
ServiceError & WithType(const Aws::String &value)
Definition: ServiceError.h:191
Aws::OpsWorks::Model::ServiceError::ServiceErrorIdHasBeenSet
bool ServiceErrorIdHasBeenSet() const
Definition: ServiceError.h:48
Aws::OpsWorks::Model::ServiceError::SetInstanceId
void SetInstanceId(const char *value)
Definition: ServiceError.h:145
Aws::OpsWorks::Model::ServiceError::WithStackId
ServiceError & WithStackId(Aws::String &&value)
Definition: ServiceError.h:114
Aws::OpsWorks::Model::ServiceError::SetServiceErrorId
void SetServiceErrorId(const Aws::String &value)
Definition: ServiceError.h:53
Aws::OpsWorks::Model::ServiceError::WithInstanceId
ServiceError & WithInstanceId(Aws::String &&value)
Definition: ServiceError.h:155
Aws::OpsWorks::Model::ServiceError::SetMessage
void SetMessage(const Aws::String &value)
Definition: ServiceError.h:217
Aws::OpsWorks::Model::ServiceError::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: ServiceError.h:89
Aws::OpsWorks::Model::ServiceError::GetMessage
const Aws::String & GetMessage() const
Definition: ServiceError.h:207
Aws::OpsWorks::Model::ServiceError::SetType
void SetType(const char *value)
Definition: ServiceError.h:186
Aws::OpsWorks::Model::ServiceError::SetCreatedAt
void SetCreatedAt(Aws::String &&value)
Definition: ServiceError.h:263
Aws::OpsWorks::Model::ServiceError::SetStackId
void SetStackId(const char *value)
Definition: ServiceError.h:104
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::ServiceError::WithServiceErrorId
ServiceError & WithServiceErrorId(const Aws::String &value)
Definition: ServiceError.h:68
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::ServiceError::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ServiceError.h:253
Aws::OpsWorks::Model::ServiceError::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ServiceError.h:140
Aws::OpsWorks::Model::ServiceError::WithInstanceId
ServiceError & WithInstanceId(const char *value)
Definition: ServiceError.h:160
Aws::OpsWorks::Model::ServiceError::WithCreatedAt
ServiceError & WithCreatedAt(const char *value)
Definition: ServiceError.h:283
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::ServiceError::WithCreatedAt
ServiceError & WithCreatedAt(Aws::String &&value)
Definition: ServiceError.h:278
Aws::OpsWorks::Model::ServiceError::SetMessage
void SetMessage(const char *value)
Definition: ServiceError.h:227
Aws::OpsWorks::Model::ServiceError::WithType
ServiceError & WithType(const char *value)
Definition: ServiceError.h:201
Aws::OpsWorks::Model::ServiceError::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ServiceError.h:130
Aws::OpsWorks::Model::ServiceError::SetType
void SetType(const Aws::String &value)
Definition: ServiceError.h:176
Aws::OpsWorks::Model::ServiceError::WithInstanceId
ServiceError & WithInstanceId(const Aws::String &value)
Definition: ServiceError.h:150
Aws::OpsWorks::Model::ServiceError
Definition: ServiceError.h:32
Aws::OpsWorks::Model::ServiceError::SetType
void SetType(Aws::String &&value)
Definition: ServiceError.h:181
Aws::OpsWorks::Model::ServiceError::WithCreatedAt
ServiceError & WithCreatedAt(const Aws::String &value)
Definition: ServiceError.h:273
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::ServiceError::ServiceError
ServiceError(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::ServiceError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ServiceError.h:212
Aws::OpsWorks::Model::ServiceError::WithType
ServiceError & WithType(Aws::String &&value)
Definition: ServiceError.h:196
Aws::OpsWorks::Model::ServiceError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::ServiceError::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ServiceError.h:171
Aws::OpsWorks::Model::ServiceError::WithStackId
ServiceError & WithStackId(const char *value)
Definition: ServiceError.h:119
Aws::OpsWorks::Model::ServiceError::GetStackId
const Aws::String & GetStackId() const
Definition: ServiceError.h:84
Aws::OpsWorks::Model::ServiceError::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ServiceError.h:135
Aws::OpsWorks::Model::ServiceError::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ServiceError.h:125