AWS SDK for C++  1.9.109
AWS SDK for C++
RecordLifecycleActionHeartbeatRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AutoScaling
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 "RecordLifecycleActionHeartbeat"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; }
43 
47  inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
48 
52  inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
53 
57  inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::move(value); }
58 
62  inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); }
63 
67  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleHookName(const Aws::String& value) { SetLifecycleHookName(value); return *this;}
68 
72  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;}
73 
77  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;}
78 
79 
83  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
84 
88  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
89 
93  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
94 
98  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
99 
103  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
104 
108  inline RecordLifecycleActionHeartbeatRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
109 
113  inline RecordLifecycleActionHeartbeatRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
114 
118  inline RecordLifecycleActionHeartbeatRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
119 
120 
126  inline const Aws::String& GetLifecycleActionToken() const{ return m_lifecycleActionToken; }
127 
133  inline bool LifecycleActionTokenHasBeenSet() const { return m_lifecycleActionTokenHasBeenSet; }
134 
140  inline void SetLifecycleActionToken(const Aws::String& value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken = value; }
141 
147  inline void SetLifecycleActionToken(Aws::String&& value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken = std::move(value); }
148 
154  inline void SetLifecycleActionToken(const char* value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken.assign(value); }
155 
161  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleActionToken(const Aws::String& value) { SetLifecycleActionToken(value); return *this;}
162 
168  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleActionToken(Aws::String&& value) { SetLifecycleActionToken(std::move(value)); return *this;}
169 
175  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleActionToken(const char* value) { SetLifecycleActionToken(value); return *this;}
176 
177 
181  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
182 
186  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
187 
191  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
192 
196  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
197 
201  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
202 
206  inline RecordLifecycleActionHeartbeatRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
207 
211  inline RecordLifecycleActionHeartbeatRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
212 
216  inline RecordLifecycleActionHeartbeatRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
217 
218  private:
219 
220  Aws::String m_lifecycleHookName;
221  bool m_lifecycleHookNameHasBeenSet;
222 
223  Aws::String m_autoScalingGroupName;
224  bool m_autoScalingGroupNameHasBeenSet;
225 
226  Aws::String m_lifecycleActionToken;
227  bool m_lifecycleActionTokenHasBeenSet;
228 
229  Aws::String m_instanceId;
230  bool m_instanceIdHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace AutoScaling
235 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithAutoScalingGroupName
RecordLifecycleActionHeartbeatRequest & WithAutoScalingGroupName(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:108
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:191
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::GetLifecycleActionToken
const Aws::String & GetLifecycleActionToken() const
Definition: RecordLifecycleActionHeartbeatRequest.h:126
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::GetLifecycleHookName
const Aws::String & GetLifecycleHookName() const
Definition: RecordLifecycleActionHeartbeatRequest.h:42
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: RecordLifecycleActionHeartbeatRequest.h:186
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithLifecycleActionToken
RecordLifecycleActionHeartbeatRequest & WithLifecycleActionToken(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:161
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithInstanceId
RecordLifecycleActionHeartbeatRequest & WithInstanceId(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:206
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:98
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::GetAutoScalingGroupName
const Aws::String & GetAutoScalingGroupName() const
Definition: RecordLifecycleActionHeartbeatRequest.h:83
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithInstanceId
RecordLifecycleActionHeartbeatRequest & WithInstanceId(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:211
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::AutoScalingGroupNameHasBeenSet
bool AutoScalingGroupNameHasBeenSet() const
Definition: RecordLifecycleActionHeartbeatRequest.h:88
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithInstanceId
RecordLifecycleActionHeartbeatRequest & WithInstanceId(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:216
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest
Definition: RecordLifecycleActionHeartbeatRequest.h:22
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithLifecycleHookName
RecordLifecycleActionHeartbeatRequest & WithLifecycleHookName(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:77
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetLifecycleHookName
void SetLifecycleHookName(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:62
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::RecordLifecycleActionHeartbeatRequest
RecordLifecycleActionHeartbeatRequest()
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetLifecycleHookName
void SetLifecycleHookName(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:57
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithLifecycleActionToken
RecordLifecycleActionHeartbeatRequest & WithLifecycleActionToken(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:168
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:201
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::LifecycleActionTokenHasBeenSet
bool LifecycleActionTokenHasBeenSet() const
Definition: RecordLifecycleActionHeartbeatRequest.h:133
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetLifecycleActionToken
void SetLifecycleActionToken(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:147
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::LifecycleHookNameHasBeenSet
bool LifecycleHookNameHasBeenSet() const
Definition: RecordLifecycleActionHeartbeatRequest.h:47
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:93
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetLifecycleActionToken
void SetLifecycleActionToken(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:140
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RecordLifecycleActionHeartbeatRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:196
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithLifecycleHookName
RecordLifecycleActionHeartbeatRequest & WithLifecycleHookName(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetLifecycleHookName
void SetLifecycleHookName(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:52
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithAutoScalingGroupName
RecordLifecycleActionHeartbeatRequest & WithAutoScalingGroupName(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:118
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:103
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithLifecycleActionToken
RecordLifecycleActionHeartbeatRequest & WithLifecycleActionToken(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:175
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithLifecycleHookName
RecordLifecycleActionHeartbeatRequest & WithLifecycleHookName(const Aws::String &value)
Definition: RecordLifecycleActionHeartbeatRequest.h:67
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: RecordLifecycleActionHeartbeatRequest.h:181
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::WithAutoScalingGroupName
RecordLifecycleActionHeartbeatRequest & WithAutoScalingGroupName(Aws::String &&value)
Definition: RecordLifecycleActionHeartbeatRequest.h:113
Aws::AutoScaling::Model::RecordLifecycleActionHeartbeatRequest::SetLifecycleActionToken
void SetLifecycleActionToken(const char *value)
Definition: RecordLifecycleActionHeartbeatRequest.h:154