AWS SDK for C++  1.9.104
AWS SDK for C++
StopExecutionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SFN
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetExecutionArn() const{ return m_executionArn; }
41 
45  inline bool ExecutionArnHasBeenSet() const { return m_executionArnHasBeenSet; }
46 
50  inline void SetExecutionArn(const Aws::String& value) { m_executionArnHasBeenSet = true; m_executionArn = value; }
51 
55  inline void SetExecutionArn(Aws::String&& value) { m_executionArnHasBeenSet = true; m_executionArn = std::move(value); }
56 
60  inline void SetExecutionArn(const char* value) { m_executionArnHasBeenSet = true; m_executionArn.assign(value); }
61 
65  inline StopExecutionRequest& WithExecutionArn(const Aws::String& value) { SetExecutionArn(value); return *this;}
66 
70  inline StopExecutionRequest& WithExecutionArn(Aws::String&& value) { SetExecutionArn(std::move(value)); return *this;}
71 
75  inline StopExecutionRequest& WithExecutionArn(const char* value) { SetExecutionArn(value); return *this;}
76 
77 
81  inline const Aws::String& GetError() const{ return m_error; }
82 
86  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
87 
91  inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
92 
96  inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
97 
101  inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
102 
106  inline StopExecutionRequest& WithError(const Aws::String& value) { SetError(value); return *this;}
107 
111  inline StopExecutionRequest& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
112 
116  inline StopExecutionRequest& WithError(const char* value) { SetError(value); return *this;}
117 
118 
122  inline const Aws::String& GetCause() const{ return m_cause; }
123 
127  inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
128 
132  inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
133 
137  inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
138 
142  inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
143 
147  inline StopExecutionRequest& WithCause(const Aws::String& value) { SetCause(value); return *this;}
148 
152  inline StopExecutionRequest& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
153 
157  inline StopExecutionRequest& WithCause(const char* value) { SetCause(value); return *this;}
158 
159  private:
160 
161  Aws::String m_executionArn;
162  bool m_executionArnHasBeenSet;
163 
164  Aws::String m_error;
165  bool m_errorHasBeenSet;
166 
167  Aws::String m_cause;
168  bool m_causeHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace SFN
173 } // namespace Aws
Aws::SFN::Model::StopExecutionRequest::SetCause
void SetCause(Aws::String &&value)
Definition: StopExecutionRequest.h:137
Aws::SFN::Model::StopExecutionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SFN::Model::StopExecutionRequest::SetCause
void SetCause(const Aws::String &value)
Definition: StopExecutionRequest.h:132
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SFN::Model::StopExecutionRequest::GetError
const Aws::String & GetError() const
Definition: StopExecutionRequest.h:81
Aws::SFN::Model::StopExecutionRequest::WithError
StopExecutionRequest & WithError(const char *value)
Definition: StopExecutionRequest.h:116
Aws::SFN::Model::StopExecutionRequest::GetExecutionArn
const Aws::String & GetExecutionArn() const
Definition: StopExecutionRequest.h:40
Aws::SFN::Model::StopExecutionRequest::SetError
void SetError(Aws::String &&value)
Definition: StopExecutionRequest.h:96
Aws::SFN::SFNRequest
Definition: SFNRequest.h:17
Aws::SFN::Model::StopExecutionRequest::SetExecutionArn
void SetExecutionArn(const char *value)
Definition: StopExecutionRequest.h:60
Aws::SFN::Model::StopExecutionRequest::StopExecutionRequest
StopExecutionRequest()
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::StopExecutionRequest::SetError
void SetError(const char *value)
Definition: StopExecutionRequest.h:101
Aws::SFN::Model::StopExecutionRequest::WithExecutionArn
StopExecutionRequest & WithExecutionArn(const char *value)
Definition: StopExecutionRequest.h:75
SFN_EXPORTS.h
Aws::SFN::Model::StopExecutionRequest::WithExecutionArn
StopExecutionRequest & WithExecutionArn(Aws::String &&value)
Definition: StopExecutionRequest.h:70
Aws::SFN::Model::StopExecutionRequest::WithCause
StopExecutionRequest & WithCause(const char *value)
Definition: StopExecutionRequest.h:157
Aws::SFN::Model::StopExecutionRequest::CauseHasBeenSet
bool CauseHasBeenSet() const
Definition: StopExecutionRequest.h:127
Aws::SFN::Model::StopExecutionRequest::SetError
void SetError(const Aws::String &value)
Definition: StopExecutionRequest.h:91
Aws::SFN::Model::StopExecutionRequest
Definition: StopExecutionRequest.h:22
Aws::SFN::Model::StopExecutionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SFN::Model::StopExecutionRequest::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: StopExecutionRequest.h:86
SFNRequest.h
AWSString.h
Aws::SFN::Model::StopExecutionRequest::GetCause
const Aws::String & GetCause() const
Definition: StopExecutionRequest.h:122
Aws::SFN::Model::StopExecutionRequest::SetCause
void SetCause(const char *value)
Definition: StopExecutionRequest.h:142
Aws::SFN::Model::StopExecutionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopExecutionRequest.h:30
Aws::SFN::Model::StopExecutionRequest::WithError
StopExecutionRequest & WithError(const Aws::String &value)
Definition: StopExecutionRequest.h:106
Aws::SFN::Model::StopExecutionRequest::WithExecutionArn
StopExecutionRequest & WithExecutionArn(const Aws::String &value)
Definition: StopExecutionRequest.h:65
Aws::SFN::Model::StopExecutionRequest::WithError
StopExecutionRequest & WithError(Aws::String &&value)
Definition: StopExecutionRequest.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::StopExecutionRequest::WithCause
StopExecutionRequest & WithCause(Aws::String &&value)
Definition: StopExecutionRequest.h:152
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::StopExecutionRequest::ExecutionArnHasBeenSet
bool ExecutionArnHasBeenSet() const
Definition: StopExecutionRequest.h:45
Aws::SFN::Model::StopExecutionRequest::SetExecutionArn
void SetExecutionArn(const Aws::String &value)
Definition: StopExecutionRequest.h:50
Aws::SFN::Model::StopExecutionRequest::SetExecutionArn
void SetExecutionArn(Aws::String &&value)
Definition: StopExecutionRequest.h:55
Aws::SFN::Model::StopExecutionRequest::WithCause
StopExecutionRequest & WithCause(const Aws::String &value)
Definition: StopExecutionRequest.h:147