AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StopExecutionRequest.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 StopExecutionRequest() = 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 "StopExecution"; }
28
29 AWS_SFN_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetExecutionArn() const { return m_executionArn; }
38 inline bool ExecutionArnHasBeenSet() const { return m_executionArnHasBeenSet; }
39 template <typename ExecutionArnT = Aws::String>
40 void SetExecutionArn(ExecutionArnT&& value) {
41 m_executionArnHasBeenSet = true;
42 m_executionArn = std::forward<ExecutionArnT>(value);
43 }
44 template <typename ExecutionArnT = Aws::String>
45 StopExecutionRequest& WithExecutionArn(ExecutionArnT&& value) {
46 SetExecutionArn(std::forward<ExecutionArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetError() const { return m_error; }
56 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
57 template <typename ErrorT = Aws::String>
58 void SetError(ErrorT&& value) {
59 m_errorHasBeenSet = true;
60 m_error = std::forward<ErrorT>(value);
61 }
62 template <typename ErrorT = Aws::String>
64 SetError(std::forward<ErrorT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetCause() const { return m_cause; }
74 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
75 template <typename CauseT = Aws::String>
76 void SetCause(CauseT&& value) {
77 m_causeHasBeenSet = true;
78 m_cause = std::forward<CauseT>(value);
79 }
80 template <typename CauseT = Aws::String>
82 SetCause(std::forward<CauseT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_executionArn;
88
89 Aws::String m_error;
90
91 Aws::String m_cause;
92 bool m_executionArnHasBeenSet = false;
93 bool m_errorHasBeenSet = false;
94 bool m_causeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SFN
99} // namespace Aws
void SetExecutionArn(ExecutionArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SFN_API Aws::String SerializePayload() const override
StopExecutionRequest & WithExecutionArn(ExecutionArnT &&value)
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StopExecutionRequest & WithCause(CauseT &&value)
const Aws::String & GetExecutionArn() const
AWS_SFN_API StopExecutionRequest()=default
StopExecutionRequest & WithError(ErrorT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String