AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingInstanceDetails.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AUTOSCALING_API AutoScalingInstanceDetails();
37 AWS_AUTOSCALING_API AutoScalingInstanceDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
52 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
53 inline AutoScalingInstanceDetails& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
54 inline AutoScalingInstanceDetails& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
55 inline AutoScalingInstanceDetails& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
57
59
62 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
63 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
64 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
65 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
66 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
67 inline AutoScalingInstanceDetails& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
68 inline AutoScalingInstanceDetails& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
69 inline AutoScalingInstanceDetails& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
71
73
76 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
77 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
78 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
79 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
80 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
83 inline AutoScalingInstanceDetails& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
85
87
90 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
91 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
92 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
93 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
94 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
96 inline AutoScalingInstanceDetails& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
97 inline AutoScalingInstanceDetails& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
99
101
118 inline const Aws::String& GetLifecycleState() const{ return m_lifecycleState; }
119 inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
120 inline void SetLifecycleState(const Aws::String& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = value; }
121 inline void SetLifecycleState(Aws::String&& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = std::move(value); }
122 inline void SetLifecycleState(const char* value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState.assign(value); }
123 inline AutoScalingInstanceDetails& WithLifecycleState(const Aws::String& value) { SetLifecycleState(value); return *this;}
124 inline AutoScalingInstanceDetails& WithLifecycleState(Aws::String&& value) { SetLifecycleState(std::move(value)); return *this;}
125 inline AutoScalingInstanceDetails& WithLifecycleState(const char* value) { SetLifecycleState(value); return *this;}
127
129
135 inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; }
136 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
137 inline void SetHealthStatus(const Aws::String& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
138 inline void SetHealthStatus(Aws::String&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
139 inline void SetHealthStatus(const char* value) { m_healthStatusHasBeenSet = true; m_healthStatus.assign(value); }
140 inline AutoScalingInstanceDetails& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;}
141 inline AutoScalingInstanceDetails& WithHealthStatus(Aws::String&& value) { SetHealthStatus(std::move(value)); return *this;}
142 inline AutoScalingInstanceDetails& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;}
144
146
150 inline const Aws::String& GetLaunchConfigurationName() const{ return m_launchConfigurationName; }
151 inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; }
152 inline void SetLaunchConfigurationName(const Aws::String& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = value; }
153 inline void SetLaunchConfigurationName(Aws::String&& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = std::move(value); }
154 inline void SetLaunchConfigurationName(const char* value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName.assign(value); }
159
161
164 inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; }
165 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
166 inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
167 inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
171
173
177 inline bool GetProtectedFromScaleIn() const{ return m_protectedFromScaleIn; }
178 inline bool ProtectedFromScaleInHasBeenSet() const { return m_protectedFromScaleInHasBeenSet; }
179 inline void SetProtectedFromScaleIn(bool value) { m_protectedFromScaleInHasBeenSet = true; m_protectedFromScaleIn = value; }
182
184
188 inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; }
189 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
190 inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
191 inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); }
192 inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); }
194 inline AutoScalingInstanceDetails& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;}
195 inline AutoScalingInstanceDetails& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;}
197 private:
198
199 Aws::String m_instanceId;
200 bool m_instanceIdHasBeenSet = false;
201
202 Aws::String m_instanceType;
203 bool m_instanceTypeHasBeenSet = false;
204
205 Aws::String m_autoScalingGroupName;
206 bool m_autoScalingGroupNameHasBeenSet = false;
207
208 Aws::String m_availabilityZone;
209 bool m_availabilityZoneHasBeenSet = false;
210
211 Aws::String m_lifecycleState;
212 bool m_lifecycleStateHasBeenSet = false;
213
214 Aws::String m_healthStatus;
215 bool m_healthStatusHasBeenSet = false;
216
217 Aws::String m_launchConfigurationName;
218 bool m_launchConfigurationNameHasBeenSet = false;
219
220 LaunchTemplateSpecification m_launchTemplate;
221 bool m_launchTemplateHasBeenSet = false;
222
223 bool m_protectedFromScaleIn;
224 bool m_protectedFromScaleInHasBeenSet = false;
225
226 Aws::String m_weightedCapacity;
227 bool m_weightedCapacityHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace AutoScaling
232} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AutoScalingInstanceDetails & WithAutoScalingGroupName(const char *value)
AutoScalingInstanceDetails & WithProtectedFromScaleIn(bool value)
AutoScalingInstanceDetails & WithInstanceType(const char *value)
AutoScalingInstanceDetails & WithLaunchConfigurationName(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AutoScalingInstanceDetails & WithAutoScalingGroupName(const Aws::String &value)
AutoScalingInstanceDetails & WithWeightedCapacity(const Aws::String &value)
AutoScalingInstanceDetails & WithWeightedCapacity(Aws::String &&value)
AutoScalingInstanceDetails & WithInstanceId(const char *value)
AWS_AUTOSCALING_API AutoScalingInstanceDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
AutoScalingInstanceDetails & WithHealthStatus(Aws::String &&value)
AutoScalingInstanceDetails & WithAvailabilityZone(const char *value)
AutoScalingInstanceDetails & WithInstanceType(Aws::String &&value)
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
AutoScalingInstanceDetails & WithAvailabilityZone(const Aws::String &value)
AutoScalingInstanceDetails & WithLaunchConfigurationName(const char *value)
AutoScalingInstanceDetails & WithAutoScalingGroupName(Aws::String &&value)
AutoScalingInstanceDetails & WithLifecycleState(Aws::String &&value)
AWS_AUTOSCALING_API AutoScalingInstanceDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AutoScalingInstanceDetails & WithLaunchTemplate(LaunchTemplateSpecification &&value)
AutoScalingInstanceDetails & WithInstanceId(const Aws::String &value)
AutoScalingInstanceDetails & WithHealthStatus(const char *value)
AutoScalingInstanceDetails & WithLaunchConfigurationName(const Aws::String &value)
AutoScalingInstanceDetails & WithInstanceId(Aws::String &&value)
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
AutoScalingInstanceDetails & WithLifecycleState(const char *value)
AutoScalingInstanceDetails & WithInstanceType(const Aws::String &value)
AutoScalingInstanceDetails & WithLaunchTemplate(const LaunchTemplateSpecification &value)
AutoScalingInstanceDetails & WithLifecycleState(const Aws::String &value)
AutoScalingInstanceDetails & WithHealthStatus(const Aws::String &value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
AutoScalingInstanceDetails & WithWeightedCapacity(const char *value)
AutoScalingInstanceDetails & WithAvailabilityZone(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream