AWS SDK for C++  1.9.104
AWS SDK for C++
TaskFailedEventDetails.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 SFN
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
44 
48  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
49 
53  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
54 
58  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
59 
63  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
64 
68  inline TaskFailedEventDetails& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
69 
73  inline TaskFailedEventDetails& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
74 
78  inline TaskFailedEventDetails& WithResourceType(const char* value) { SetResourceType(value); return *this;}
79 
80 
84  inline const Aws::String& GetResource() const{ return m_resource; }
85 
89  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
90 
94  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
95 
99  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
100 
104  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
105 
109  inline TaskFailedEventDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;}
110 
114  inline TaskFailedEventDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
115 
119  inline TaskFailedEventDetails& WithResource(const char* value) { SetResource(value); return *this;}
120 
121 
125  inline const Aws::String& GetError() const{ return m_error; }
126 
130  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
131 
135  inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
136 
140  inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
141 
145  inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
146 
150  inline TaskFailedEventDetails& WithError(const Aws::String& value) { SetError(value); return *this;}
151 
155  inline TaskFailedEventDetails& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
156 
160  inline TaskFailedEventDetails& WithError(const char* value) { SetError(value); return *this;}
161 
162 
166  inline const Aws::String& GetCause() const{ return m_cause; }
167 
171  inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
172 
176  inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
177 
181  inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
182 
186  inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
187 
191  inline TaskFailedEventDetails& WithCause(const Aws::String& value) { SetCause(value); return *this;}
192 
196  inline TaskFailedEventDetails& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
197 
201  inline TaskFailedEventDetails& WithCause(const char* value) { SetCause(value); return *this;}
202 
203  private:
204 
205  Aws::String m_resourceType;
206  bool m_resourceTypeHasBeenSet;
207 
208  Aws::String m_resource;
209  bool m_resourceHasBeenSet;
210 
211  Aws::String m_error;
212  bool m_errorHasBeenSet;
213 
214  Aws::String m_cause;
215  bool m_causeHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace SFN
220 } // namespace Aws
Aws::SFN::Model::TaskFailedEventDetails::WithError
TaskFailedEventDetails & WithError(Aws::String &&value)
Definition: TaskFailedEventDetails.h:155
Aws::SFN::Model::TaskFailedEventDetails::WithResourceType
TaskFailedEventDetails & WithResourceType(const char *value)
Definition: TaskFailedEventDetails.h:78
Aws::SFN::Model::TaskFailedEventDetails::WithResourceType
TaskFailedEventDetails & WithResourceType(const Aws::String &value)
Definition: TaskFailedEventDetails.h:68
Aws::SFN::Model::TaskFailedEventDetails::SetError
void SetError(Aws::String &&value)
Definition: TaskFailedEventDetails.h:140
Aws::SFN::Model::TaskFailedEventDetails::operator=
TaskFailedEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::TaskFailedEventDetails::TaskFailedEventDetails
TaskFailedEventDetails()
Aws::SFN::Model::TaskFailedEventDetails::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: TaskFailedEventDetails.h:130
Aws::SFN::Model::TaskFailedEventDetails::SetError
void SetError(const char *value)
Definition: TaskFailedEventDetails.h:145
Aws::SFN::Model::TaskFailedEventDetails::GetCause
const Aws::String & GetCause() const
Definition: TaskFailedEventDetails.h:166
Aws::SFN::Model::TaskFailedEventDetails::WithError
TaskFailedEventDetails & WithError(const char *value)
Definition: TaskFailedEventDetails.h:160
Aws::SFN::Model::TaskFailedEventDetails::WithCause
TaskFailedEventDetails & WithCause(Aws::String &&value)
Definition: TaskFailedEventDetails.h:196
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::TaskFailedEventDetails::WithCause
TaskFailedEventDetails & WithCause(const char *value)
Definition: TaskFailedEventDetails.h:201
SFN_EXPORTS.h
Aws::SFN::Model::TaskFailedEventDetails::SetCause
void SetCause(Aws::String &&value)
Definition: TaskFailedEventDetails.h:181
Aws::SFN::Model::TaskFailedEventDetails::SetResourceType
void SetResourceType(const char *value)
Definition: TaskFailedEventDetails.h:63
Aws::SFN::Model::TaskFailedEventDetails::WithResource
TaskFailedEventDetails & WithResource(const Aws::String &value)
Definition: TaskFailedEventDetails.h:109
Aws::SFN::Model::TaskFailedEventDetails::GetResourceType
const Aws::String & GetResourceType() const
Definition: TaskFailedEventDetails.h:43
Aws::SFN::Model::TaskFailedEventDetails::GetResource
const Aws::String & GetResource() const
Definition: TaskFailedEventDetails.h:84
Aws::SFN::Model::TaskFailedEventDetails::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: TaskFailedEventDetails.h:53
Aws::SFN::Model::TaskFailedEventDetails::TaskFailedEventDetails
TaskFailedEventDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::TaskFailedEventDetails::SetCause
void SetCause(const Aws::String &value)
Definition: TaskFailedEventDetails.h:176
Aws::SFN::Model::TaskFailedEventDetails::WithResource
TaskFailedEventDetails & WithResource(const char *value)
Definition: TaskFailedEventDetails.h:119
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SFN::Model::TaskFailedEventDetails::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TaskFailedEventDetails.h:48
Aws::SFN::Model::TaskFailedEventDetails::CauseHasBeenSet
bool CauseHasBeenSet() const
Definition: TaskFailedEventDetails.h:171
Aws::SFN::Model::TaskFailedEventDetails::GetError
const Aws::String & GetError() const
Definition: TaskFailedEventDetails.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::TaskFailedEventDetails::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: TaskFailedEventDetails.h:89
Aws::SFN::Model::TaskFailedEventDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SFN::Model::TaskFailedEventDetails::WithResource
TaskFailedEventDetails & WithResource(Aws::String &&value)
Definition: TaskFailedEventDetails.h:114
Aws::SFN::Model::TaskFailedEventDetails::SetError
void SetError(const Aws::String &value)
Definition: TaskFailedEventDetails.h:135
Aws::SFN::Model::TaskFailedEventDetails::WithResourceType
TaskFailedEventDetails & WithResourceType(Aws::String &&value)
Definition: TaskFailedEventDetails.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::TaskFailedEventDetails::SetCause
void SetCause(const char *value)
Definition: TaskFailedEventDetails.h:186
Aws::SFN::Model::TaskFailedEventDetails::WithCause
TaskFailedEventDetails & WithCause(const Aws::String &value)
Definition: TaskFailedEventDetails.h:191
Aws::SFN::Model::TaskFailedEventDetails
Definition: TaskFailedEventDetails.h:32
Aws::SFN::Model::TaskFailedEventDetails::SetResource
void SetResource(const Aws::String &value)
Definition: TaskFailedEventDetails.h:94
Aws::SFN::Model::TaskFailedEventDetails::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: TaskFailedEventDetails.h:58
Aws::SFN::Model::TaskFailedEventDetails::SetResource
void SetResource(Aws::String &&value)
Definition: TaskFailedEventDetails.h:99
Aws::SFN::Model::TaskFailedEventDetails::WithError
TaskFailedEventDetails & WithError(const Aws::String &value)
Definition: TaskFailedEventDetails.h:150
Aws::SFN::Model::TaskFailedEventDetails::SetResource
void SetResource(const char *value)
Definition: TaskFailedEventDetails.h:104