AWS SDK for C++  1.9.40
AWS SDK for C++
GetActivityTaskRequest.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 "GetActivityTask"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetActivityArn() const{ return m_activityArn; }
42 
47  inline bool ActivityArnHasBeenSet() const { return m_activityArnHasBeenSet; }
48 
53  inline void SetActivityArn(const Aws::String& value) { m_activityArnHasBeenSet = true; m_activityArn = value; }
54 
59  inline void SetActivityArn(Aws::String&& value) { m_activityArnHasBeenSet = true; m_activityArn = std::move(value); }
60 
65  inline void SetActivityArn(const char* value) { m_activityArnHasBeenSet = true; m_activityArn.assign(value); }
66 
71  inline GetActivityTaskRequest& WithActivityArn(const Aws::String& value) { SetActivityArn(value); return *this;}
72 
77  inline GetActivityTaskRequest& WithActivityArn(Aws::String&& value) { SetActivityArn(std::move(value)); return *this;}
78 
83  inline GetActivityTaskRequest& WithActivityArn(const char* value) { SetActivityArn(value); return *this;}
84 
85 
91  inline const Aws::String& GetWorkerName() const{ return m_workerName; }
92 
98  inline bool WorkerNameHasBeenSet() const { return m_workerNameHasBeenSet; }
99 
105  inline void SetWorkerName(const Aws::String& value) { m_workerNameHasBeenSet = true; m_workerName = value; }
106 
112  inline void SetWorkerName(Aws::String&& value) { m_workerNameHasBeenSet = true; m_workerName = std::move(value); }
113 
119  inline void SetWorkerName(const char* value) { m_workerNameHasBeenSet = true; m_workerName.assign(value); }
120 
126  inline GetActivityTaskRequest& WithWorkerName(const Aws::String& value) { SetWorkerName(value); return *this;}
127 
133  inline GetActivityTaskRequest& WithWorkerName(Aws::String&& value) { SetWorkerName(std::move(value)); return *this;}
134 
140  inline GetActivityTaskRequest& WithWorkerName(const char* value) { SetWorkerName(value); return *this;}
141 
142  private:
143 
144  Aws::String m_activityArn;
145  bool m_activityArnHasBeenSet;
146 
147  Aws::String m_workerName;
148  bool m_workerNameHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace SFN
153 } // namespace Aws
Aws::SFN::Model::GetActivityTaskRequest::GetActivityTaskRequest
GetActivityTaskRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SFN::Model::GetActivityTaskRequest::WithActivityArn
GetActivityTaskRequest & WithActivityArn(const Aws::String &value)
Definition: GetActivityTaskRequest.h:71
Aws::SFN::SFNRequest
Definition: SFNRequest.h:17
Aws::SFN::Model::GetActivityTaskRequest::ActivityArnHasBeenSet
bool ActivityArnHasBeenSet() const
Definition: GetActivityTaskRequest.h:47
Aws::SFN::Model::GetActivityTaskRequest::SetWorkerName
void SetWorkerName(const char *value)
Definition: GetActivityTaskRequest.h:119
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::GetActivityTaskRequest::SerializePayload
Aws::String SerializePayload() const override
SFN_EXPORTS.h
Aws::SFN::Model::GetActivityTaskRequest::WithWorkerName
GetActivityTaskRequest & WithWorkerName(const Aws::String &value)
Definition: GetActivityTaskRequest.h:126
Aws::SFN::Model::GetActivityTaskRequest::GetWorkerName
const Aws::String & GetWorkerName() const
Definition: GetActivityTaskRequest.h:91
Aws::SFN::Model::GetActivityTaskRequest::SetActivityArn
void SetActivityArn(Aws::String &&value)
Definition: GetActivityTaskRequest.h:59
Aws::SFN::Model::GetActivityTaskRequest::WorkerNameHasBeenSet
bool WorkerNameHasBeenSet() const
Definition: GetActivityTaskRequest.h:98
Aws::SFN::Model::GetActivityTaskRequest::SetWorkerName
void SetWorkerName(const Aws::String &value)
Definition: GetActivityTaskRequest.h:105
SFNRequest.h
AWSString.h
Aws::SFN::Model::GetActivityTaskRequest::WithWorkerName
GetActivityTaskRequest & WithWorkerName(Aws::String &&value)
Definition: GetActivityTaskRequest.h:133
Aws::SFN::Model::GetActivityTaskRequest::GetActivityArn
const Aws::String & GetActivityArn() const
Definition: GetActivityTaskRequest.h:41
Aws::SFN::Model::GetActivityTaskRequest::WithActivityArn
GetActivityTaskRequest & WithActivityArn(const char *value)
Definition: GetActivityTaskRequest.h:83
Aws::SFN::Model::GetActivityTaskRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SFN::Model::GetActivityTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetActivityTaskRequest.h:30
Aws::SFN::Model::GetActivityTaskRequest::SetWorkerName
void SetWorkerName(Aws::String &&value)
Definition: GetActivityTaskRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::GetActivityTaskRequest::WithWorkerName
GetActivityTaskRequest & WithWorkerName(const char *value)
Definition: GetActivityTaskRequest.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::GetActivityTaskRequest
Definition: GetActivityTaskRequest.h:22
Aws::SFN::Model::GetActivityTaskRequest::SetActivityArn
void SetActivityArn(const char *value)
Definition: GetActivityTaskRequest.h:65
Aws::SFN::Model::GetActivityTaskRequest::SetActivityArn
void SetActivityArn(const Aws::String &value)
Definition: GetActivityTaskRequest.h:53
Aws::SFN::Model::GetActivityTaskRequest::WithActivityArn
GetActivityTaskRequest & WithActivityArn(Aws::String &&value)
Definition: GetActivityTaskRequest.h:77