AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CompleteLifecycleActionRequest.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 CompleteLifecycleActionRequest() = default;
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 "CompleteLifecycleAction"; }
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 template<typename LifecycleHookNameT = Aws::String>
46 void SetLifecycleHookName(LifecycleHookNameT&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::forward<LifecycleHookNameT>(value); }
47 template<typename LifecycleHookNameT = Aws::String>
48 CompleteLifecycleActionRequest& WithLifecycleHookName(LifecycleHookNameT&& value) { SetLifecycleHookName(std::forward<LifecycleHookNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
56 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
57 template<typename AutoScalingGroupNameT = Aws::String>
58 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
59 template<typename AutoScalingGroupNameT = Aws::String>
60 CompleteLifecycleActionRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) { SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value)); return *this;}
62
64
69 inline const Aws::String& GetLifecycleActionToken() const { return m_lifecycleActionToken; }
70 inline bool LifecycleActionTokenHasBeenSet() const { return m_lifecycleActionTokenHasBeenSet; }
71 template<typename LifecycleActionTokenT = Aws::String>
72 void SetLifecycleActionToken(LifecycleActionTokenT&& value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken = std::forward<LifecycleActionTokenT>(value); }
73 template<typename LifecycleActionTokenT = Aws::String>
74 CompleteLifecycleActionRequest& WithLifecycleActionToken(LifecycleActionTokenT&& value) { SetLifecycleActionToken(std::forward<LifecycleActionTokenT>(value)); return *this;}
76
78
82 inline const Aws::String& GetLifecycleActionResult() const { return m_lifecycleActionResult; }
83 inline bool LifecycleActionResultHasBeenSet() const { return m_lifecycleActionResultHasBeenSet; }
84 template<typename LifecycleActionResultT = Aws::String>
85 void SetLifecycleActionResult(LifecycleActionResultT&& value) { m_lifecycleActionResultHasBeenSet = true; m_lifecycleActionResult = std::forward<LifecycleActionResultT>(value); }
86 template<typename LifecycleActionResultT = Aws::String>
87 CompleteLifecycleActionRequest& WithLifecycleActionResult(LifecycleActionResultT&& value) { SetLifecycleActionResult(std::forward<LifecycleActionResultT>(value)); return *this;}
89
91
94 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
95 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
96 template<typename InstanceIdT = Aws::String>
97 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
98 template<typename InstanceIdT = Aws::String>
99 CompleteLifecycleActionRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
101 private:
102
103 Aws::String m_lifecycleHookName;
104 bool m_lifecycleHookNameHasBeenSet = false;
105
106 Aws::String m_autoScalingGroupName;
107 bool m_autoScalingGroupNameHasBeenSet = false;
108
109 Aws::String m_lifecycleActionToken;
110 bool m_lifecycleActionTokenHasBeenSet = false;
111
112 Aws::String m_lifecycleActionResult;
113 bool m_lifecycleActionResultHasBeenSet = false;
114
115 Aws::String m_instanceId;
116 bool m_instanceIdHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace AutoScaling
121} // 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