AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CompleteLifecycleActionRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AutoScaling {
15namespace Model {
16
20 public:
21 AWS_AUTOSCALING_API CompleteLifecycleActionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CompleteLifecycleAction"; }
28
29 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetLifecycleHookName() const { return m_lifecycleHookName; }
40 inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
41 template <typename LifecycleHookNameT = Aws::String>
42 void SetLifecycleHookName(LifecycleHookNameT&& value) {
43 m_lifecycleHookNameHasBeenSet = true;
44 m_lifecycleHookName = std::forward<LifecycleHookNameT>(value);
45 }
46 template <typename LifecycleHookNameT = Aws::String>
48 SetLifecycleHookName(std::forward<LifecycleHookNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
58 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
59 template <typename AutoScalingGroupNameT = Aws::String>
60 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
61 m_autoScalingGroupNameHasBeenSet = true;
62 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
63 }
64 template <typename AutoScalingGroupNameT = Aws::String>
66 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetLifecycleActionToken() const { return m_lifecycleActionToken; }
78 inline bool LifecycleActionTokenHasBeenSet() const { return m_lifecycleActionTokenHasBeenSet; }
79 template <typename LifecycleActionTokenT = Aws::String>
80 void SetLifecycleActionToken(LifecycleActionTokenT&& value) {
81 m_lifecycleActionTokenHasBeenSet = true;
82 m_lifecycleActionToken = std::forward<LifecycleActionTokenT>(value);
83 }
84 template <typename LifecycleActionTokenT = Aws::String>
86 SetLifecycleActionToken(std::forward<LifecycleActionTokenT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetLifecycleActionResult() const { return m_lifecycleActionResult; }
97 inline bool LifecycleActionResultHasBeenSet() const { return m_lifecycleActionResultHasBeenSet; }
98 template <typename LifecycleActionResultT = Aws::String>
99 void SetLifecycleActionResult(LifecycleActionResultT&& value) {
100 m_lifecycleActionResultHasBeenSet = true;
101 m_lifecycleActionResult = std::forward<LifecycleActionResultT>(value);
102 }
103 template <typename LifecycleActionResultT = Aws::String>
105 SetLifecycleActionResult(std::forward<LifecycleActionResultT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
115 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
116 template <typename InstanceIdT = Aws::String>
117 void SetInstanceId(InstanceIdT&& value) {
118 m_instanceIdHasBeenSet = true;
119 m_instanceId = std::forward<InstanceIdT>(value);
120 }
121 template <typename InstanceIdT = Aws::String>
123 SetInstanceId(std::forward<InstanceIdT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_lifecycleHookName;
129
130 Aws::String m_autoScalingGroupName;
131
132 Aws::String m_lifecycleActionToken;
133
134 Aws::String m_lifecycleActionResult;
135
136 Aws::String m_instanceId;
137 bool m_lifecycleHookNameHasBeenSet = false;
138 bool m_autoScalingGroupNameHasBeenSet = false;
139 bool m_lifecycleActionTokenHasBeenSet = false;
140 bool m_lifecycleActionResultHasBeenSet = false;
141 bool m_instanceIdHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace AutoScaling
146} // namespace Aws
CompleteLifecycleActionRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
CompleteLifecycleActionRequest & WithLifecycleHookName(LifecycleHookNameT &&value)
AWS_AUTOSCALING_API CompleteLifecycleActionRequest()=default
CompleteLifecycleActionRequest & WithLifecycleActionToken(LifecycleActionTokenT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CompleteLifecycleActionRequest & WithInstanceId(InstanceIdT &&value)
CompleteLifecycleActionRequest & WithLifecycleActionResult(LifecycleActionResultT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String