AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 CompleteLifecycleActionRequest& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;}
50 inline CompleteLifecycleActionRequest& 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); }
64 inline CompleteLifecycleActionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
66
68
73 inline const Aws::String& GetLifecycleActionToken() const{ return m_lifecycleActionToken; }
74 inline bool LifecycleActionTokenHasBeenSet() const { return m_lifecycleActionTokenHasBeenSet; }
75 inline void SetLifecycleActionToken(const Aws::String& value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken = value; }
76 inline void SetLifecycleActionToken(Aws::String&& value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken = std::move(value); }
77 inline void SetLifecycleActionToken(const char* value) { m_lifecycleActionTokenHasBeenSet = true; m_lifecycleActionToken.assign(value); }
80 inline CompleteLifecycleActionRequest& WithLifecycleActionToken(const char* value) { SetLifecycleActionToken(value); return *this;}
82
84
88 inline const Aws::String& GetLifecycleActionResult() const{ return m_lifecycleActionResult; }
89 inline bool LifecycleActionResultHasBeenSet() const { return m_lifecycleActionResultHasBeenSet; }
90 inline void SetLifecycleActionResult(const Aws::String& value) { m_lifecycleActionResultHasBeenSet = true; m_lifecycleActionResult = value; }
91 inline void SetLifecycleActionResult(Aws::String&& value) { m_lifecycleActionResultHasBeenSet = true; m_lifecycleActionResult = std::move(value); }
92 inline void SetLifecycleActionResult(const char* value) { m_lifecycleActionResultHasBeenSet = true; m_lifecycleActionResult.assign(value); }
95 inline CompleteLifecycleActionRequest& WithLifecycleActionResult(const char* value) { SetLifecycleActionResult(value); return *this;}
97
99
102 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
103 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
104 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
105 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
106 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
107 inline CompleteLifecycleActionRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
108 inline CompleteLifecycleActionRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
109 inline CompleteLifecycleActionRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
111 private:
112
113 Aws::String m_lifecycleHookName;
114 bool m_lifecycleHookNameHasBeenSet = false;
115
116 Aws::String m_autoScalingGroupName;
117 bool m_autoScalingGroupNameHasBeenSet = false;
118
119 Aws::String m_lifecycleActionToken;
120 bool m_lifecycleActionTokenHasBeenSet = false;
121
122 Aws::String m_lifecycleActionResult;
123 bool m_lifecycleActionResultHasBeenSet = false;
124
125 Aws::String m_instanceId;
126 bool m_instanceIdHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace AutoScaling
131} // namespace Aws
CompleteLifecycleActionRequest & WithInstanceId(Aws::String &&value)
CompleteLifecycleActionRequest & WithLifecycleActionResult(Aws::String &&value)
CompleteLifecycleActionRequest & WithInstanceId(const Aws::String &value)
CompleteLifecycleActionRequest & WithInstanceId(const char *value)
CompleteLifecycleActionRequest & WithLifecycleHookName(const char *value)
CompleteLifecycleActionRequest & WithLifecycleActionToken(Aws::String &&value)
CompleteLifecycleActionRequest & WithLifecycleHookName(Aws::String &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
CompleteLifecycleActionRequest & WithLifecycleActionResult(const Aws::String &value)
CompleteLifecycleActionRequest & WithLifecycleActionToken(const char *value)
CompleteLifecycleActionRequest & WithLifecycleActionToken(const Aws::String &value)
CompleteLifecycleActionRequest & WithLifecycleActionResult(const char *value)
CompleteLifecycleActionRequest & WithAutoScalingGroupName(const Aws::String &value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CompleteLifecycleActionRequest & WithAutoScalingGroupName(const char *value)
CompleteLifecycleActionRequest & WithAutoScalingGroupName(Aws::String &&value)
CompleteLifecycleActionRequest & WithLifecycleHookName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String