AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutLifecycleHookRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace AutoScaling
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_AUTOSCALING_API PutLifecycleHookRequest();
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 "PutLifecycleHook"; }
31
32 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; }
44 inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
45 inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
46 inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::move(value); }
47 inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); }
49 inline PutLifecycleHookRequest& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;}
50 inline PutLifecycleHookRequest& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;}
52
54
57 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
58 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
59 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
60 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
61 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
63 inline PutLifecycleHookRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
64 inline PutLifecycleHookRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
66
68
76 inline const Aws::String& GetLifecycleTransition() const{ return m_lifecycleTransition; }
77 inline bool LifecycleTransitionHasBeenSet() const { return m_lifecycleTransitionHasBeenSet; }
78 inline void SetLifecycleTransition(const Aws::String& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = value; }
79 inline void SetLifecycleTransition(Aws::String&& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = std::move(value); }
80 inline void SetLifecycleTransition(const char* value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition.assign(value); }
82 inline PutLifecycleHookRequest& WithLifecycleTransition(Aws::String&& value) { SetLifecycleTransition(std::move(value)); return *this;}
83 inline PutLifecycleHookRequest& WithLifecycleTransition(const char* value) { SetLifecycleTransition(value); return *this;}
85
87
93 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
94 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
95 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
96 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
97 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
98 inline PutLifecycleHookRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
99 inline PutLifecycleHookRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
100 inline PutLifecycleHookRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
102
104
116 inline const Aws::String& GetNotificationTargetARN() const{ return m_notificationTargetARN; }
117 inline bool NotificationTargetARNHasBeenSet() const { return m_notificationTargetARNHasBeenSet; }
118 inline void SetNotificationTargetARN(const Aws::String& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = value; }
119 inline void SetNotificationTargetARN(Aws::String&& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = std::move(value); }
120 inline void SetNotificationTargetARN(const char* value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN.assign(value); }
123 inline PutLifecycleHookRequest& WithNotificationTargetARN(const char* value) { SetNotificationTargetARN(value); return *this;}
125
127
131 inline const Aws::String& GetNotificationMetadata() const{ return m_notificationMetadata; }
132 inline bool NotificationMetadataHasBeenSet() const { return m_notificationMetadataHasBeenSet; }
133 inline void SetNotificationMetadata(const Aws::String& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = value; }
134 inline void SetNotificationMetadata(Aws::String&& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = std::move(value); }
135 inline void SetNotificationMetadata(const char* value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata.assign(value); }
137 inline PutLifecycleHookRequest& WithNotificationMetadata(Aws::String&& value) { SetNotificationMetadata(std::move(value)); return *this;}
138 inline PutLifecycleHookRequest& WithNotificationMetadata(const char* value) { SetNotificationMetadata(value); return *this;}
140
142
147 inline int GetHeartbeatTimeout() const{ return m_heartbeatTimeout; }
148 inline bool HeartbeatTimeoutHasBeenSet() const { return m_heartbeatTimeoutHasBeenSet; }
149 inline void SetHeartbeatTimeout(int value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout = value; }
150 inline PutLifecycleHookRequest& WithHeartbeatTimeout(int value) { SetHeartbeatTimeout(value); return *this;}
152
154
160 inline const Aws::String& GetDefaultResult() const{ return m_defaultResult; }
161 inline bool DefaultResultHasBeenSet() const { return m_defaultResultHasBeenSet; }
162 inline void SetDefaultResult(const Aws::String& value) { m_defaultResultHasBeenSet = true; m_defaultResult = value; }
163 inline void SetDefaultResult(Aws::String&& value) { m_defaultResultHasBeenSet = true; m_defaultResult = std::move(value); }
164 inline void SetDefaultResult(const char* value) { m_defaultResultHasBeenSet = true; m_defaultResult.assign(value); }
165 inline PutLifecycleHookRequest& WithDefaultResult(const Aws::String& value) { SetDefaultResult(value); return *this;}
166 inline PutLifecycleHookRequest& WithDefaultResult(Aws::String&& value) { SetDefaultResult(std::move(value)); return *this;}
167 inline PutLifecycleHookRequest& WithDefaultResult(const char* value) { SetDefaultResult(value); return *this;}
169 private:
170
171 Aws::String m_lifecycleHookName;
172 bool m_lifecycleHookNameHasBeenSet = false;
173
174 Aws::String m_autoScalingGroupName;
175 bool m_autoScalingGroupNameHasBeenSet = false;
176
177 Aws::String m_lifecycleTransition;
178 bool m_lifecycleTransitionHasBeenSet = false;
179
180 Aws::String m_roleARN;
181 bool m_roleARNHasBeenSet = false;
182
183 Aws::String m_notificationTargetARN;
184 bool m_notificationTargetARNHasBeenSet = false;
185
186 Aws::String m_notificationMetadata;
187 bool m_notificationMetadataHasBeenSet = false;
188
189 int m_heartbeatTimeout;
190 bool m_heartbeatTimeoutHasBeenSet = false;
191
192 Aws::String m_defaultResult;
193 bool m_defaultResultHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace AutoScaling
198} // namespace Aws
PutLifecycleHookRequest & WithAutoScalingGroupName(const Aws::String &value)
PutLifecycleHookRequest & WithRoleARN(const Aws::String &value)
PutLifecycleHookRequest & WithNotificationMetadata(const Aws::String &value)
PutLifecycleHookRequest & WithRoleARN(Aws::String &&value)
PutLifecycleHookRequest & WithLifecycleTransition(const char *value)
PutLifecycleHookRequest & WithNotificationMetadata(const char *value)
PutLifecycleHookRequest & WithDefaultResult(Aws::String &&value)
PutLifecycleHookRequest & WithHeartbeatTimeout(int value)
PutLifecycleHookRequest & WithNotificationTargetARN(const char *value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutLifecycleHookRequest & WithLifecycleHookName(const Aws::String &value)
PutLifecycleHookRequest & WithLifecycleHookName(Aws::String &&value)
PutLifecycleHookRequest & WithRoleARN(const char *value)
PutLifecycleHookRequest & WithDefaultResult(const Aws::String &value)
PutLifecycleHookRequest & WithAutoScalingGroupName(Aws::String &&value)
PutLifecycleHookRequest & WithLifecycleTransition(const Aws::String &value)
PutLifecycleHookRequest & WithNotificationTargetARN(Aws::String &&value)
PutLifecycleHookRequest & WithLifecycleHookName(const char *value)
virtual const char * GetServiceRequestName() const override
PutLifecycleHookRequest & WithNotificationTargetARN(const Aws::String &value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
PutLifecycleHookRequest & WithLifecycleTransition(Aws::String &&value)
PutLifecycleHookRequest & WithDefaultResult(const char *value)
PutLifecycleHookRequest & WithAutoScalingGroupName(const char *value)
PutLifecycleHookRequest & WithNotificationMetadata(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String