AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SendTaskFailureRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/states/SFNRequest.h>
9#include <aws/states/SFN_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SFN {
15namespace Model {
16
20 public:
21 AWS_SFN_API SendTaskFailureRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "SendTaskFailure"; }
28
29 AWS_SFN_API Aws::String SerializePayload() const override;
30
32
34
41 inline const Aws::String& GetTaskToken() const { return m_taskToken; }
42 inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
43 template <typename TaskTokenT = Aws::String>
44 void SetTaskToken(TaskTokenT&& value) {
45 m_taskTokenHasBeenSet = true;
46 m_taskToken = std::forward<TaskTokenT>(value);
47 }
48 template <typename TaskTokenT = Aws::String>
50 SetTaskToken(std::forward<TaskTokenT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetError() const { return m_error; }
60 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
61 template <typename ErrorT = Aws::String>
62 void SetError(ErrorT&& value) {
63 m_errorHasBeenSet = true;
64 m_error = std::forward<ErrorT>(value);
65 }
66 template <typename ErrorT = Aws::String>
68 SetError(std::forward<ErrorT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCause() const { return m_cause; }
78 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
79 template <typename CauseT = Aws::String>
80 void SetCause(CauseT&& value) {
81 m_causeHasBeenSet = true;
82 m_cause = std::forward<CauseT>(value);
83 }
84 template <typename CauseT = Aws::String>
86 SetCause(std::forward<CauseT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_taskToken;
92
93 Aws::String m_error;
94
95 Aws::String m_cause;
96 bool m_taskTokenHasBeenSet = false;
97 bool m_errorHasBeenSet = false;
98 bool m_causeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SFN
103} // namespace Aws
AWS_SFN_API Aws::String SerializePayload() const override
SendTaskFailureRequest & WithError(ErrorT &&value)
SendTaskFailureRequest & WithTaskToken(TaskTokenT &&value)
SendTaskFailureRequest & WithCause(CauseT &&value)
AWS_SFN_API SendTaskFailureRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String