AWS SDK for C++  1.9.158
AWS SDK for C++
RespondActivityTaskCompletedRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/swf/SWF_EXPORTS.h>
8 #include <aws/swf/SWFRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SWF
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 "RespondActivityTaskCompleted"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
44  inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
45 
53  inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
54 
62  inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; }
63 
71  inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); }
72 
80  inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); }
81 
89  inline RespondActivityTaskCompletedRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
90 
98  inline RespondActivityTaskCompletedRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
99 
107  inline RespondActivityTaskCompletedRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
108 
109 
114  inline const Aws::String& GetResult() const{ return m_result; }
115 
120  inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
121 
126  inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; }
127 
132  inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
133 
138  inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); }
139 
144  inline RespondActivityTaskCompletedRequest& WithResult(const Aws::String& value) { SetResult(value); return *this;}
145 
150  inline RespondActivityTaskCompletedRequest& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;}
151 
156  inline RespondActivityTaskCompletedRequest& WithResult(const char* value) { SetResult(value); return *this;}
157 
158  private:
159 
160  Aws::String m_taskToken;
161  bool m_taskTokenHasBeenSet;
162 
163  Aws::String m_result;
164  bool m_resultHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace SWF
169 } // namespace Aws
Aws::SWF::Model::RespondActivityTaskCompletedRequest::GetResult
const Aws::String & GetResult() const
Definition: RespondActivityTaskCompletedRequest.h:114
Aws::SWF::Model::RespondActivityTaskCompletedRequest::GetTaskToken
const Aws::String & GetTaskToken() const
Definition: RespondActivityTaskCompletedRequest.h:44
SWFRequest.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SWF::Model::RespondActivityTaskCompletedRequest::WithTaskToken
RespondActivityTaskCompletedRequest & WithTaskToken(Aws::String &&value)
Definition: RespondActivityTaskCompletedRequest.h:98
Aws::SWF::SWFRequest
Definition: SWFRequest.h:17
Aws::SWF::Model::RespondActivityTaskCompletedRequest::RespondActivityTaskCompletedRequest
RespondActivityTaskCompletedRequest()
Aws::SWF::Model::RespondActivityTaskCompletedRequest::WithTaskToken
RespondActivityTaskCompletedRequest & WithTaskToken(const Aws::String &value)
Definition: RespondActivityTaskCompletedRequest.h:89
Aws::SWF::Model::RespondActivityTaskCompletedRequest::SetTaskToken
void SetTaskToken(const Aws::String &value)
Definition: RespondActivityTaskCompletedRequest.h:62
Aws::SWF::Model::RespondActivityTaskCompletedRequest::WithResult
RespondActivityTaskCompletedRequest & WithResult(const Aws::String &value)
Definition: RespondActivityTaskCompletedRequest.h:144
Aws::SWF::Model::RespondActivityTaskCompletedRequest::SetResult
void SetResult(const char *value)
Definition: RespondActivityTaskCompletedRequest.h:138
Aws::SWF::Model::RespondActivityTaskCompletedRequest::SetTaskToken
void SetTaskToken(const char *value)
Definition: RespondActivityTaskCompletedRequest.h:80
SWF_EXPORTS.h
Aws::SWF::Model::RespondActivityTaskCompletedRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DevOpsGuru::Model::ServiceName::NOT_SET
@ NOT_SET
Aws::SWF::Model::RespondActivityTaskCompletedRequest::SetTaskToken
void SetTaskToken(Aws::String &&value)
Definition: RespondActivityTaskCompletedRequest.h:71
Aws::SWF::Model::RespondActivityTaskCompletedRequest::WithResult
RespondActivityTaskCompletedRequest & WithResult(Aws::String &&value)
Definition: RespondActivityTaskCompletedRequest.h:150
Aws::SWF::Model::RespondActivityTaskCompletedRequest::SetResult
void SetResult(const Aws::String &value)
Definition: RespondActivityTaskCompletedRequest.h:126
AWSString.h
Aws::SWF::Model::RespondActivityTaskCompletedRequest::SetResult
void SetResult(Aws::String &&value)
Definition: RespondActivityTaskCompletedRequest.h:132
Aws::SWF::Model::RespondActivityTaskCompletedRequest::TaskTokenHasBeenSet
bool TaskTokenHasBeenSet() const
Definition: RespondActivityTaskCompletedRequest.h:53
Aws::SWF::Model::RespondActivityTaskCompletedRequest::WithTaskToken
RespondActivityTaskCompletedRequest & WithTaskToken(const char *value)
Definition: RespondActivityTaskCompletedRequest.h:107
Aws::SWF::Model::RespondActivityTaskCompletedRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SWF::Model::RespondActivityTaskCompletedRequest::WithResult
RespondActivityTaskCompletedRequest & WithResult(const char *value)
Definition: RespondActivityTaskCompletedRequest.h:156
Aws
Definition: AccessManagementClient.h:15
AWS_SWF_API
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SWF::Model::RespondActivityTaskCompletedRequest
Definition: RespondActivityTaskCompletedRequest.h:22
Aws::SWF::Model::RespondActivityTaskCompletedRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RespondActivityTaskCompletedRequest.h:30
Aws::SWF::Model::RespondActivityTaskCompletedRequest::ResultHasBeenSet
bool ResultHasBeenSet() const
Definition: RespondActivityTaskCompletedRequest.h:120