AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendTaskFailureRequest.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/states/SFNRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SFN
15{
16namespace 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_SFN_API Aws::String SerializePayload() const override;
33
35
36
38
45 inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
46 inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
47 inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; }
48 inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); }
49 inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); }
50 inline SendTaskFailureRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
51 inline SendTaskFailureRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
52 inline SendTaskFailureRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
54
56
59 inline const Aws::String& GetError() const{ return m_error; }
60 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
61 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
62 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
63 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
64 inline SendTaskFailureRequest& WithError(const Aws::String& value) { SetError(value); return *this;}
65 inline SendTaskFailureRequest& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
66 inline SendTaskFailureRequest& WithError(const char* value) { SetError(value); return *this;}
68
70
73 inline const Aws::String& GetCause() const{ return m_cause; }
74 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
75 inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
76 inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
77 inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
78 inline SendTaskFailureRequest& WithCause(const Aws::String& value) { SetCause(value); return *this;}
79 inline SendTaskFailureRequest& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
80 inline SendTaskFailureRequest& WithCause(const char* value) { SetCause(value); return *this;}
82 private:
83
84 Aws::String m_taskToken;
85 bool m_taskTokenHasBeenSet = false;
86
87 Aws::String m_error;
88 bool m_errorHasBeenSet = false;
89
90 Aws::String m_cause;
91 bool m_causeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SFN
96} // namespace Aws
SendTaskFailureRequest & WithTaskToken(const char *value)
SendTaskFailureRequest & WithCause(Aws::String &&value)
AWS_SFN_API Aws::String SerializePayload() const override
void SetTaskToken(const Aws::String &value)
SendTaskFailureRequest & WithError(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
SendTaskFailureRequest & WithTaskToken(const Aws::String &value)
SendTaskFailureRequest & WithError(const char *value)
SendTaskFailureRequest & WithCause(const Aws::String &value)
SendTaskFailureRequest & WithCause(const char *value)
SendTaskFailureRequest & WithTaskToken(Aws::String &&value)
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendTaskFailureRequest & WithError(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String