AWS SDK for C++

AWS SDK for C++ Version 1.11.800

Loading...
Searching...
No Matches
AutoScalingInstanceDetails.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
30 public:
31 AWS_AUTOSCALING_API AutoScalingInstanceDetails() = default;
32 AWS_AUTOSCALING_API AutoScalingInstanceDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
61 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
62 template <typename InstanceTypeT = Aws::String>
63 void SetInstanceType(InstanceTypeT&& value) {
64 m_instanceTypeHasBeenSet = true;
65 m_instanceType = std::forward<InstanceTypeT>(value);
66 }
67 template <typename InstanceTypeT = Aws::String>
69 SetInstanceType(std::forward<InstanceTypeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
79 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
80 template <typename AutoScalingGroupNameT = Aws::String>
81 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
82 m_autoScalingGroupNameHasBeenSet = true;
83 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
84 }
85 template <typename AutoScalingGroupNameT = Aws::String>
86 AutoScalingInstanceDetails& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
87 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
97 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
98 template <typename AvailabilityZoneT = Aws::String>
99 void SetAvailabilityZone(AvailabilityZoneT&& value) {
100 m_availabilityZoneHasBeenSet = true;
101 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
102 }
103 template <typename AvailabilityZoneT = Aws::String>
105 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
115 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
116 template <typename AvailabilityZoneIdT = Aws::String>
117 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
118 m_availabilityZoneIdHasBeenSet = true;
119 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
120 }
121 template <typename AvailabilityZoneIdT = Aws::String>
123 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
124 return *this;
125 }
127
129
150 inline const Aws::String& GetLifecycleState() const { return m_lifecycleState; }
151 inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
152 template <typename LifecycleStateT = Aws::String>
153 void SetLifecycleState(LifecycleStateT&& value) {
154 m_lifecycleStateHasBeenSet = true;
155 m_lifecycleState = std::forward<LifecycleStateT>(value);
156 }
157 template <typename LifecycleStateT = Aws::String>
159 SetLifecycleState(std::forward<LifecycleStateT>(value));
160 return *this;
161 }
163
165
171 inline const Aws::String& GetHealthStatus() const { return m_healthStatus; }
172 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
173 template <typename HealthStatusT = Aws::String>
174 void SetHealthStatus(HealthStatusT&& value) {
175 m_healthStatusHasBeenSet = true;
176 m_healthStatus = std::forward<HealthStatusT>(value);
177 }
178 template <typename HealthStatusT = Aws::String>
180 SetHealthStatus(std::forward<HealthStatusT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::String& GetLaunchConfigurationName() const { return m_launchConfigurationName; }
191 inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; }
192 template <typename LaunchConfigurationNameT = Aws::String>
193 void SetLaunchConfigurationName(LaunchConfigurationNameT&& value) {
194 m_launchConfigurationNameHasBeenSet = true;
195 m_launchConfigurationName = std::forward<LaunchConfigurationNameT>(value);
196 }
197 template <typename LaunchConfigurationNameT = Aws::String>
198 AutoScalingInstanceDetails& WithLaunchConfigurationName(LaunchConfigurationNameT&& value) {
199 SetLaunchConfigurationName(std::forward<LaunchConfigurationNameT>(value));
200 return *this;
201 }
203
205
208 inline const LaunchTemplateSpecification& GetLaunchTemplate() const { return m_launchTemplate; }
209 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
210 template <typename LaunchTemplateT = LaunchTemplateSpecification>
211 void SetLaunchTemplate(LaunchTemplateT&& value) {
212 m_launchTemplateHasBeenSet = true;
213 m_launchTemplate = std::forward<LaunchTemplateT>(value);
214 }
215 template <typename LaunchTemplateT = LaunchTemplateSpecification>
217 SetLaunchTemplate(std::forward<LaunchTemplateT>(value));
218 return *this;
219 }
221
223
234 inline const Aws::String& GetImageId() const { return m_imageId; }
235 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
236 template <typename ImageIdT = Aws::String>
237 void SetImageId(ImageIdT&& value) {
238 m_imageIdHasBeenSet = true;
239 m_imageId = std::forward<ImageIdT>(value);
240 }
241 template <typename ImageIdT = Aws::String>
243 SetImageId(std::forward<ImageIdT>(value));
244 return *this;
245 }
247
249
253 inline bool GetProtectedFromScaleIn() const { return m_protectedFromScaleIn; }
254 inline bool ProtectedFromScaleInHasBeenSet() const { return m_protectedFromScaleInHasBeenSet; }
255 inline void SetProtectedFromScaleIn(bool value) {
256 m_protectedFromScaleInHasBeenSet = true;
257 m_protectedFromScaleIn = value;
258 }
261 return *this;
262 }
264
266
270 inline const Aws::String& GetWeightedCapacity() const { return m_weightedCapacity; }
271 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
272 template <typename WeightedCapacityT = Aws::String>
273 void SetWeightedCapacity(WeightedCapacityT&& value) {
274 m_weightedCapacityHasBeenSet = true;
275 m_weightedCapacity = std::forward<WeightedCapacityT>(value);
276 }
277 template <typename WeightedCapacityT = Aws::String>
279 SetWeightedCapacity(std::forward<WeightedCapacityT>(value));
280 return *this;
281 }
283 private:
284 Aws::String m_instanceId;
285
286 Aws::String m_instanceType;
287
288 Aws::String m_autoScalingGroupName;
289
290 Aws::String m_availabilityZone;
291
292 Aws::String m_availabilityZoneId;
293
294 Aws::String m_lifecycleState;
295
296 Aws::String m_healthStatus;
297
298 Aws::String m_launchConfigurationName;
299
300 LaunchTemplateSpecification m_launchTemplate;
301
302 Aws::String m_imageId;
303
304 bool m_protectedFromScaleIn{false};
305
306 Aws::String m_weightedCapacity;
307 bool m_instanceIdHasBeenSet = false;
308 bool m_instanceTypeHasBeenSet = false;
309 bool m_autoScalingGroupNameHasBeenSet = false;
310 bool m_availabilityZoneHasBeenSet = false;
311 bool m_availabilityZoneIdHasBeenSet = false;
312 bool m_lifecycleStateHasBeenSet = false;
313 bool m_healthStatusHasBeenSet = false;
314 bool m_launchConfigurationNameHasBeenSet = false;
315 bool m_launchTemplateHasBeenSet = false;
316 bool m_imageIdHasBeenSet = false;
317 bool m_protectedFromScaleInHasBeenSet = false;
318 bool m_weightedCapacityHasBeenSet = false;
319};
320
321} // namespace Model
322} // namespace AutoScaling
323} // namespace Aws
AutoScalingInstanceDetails & WithAvailabilityZone(AvailabilityZoneT &&value)
AutoScalingInstanceDetails & WithWeightedCapacity(WeightedCapacityT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AutoScalingInstanceDetails & WithLaunchConfigurationName(LaunchConfigurationNameT &&value)
AutoScalingInstanceDetails & WithProtectedFromScaleIn(bool value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API AutoScalingInstanceDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
AutoScalingInstanceDetails & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AutoScalingInstanceDetails & WithInstanceType(InstanceTypeT &&value)
AutoScalingInstanceDetails & WithInstanceId(InstanceIdT &&value)
AutoScalingInstanceDetails & WithLaunchTemplate(LaunchTemplateT &&value)
void SetLaunchConfigurationName(LaunchConfigurationNameT &&value)
AutoScalingInstanceDetails & WithLifecycleState(LifecycleStateT &&value)
AutoScalingInstanceDetails & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_AUTOSCALING_API AutoScalingInstanceDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API AutoScalingInstanceDetails()=default
const LaunchTemplateSpecification & GetLaunchTemplate() const
AutoScalingInstanceDetails & WithImageId(ImageIdT &&value)
AutoScalingInstanceDetails & WithHealthStatus(HealthStatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream