AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
24 AWS_SFN_API SendTaskFailureRequest() = default;
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 template<typename TaskTokenT = Aws::String>
48 void SetTaskToken(TaskTokenT&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::forward<TaskTokenT>(value); }
49 template<typename TaskTokenT = Aws::String>
50 SendTaskFailureRequest& WithTaskToken(TaskTokenT&& value) { SetTaskToken(std::forward<TaskTokenT>(value)); return *this;}
52
54
57 inline const Aws::String& GetError() const { return m_error; }
58 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
59 template<typename ErrorT = Aws::String>
60 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
61 template<typename ErrorT = Aws::String>
62 SendTaskFailureRequest& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
64
66
69 inline const Aws::String& GetCause() const { return m_cause; }
70 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
71 template<typename CauseT = Aws::String>
72 void SetCause(CauseT&& value) { m_causeHasBeenSet = true; m_cause = std::forward<CauseT>(value); }
73 template<typename CauseT = Aws::String>
74 SendTaskFailureRequest& WithCause(CauseT&& value) { SetCause(std::forward<CauseT>(value)); return *this;}
76 private:
77
78 Aws::String m_taskToken;
79 bool m_taskTokenHasBeenSet = false;
80
81 Aws::String m_error;
82 bool m_errorHasBeenSet = false;
83
84 Aws::String m_cause;
85 bool m_causeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SFN
90} // 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