AWS SDK for C++  1.9.104
AWS SDK for C++
SendTaskHeartbeatRequest.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 "SendTaskHeartbeat"; }
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 SendTaskHeartbeatRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
90 
98  inline SendTaskHeartbeatRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
99 
107  inline SendTaskHeartbeatRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
108 
109  private:
110 
111  Aws::String m_taskToken;
112  bool m_taskTokenHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace SFN
117 } // namespace Aws
Aws::SFN::Model::SendTaskHeartbeatRequest::SetTaskToken
void SetTaskToken(const Aws::String &value)
Definition: SendTaskHeartbeatRequest.h:62
Aws::SFN::Model::SendTaskHeartbeatRequest::TaskTokenHasBeenSet
bool TaskTokenHasBeenSet() const
Definition: SendTaskHeartbeatRequest.h:53
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SFN::Model::SendTaskHeartbeatRequest
Definition: SendTaskHeartbeatRequest.h:22
Aws::SFN::SFNRequest
Definition: SFNRequest.h:17
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::SendTaskHeartbeatRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendTaskHeartbeatRequest.h:30
Aws::SFN::Model::SendTaskHeartbeatRequest::WithTaskToken
SendTaskHeartbeatRequest & WithTaskToken(Aws::String &&value)
Definition: SendTaskHeartbeatRequest.h:98
SFN_EXPORTS.h
Aws::SFN::Model::SendTaskHeartbeatRequest::SerializePayload
Aws::String SerializePayload() const override
SFNRequest.h
AWSString.h
Aws::SFN::Model::SendTaskHeartbeatRequest::GetTaskToken
const Aws::String & GetTaskToken() const
Definition: SendTaskHeartbeatRequest.h:44
Aws::SFN::Model::SendTaskHeartbeatRequest::WithTaskToken
SendTaskHeartbeatRequest & WithTaskToken(const char *value)
Definition: SendTaskHeartbeatRequest.h:107
Aws::SFN::Model::SendTaskHeartbeatRequest::WithTaskToken
SendTaskHeartbeatRequest & WithTaskToken(const Aws::String &value)
Definition: SendTaskHeartbeatRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::SendTaskHeartbeatRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::SendTaskHeartbeatRequest::SetTaskToken
void SetTaskToken(const char *value)
Definition: SendTaskHeartbeatRequest.h:80
Aws::SFN::Model::SendTaskHeartbeatRequest::SetTaskToken
void SetTaskToken(Aws::String &&value)
Definition: SendTaskHeartbeatRequest.h:71
Aws::SFN::Model::SendTaskHeartbeatRequest::SendTaskHeartbeatRequest
SendTaskHeartbeatRequest()