AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetExecutionArn(const Aws::String& value) { m_executionArnHasBeenSet = true; m_executionArn = value; }
44 inline void SetExecutionArn(Aws::String&& value) { m_executionArnHasBeenSet = true; m_executionArn = std::move(value); }
45 inline void SetExecutionArn(const char* value) { m_executionArnHasBeenSet = true; m_executionArn.assign(value); }
46 inline StopExecutionRequest& WithExecutionArn(const Aws::String& value) { SetExecutionArn(value); return *this;}
47 inline StopExecutionRequest& WithExecutionArn(Aws::String&& value) { SetExecutionArn(std::move(value)); return *this;}
48 inline StopExecutionRequest& WithExecutionArn(const char* value) { SetExecutionArn(value); return *this;}
50
52
55 inline const Aws::String& GetError() const{ return m_error; }
56 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
57 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
58 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
59 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
60 inline StopExecutionRequest& WithError(const Aws::String& value) { SetError(value); return *this;}
61 inline StopExecutionRequest& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
62 inline StopExecutionRequest& WithError(const char* value) { SetError(value); return *this;}
64
66
69 inline const Aws::String& GetCause() const{ return m_cause; }
70 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
71 inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
72 inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
73 inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
74 inline StopExecutionRequest& WithCause(const Aws::String& value) { SetCause(value); return *this;}
75 inline StopExecutionRequest& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
76 inline StopExecutionRequest& WithCause(const char* value) { SetCause(value); return *this;}
78 private:
79
80 Aws::String m_executionArn;
81 bool m_executionArnHasBeenSet = false;
82
83 Aws::String m_error;
84 bool m_errorHasBeenSet = false;
85
86 Aws::String m_cause;
87 bool m_causeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SFN
92} // namespace Aws
void SetCause(const Aws::String &value)
StopExecutionRequest & WithError(const Aws::String &value)
StopExecutionRequest & WithCause(const Aws::String &value)
StopExecutionRequest & WithExecutionArn(const Aws::String &value)
StopExecutionRequest & WithError(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
StopExecutionRequest & WithCause(const char *value)
StopExecutionRequest & WithCause(Aws::String &&value)
void SetError(const Aws::String &value)
AWS_SFN_API Aws::String SerializePayload() const override
StopExecutionRequest & WithExecutionArn(const char *value)
void SetExecutionArn(const Aws::String &value)
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StopExecutionRequest & WithError(const char *value)
const Aws::String & GetExecutionArn() const
StopExecutionRequest & WithExecutionArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String