AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StopExecutionRequest.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 StopExecutionRequest() = 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 "StopExecution"; }
31
32 AWS_SFN_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetExecutionArn() const { return m_executionArn; }
42 inline bool ExecutionArnHasBeenSet() const { return m_executionArnHasBeenSet; }
43 template<typename ExecutionArnT = Aws::String>
44 void SetExecutionArn(ExecutionArnT&& value) { m_executionArnHasBeenSet = true; m_executionArn = std::forward<ExecutionArnT>(value); }
45 template<typename ExecutionArnT = Aws::String>
46 StopExecutionRequest& WithExecutionArn(ExecutionArnT&& value) { SetExecutionArn(std::forward<ExecutionArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetError() const { return m_error; }
54 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
55 template<typename ErrorT = Aws::String>
56 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
57 template<typename ErrorT = Aws::String>
58 StopExecutionRequest& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
60
62
65 inline const Aws::String& GetCause() const { return m_cause; }
66 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
67 template<typename CauseT = Aws::String>
68 void SetCause(CauseT&& value) { m_causeHasBeenSet = true; m_cause = std::forward<CauseT>(value); }
69 template<typename CauseT = Aws::String>
70 StopExecutionRequest& WithCause(CauseT&& value) { SetCause(std::forward<CauseT>(value)); return *this;}
72 private:
73
74 Aws::String m_executionArn;
75 bool m_executionArnHasBeenSet = false;
76
77 Aws::String m_error;
78 bool m_errorHasBeenSet = false;
79
80 Aws::String m_cause;
81 bool m_causeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace SFN
86} // 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