AWS SDK for C++  1.9.104
AWS SDK for C++
TaskSubmitFailedEventDetails.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 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
45 
49  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 
54  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
55 
59  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
60 
64  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
65 
69  inline TaskSubmitFailedEventDetails& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
70 
74  inline TaskSubmitFailedEventDetails& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
75 
79  inline TaskSubmitFailedEventDetails& WithResourceType(const char* value) { SetResourceType(value); return *this;}
80 
81 
85  inline const Aws::String& GetResource() const{ return m_resource; }
86 
90  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
91 
95  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
96 
100  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
101 
105  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
106 
110  inline TaskSubmitFailedEventDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;}
111 
115  inline TaskSubmitFailedEventDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
116 
120  inline TaskSubmitFailedEventDetails& WithResource(const char* value) { SetResource(value); return *this;}
121 
122 
126  inline const Aws::String& GetError() const{ return m_error; }
127 
131  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
132 
136  inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
137 
141  inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
142 
146  inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
147 
151  inline TaskSubmitFailedEventDetails& WithError(const Aws::String& value) { SetError(value); return *this;}
152 
156  inline TaskSubmitFailedEventDetails& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
157 
161  inline TaskSubmitFailedEventDetails& WithError(const char* value) { SetError(value); return *this;}
162 
163 
167  inline const Aws::String& GetCause() const{ return m_cause; }
168 
172  inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
173 
177  inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
178 
182  inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
183 
187  inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
188 
192  inline TaskSubmitFailedEventDetails& WithCause(const Aws::String& value) { SetCause(value); return *this;}
193 
197  inline TaskSubmitFailedEventDetails& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
198 
202  inline TaskSubmitFailedEventDetails& WithCause(const char* value) { SetCause(value); return *this;}
203 
204  private:
205 
206  Aws::String m_resourceType;
207  bool m_resourceTypeHasBeenSet;
208 
209  Aws::String m_resource;
210  bool m_resourceHasBeenSet;
211 
212  Aws::String m_error;
213  bool m_errorHasBeenSet;
214 
215  Aws::String m_cause;
216  bool m_causeHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace SFN
221 } // namespace Aws
Aws::SFN::Model::TaskSubmitFailedEventDetails::GetResourceType
const Aws::String & GetResourceType() const
Definition: TaskSubmitFailedEventDetails.h:44
Aws::SFN::Model::TaskSubmitFailedEventDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetCause
void SetCause(const char *value)
Definition: TaskSubmitFailedEventDetails.h:187
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetError
void SetError(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:141
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithError
TaskSubmitFailedEventDetails & WithError(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:151
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetCause
void SetCause(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:182
Aws::SFN::Model::TaskSubmitFailedEventDetails::operator=
TaskSubmitFailedEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithResource
TaskSubmitFailedEventDetails & WithResource(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:110
Aws::SFN::Model::TaskSubmitFailedEventDetails::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: TaskSubmitFailedEventDetails.h:131
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithError
TaskSubmitFailedEventDetails & WithError(const char *value)
Definition: TaskSubmitFailedEventDetails.h:161
Aws::SFN::Model::TaskSubmitFailedEventDetails::GetError
const Aws::String & GetError() const
Definition: TaskSubmitFailedEventDetails.h:126
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetResource
void SetResource(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:100
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithResourceType
TaskSubmitFailedEventDetails & WithResourceType(const char *value)
Definition: TaskSubmitFailedEventDetails.h:79
SFN_EXPORTS.h
Aws::SFN::Model::TaskSubmitFailedEventDetails::CauseHasBeenSet
bool CauseHasBeenSet() const
Definition: TaskSubmitFailedEventDetails.h:172
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetCause
void SetCause(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:177
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithCause
TaskSubmitFailedEventDetails & WithCause(const char *value)
Definition: TaskSubmitFailedEventDetails.h:202
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetResource
void SetResource(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:95
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SFN::Model::TaskSubmitFailedEventDetails
Definition: TaskSubmitFailedEventDetails.h:33
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithResource
TaskSubmitFailedEventDetails & WithResource(const char *value)
Definition: TaskSubmitFailedEventDetails.h:120
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetError
void SetError(const char *value)
Definition: TaskSubmitFailedEventDetails.h:146
Aws::SFN::Model::TaskSubmitFailedEventDetails::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TaskSubmitFailedEventDetails.h:49
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithResourceType
TaskSubmitFailedEventDetails & WithResourceType(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:74
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetResource
void SetResource(const char *value)
Definition: TaskSubmitFailedEventDetails.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::TaskSubmitFailedEventDetails::GetResource
const Aws::String & GetResource() const
Definition: TaskSubmitFailedEventDetails.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithCause
TaskSubmitFailedEventDetails & WithCause(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:192
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetResourceType
void SetResourceType(const char *value)
Definition: TaskSubmitFailedEventDetails.h:64
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithResourceType
TaskSubmitFailedEventDetails & WithResourceType(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:69
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithResource
TaskSubmitFailedEventDetails & WithResource(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:115
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetError
void SetError(const Aws::String &value)
Definition: TaskSubmitFailedEventDetails.h:136
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithError
TaskSubmitFailedEventDetails & WithError(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:156
Aws::SFN::Model::TaskSubmitFailedEventDetails::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:59
Aws::SFN::Model::TaskSubmitFailedEventDetails::WithCause
TaskSubmitFailedEventDetails & WithCause(Aws::String &&value)
Definition: TaskSubmitFailedEventDetails.h:197
Aws::SFN::Model::TaskSubmitFailedEventDetails::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: TaskSubmitFailedEventDetails.h:90
Aws::SFN::Model::TaskSubmitFailedEventDetails::TaskSubmitFailedEventDetails
TaskSubmitFailedEventDetails()
Aws::SFN::Model::TaskSubmitFailedEventDetails::TaskSubmitFailedEventDetails
TaskSubmitFailedEventDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::TaskSubmitFailedEventDetails::GetCause
const Aws::String & GetCause() const
Definition: TaskSubmitFailedEventDetails.h:167