AWS SDK for C++  0.14.3
AWS SDK for C++
RecordLifecycleActionHeartbeatRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace AutoScaling
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; }
40 
44  inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
45 
49  inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
50 
54  inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); }
55 
59  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleHookName(const Aws::String& value) { SetLifecycleHookName(value); return *this;}
60 
64  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(value); return *this;}
65 
69  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;}
70 
74  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
75 
79  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
80 
84  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
85 
89  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
90 
94  inline RecordLifecycleActionHeartbeatRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
95 
99  inline RecordLifecycleActionHeartbeatRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
100 
104  inline RecordLifecycleActionHeartbeatRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
105 
111  inline const Aws::String& GetLifecycleActionToken() const{ return m_lifecycleActionToken; }
112 
118  inline void SetLifecycleActionToken(const Aws::String& value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken = value; }
119 
125  inline void SetLifecycleActionToken(Aws::String&& value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken = value; }
126 
132  inline void SetLifecycleActionToken(const char* value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken.assign(value); }
133 
139  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleActionToken(const Aws::String& value) { SetLifecycleActionToken(value); return *this;}
140 
146  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleActionToken(Aws::String&& value) { SetLifecycleActionToken(value); return *this;}
147 
153  inline RecordLifecycleActionHeartbeatRequest& WithLifecycleActionToken(const char* value) { SetLifecycleActionToken(value); return *this;}
154 
158  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
159 
163  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
164 
168  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
169 
173  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
174 
178  inline RecordLifecycleActionHeartbeatRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
179 
183  inline RecordLifecycleActionHeartbeatRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
184 
188  inline RecordLifecycleActionHeartbeatRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
189 
190  private:
191  Aws::String m_lifecycleHookName;
192  bool m_lifecycleHookNameHasBeenSet;
193  Aws::String m_autoScalingGroupName;
194  bool m_autoScalingGroupNameHasBeenSet;
195  Aws::String m_lifecycleActionToken;
196  bool m_lifecycleActionTokenHasBeenSet;
197  Aws::String m_instanceId;
198  bool m_instanceIdHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace AutoScaling
203 } // namespace Aws
RecordLifecycleActionHeartbeatRequest & WithInstanceId(const Aws::String &value)
RecordLifecycleActionHeartbeatRequest & WithLifecycleActionToken(Aws::String &&value)
RecordLifecycleActionHeartbeatRequest & WithLifecycleHookName(const Aws::String &value)
RecordLifecycleActionHeartbeatRequest & WithLifecycleActionToken(const char *value)
RecordLifecycleActionHeartbeatRequest & WithInstanceId(const char *value)
RecordLifecycleActionHeartbeatRequest & WithAutoScalingGroupName(Aws::String &&value)
RecordLifecycleActionHeartbeatRequest & WithInstanceId(Aws::String &&value)
RecordLifecycleActionHeartbeatRequest & WithLifecycleActionToken(const Aws::String &value)
RecordLifecycleActionHeartbeatRequest & WithLifecycleHookName(Aws::String &&value)
RecordLifecycleActionHeartbeatRequest & WithAutoScalingGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RecordLifecycleActionHeartbeatRequest & WithAutoScalingGroupName(const Aws::String &value)
#define AWS_AUTOSCALING_API
JSON (JavaScript Object Notation).
RecordLifecycleActionHeartbeatRequest & WithLifecycleHookName(const char *value)