AWS SDK for C++  1.9.104
AWS SDK for C++
SendTaskFailureRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SFN
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "SendTaskFailure"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
44  inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
45 
53  inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
54 
62  inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; }
63 
71  inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); }
72 
80  inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); }
81 
89  inline SendTaskFailureRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
90 
98  inline SendTaskFailureRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
99 
107  inline SendTaskFailureRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
108 
109 
113  inline const Aws::String& GetError() const{ return m_error; }
114 
118  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
119 
123  inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
124 
128  inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
129 
133  inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
134 
138  inline SendTaskFailureRequest& WithError(const Aws::String& value) { SetError(value); return *this;}
139 
143  inline SendTaskFailureRequest& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
144 
148  inline SendTaskFailureRequest& WithError(const char* value) { SetError(value); return *this;}
149 
150 
154  inline const Aws::String& GetCause() const{ return m_cause; }
155 
159  inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
160 
164  inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
165 
169  inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
170 
174  inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
175 
179  inline SendTaskFailureRequest& WithCause(const Aws::String& value) { SetCause(value); return *this;}
180 
184  inline SendTaskFailureRequest& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
185 
189  inline SendTaskFailureRequest& WithCause(const char* value) { SetCause(value); return *this;}
190 
191  private:
192 
193  Aws::String m_taskToken;
194  bool m_taskTokenHasBeenSet;
195 
196  Aws::String m_error;
197  bool m_errorHasBeenSet;
198 
199  Aws::String m_cause;
200  bool m_causeHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace SFN
205 } // namespace Aws
Aws::SFN::Model::SendTaskFailureRequest::GetTaskToken
const Aws::String & GetTaskToken() const
Definition: SendTaskFailureRequest.h:44
Aws::SFN::Model::SendTaskFailureRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendTaskFailureRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SFN::Model::SendTaskFailureRequest::SetCause
void SetCause(const char *value)
Definition: SendTaskFailureRequest.h:174
Aws::SFN::Model::SendTaskFailureRequest::SendTaskFailureRequest
SendTaskFailureRequest()
Aws::SFN::Model::SendTaskFailureRequest::WithError
SendTaskFailureRequest & WithError(const char *value)
Definition: SendTaskFailureRequest.h:148
Aws::SFN::Model::SendTaskFailureRequest::SetTaskToken
void SetTaskToken(Aws::String &&value)
Definition: SendTaskFailureRequest.h:71
Aws::SFN::SFNRequest
Definition: SFNRequest.h:17
Aws::SFN::Model::SendTaskFailureRequest::SetError
void SetError(const char *value)
Definition: SendTaskFailureRequest.h:133
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::SendTaskFailureRequest::SetCause
void SetCause(const Aws::String &value)
Definition: SendTaskFailureRequest.h:164
SFN_EXPORTS.h
Aws::SFN::Model::SendTaskFailureRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SFN::Model::SendTaskFailureRequest::WithCause
SendTaskFailureRequest & WithCause(const Aws::String &value)
Definition: SendTaskFailureRequest.h:179
Aws::SFN::Model::SendTaskFailureRequest::CauseHasBeenSet
bool CauseHasBeenSet() const
Definition: SendTaskFailureRequest.h:159
Aws::SFN::Model::SendTaskFailureRequest::WithTaskToken
SendTaskFailureRequest & WithTaskToken(Aws::String &&value)
Definition: SendTaskFailureRequest.h:98
Aws::SFN::Model::SendTaskFailureRequest::SetError
void SetError(Aws::String &&value)
Definition: SendTaskFailureRequest.h:128
SFNRequest.h
AWSString.h
Aws::SFN::Model::SendTaskFailureRequest
Definition: SendTaskFailureRequest.h:22
Aws::SFN::Model::SendTaskFailureRequest::SetCause
void SetCause(Aws::String &&value)
Definition: SendTaskFailureRequest.h:169
Aws::SFN::Model::SendTaskFailureRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SFN::Model::SendTaskFailureRequest::TaskTokenHasBeenSet
bool TaskTokenHasBeenSet() const
Definition: SendTaskFailureRequest.h:53
Aws::SFN::Model::SendTaskFailureRequest::WithTaskToken
SendTaskFailureRequest & WithTaskToken(const char *value)
Definition: SendTaskFailureRequest.h:107
Aws::SFN::Model::SendTaskFailureRequest::SetTaskToken
void SetTaskToken(const Aws::String &value)
Definition: SendTaskFailureRequest.h:62
Aws::SFN::Model::SendTaskFailureRequest::WithCause
SendTaskFailureRequest & WithCause(const char *value)
Definition: SendTaskFailureRequest.h:189
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::SendTaskFailureRequest::SetTaskToken
void SetTaskToken(const char *value)
Definition: SendTaskFailureRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::SendTaskFailureRequest::WithTaskToken
SendTaskFailureRequest & WithTaskToken(const Aws::String &value)
Definition: SendTaskFailureRequest.h:89
Aws::SFN::Model::SendTaskFailureRequest::SetError
void SetError(const Aws::String &value)
Definition: SendTaskFailureRequest.h:123
Aws::SFN::Model::SendTaskFailureRequest::WithError
SendTaskFailureRequest & WithError(Aws::String &&value)
Definition: SendTaskFailureRequest.h:143
Aws::SFN::Model::SendTaskFailureRequest::GetCause
const Aws::String & GetCause() const
Definition: SendTaskFailureRequest.h:154
Aws::SFN::Model::SendTaskFailureRequest::WithCause
SendTaskFailureRequest & WithCause(Aws::String &&value)
Definition: SendTaskFailureRequest.h:184
Aws::SFN::Model::SendTaskFailureRequest::GetError
const Aws::String & GetError() const
Definition: SendTaskFailureRequest.h:113
Aws::SFN::Model::SendTaskFailureRequest::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: SendTaskFailureRequest.h:118
Aws::SFN::Model::SendTaskFailureRequest::WithError
SendTaskFailureRequest & WithError(const Aws::String &value)
Definition: SendTaskFailureRequest.h:138