AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.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/LifecycleState.h>
11#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace AutoScaling
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_AUTOSCALING_API Instance();
37 AWS_AUTOSCALING_API Instance(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_AUTOSCALING_API Instance& operator=(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 Instance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
54 inline Instance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
55 inline Instance& 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 Instance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
68 inline Instance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
69 inline Instance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
71
73
76 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
77 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
78 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
79 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
80 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
81 inline Instance& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
82 inline Instance& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
83 inline Instance& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
85
87
94 inline const LifecycleState& GetLifecycleState() const{ return m_lifecycleState; }
95 inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
96 inline void SetLifecycleState(const LifecycleState& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = value; }
97 inline void SetLifecycleState(LifecycleState&& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = std::move(value); }
98 inline Instance& WithLifecycleState(const LifecycleState& value) { SetLifecycleState(value); return *this;}
99 inline Instance& WithLifecycleState(LifecycleState&& value) { SetLifecycleState(std::move(value)); return *this;}
101
103
109 inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; }
110 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
111 inline void SetHealthStatus(const Aws::String& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
112 inline void SetHealthStatus(Aws::String&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
113 inline void SetHealthStatus(const char* value) { m_healthStatusHasBeenSet = true; m_healthStatus.assign(value); }
114 inline Instance& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;}
115 inline Instance& WithHealthStatus(Aws::String&& value) { SetHealthStatus(std::move(value)); return *this;}
116 inline Instance& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;}
118
120
123 inline const Aws::String& GetLaunchConfigurationName() const{ return m_launchConfigurationName; }
124 inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; }
125 inline void SetLaunchConfigurationName(const Aws::String& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = value; }
126 inline void SetLaunchConfigurationName(Aws::String&& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = std::move(value); }
127 inline void SetLaunchConfigurationName(const char* value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName.assign(value); }
128 inline Instance& WithLaunchConfigurationName(const Aws::String& value) { SetLaunchConfigurationName(value); return *this;}
129 inline Instance& WithLaunchConfigurationName(Aws::String&& value) { SetLaunchConfigurationName(std::move(value)); return *this;}
130 inline Instance& WithLaunchConfigurationName(const char* value) { SetLaunchConfigurationName(value); return *this;}
132
134
137 inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; }
138 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
139 inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
140 inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
141 inline Instance& WithLaunchTemplate(const LaunchTemplateSpecification& value) { SetLaunchTemplate(value); return *this;}
142 inline Instance& WithLaunchTemplate(LaunchTemplateSpecification&& value) { SetLaunchTemplate(std::move(value)); return *this;}
144
146
150 inline bool GetProtectedFromScaleIn() const{ return m_protectedFromScaleIn; }
151 inline bool ProtectedFromScaleInHasBeenSet() const { return m_protectedFromScaleInHasBeenSet; }
152 inline void SetProtectedFromScaleIn(bool value) { m_protectedFromScaleInHasBeenSet = true; m_protectedFromScaleIn = value; }
153 inline Instance& WithProtectedFromScaleIn(bool value) { SetProtectedFromScaleIn(value); return *this;}
155
157
161 inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; }
162 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
163 inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
164 inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); }
165 inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); }
166 inline Instance& WithWeightedCapacity(const Aws::String& value) { SetWeightedCapacity(value); return *this;}
167 inline Instance& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;}
168 inline Instance& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;}
170 private:
171
172 Aws::String m_instanceId;
173 bool m_instanceIdHasBeenSet = false;
174
175 Aws::String m_instanceType;
176 bool m_instanceTypeHasBeenSet = false;
177
178 Aws::String m_availabilityZone;
179 bool m_availabilityZoneHasBeenSet = false;
180
181 LifecycleState m_lifecycleState;
182 bool m_lifecycleStateHasBeenSet = false;
183
184 Aws::String m_healthStatus;
185 bool m_healthStatusHasBeenSet = false;
186
187 Aws::String m_launchConfigurationName;
188 bool m_launchConfigurationNameHasBeenSet = false;
189
190 LaunchTemplateSpecification m_launchTemplate;
191 bool m_launchTemplateHasBeenSet = false;
192
193 bool m_protectedFromScaleIn;
194 bool m_protectedFromScaleInHasBeenSet = false;
195
196 Aws::String m_weightedCapacity;
197 bool m_weightedCapacityHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace AutoScaling
202} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Instance & WithInstanceType(Aws::String &&value)
Definition Instance.h:68
void SetAvailabilityZone(Aws::String &&value)
Definition Instance.h:79
Instance & WithLaunchConfigurationName(const char *value)
Definition Instance.h:130
Instance & WithWeightedCapacity(const Aws::String &value)
Definition Instance.h:166
void SetWeightedCapacity(Aws::String &&value)
Definition Instance.h:164
const Aws::String & GetLaunchConfigurationName() const
Definition Instance.h:123
Instance & WithWeightedCapacity(Aws::String &&value)
Definition Instance.h:167
Instance & WithHealthStatus(const Aws::String &value)
Definition Instance.h:114
void SetHealthStatus(const Aws::String &value)
Definition Instance.h:111
void SetAvailabilityZone(const char *value)
Definition Instance.h:80
void SetProtectedFromScaleIn(bool value)
Definition Instance.h:152
Instance & WithAvailabilityZone(Aws::String &&value)
Definition Instance.h:82
void SetWeightedCapacity(const char *value)
Definition Instance.h:165
void SetLifecycleState(const LifecycleState &value)
Definition Instance.h:96
void SetLaunchConfigurationName(const Aws::String &value)
Definition Instance.h:125
const Aws::String & GetInstanceType() const
Definition Instance.h:62
void SetAvailabilityZone(const Aws::String &value)
Definition Instance.h:78
bool LifecycleStateHasBeenSet() const
Definition Instance.h:95
const Aws::String & GetWeightedCapacity() const
Definition Instance.h:161
void SetInstanceId(const Aws::String &value)
Definition Instance.h:50
Instance & WithInstanceType(const Aws::String &value)
Definition Instance.h:67
Instance & WithInstanceId(const char *value)
Definition Instance.h:55
Instance & WithProtectedFromScaleIn(bool value)
Definition Instance.h:153
Instance & WithInstanceId(Aws::String &&value)
Definition Instance.h:54
AWS_AUTOSCALING_API Instance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceId() const
Definition Instance.h:48
void SetInstanceType(const char *value)
Definition Instance.h:66
void SetWeightedCapacity(const Aws::String &value)
Definition Instance.h:163
Instance & WithAvailabilityZone(const Aws::String &value)
Definition Instance.h:81
bool AvailabilityZoneHasBeenSet() const
Definition Instance.h:77
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
Definition Instance.h:140
Instance & WithLaunchTemplate(const LaunchTemplateSpecification &value)
Definition Instance.h:141
bool LaunchConfigurationNameHasBeenSet() const
Definition Instance.h:124
void SetInstanceType(Aws::String &&value)
Definition Instance.h:65
void SetInstanceId(const char *value)
Definition Instance.h:52
void SetHealthStatus(const char *value)
Definition Instance.h:113
Instance & WithLaunchConfigurationName(const Aws::String &value)
Definition Instance.h:128
void SetLifecycleState(LifecycleState &&value)
Definition Instance.h:97
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Instance & WithLaunchConfigurationName(Aws::String &&value)
Definition Instance.h:129
void SetHealthStatus(Aws::String &&value)
Definition Instance.h:112
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
Definition Instance.h:139
Instance & WithWeightedCapacity(const char *value)
Definition Instance.h:168
const Aws::String & GetAvailabilityZone() const
Definition Instance.h:76
void SetLaunchConfigurationName(Aws::String &&value)
Definition Instance.h:126
Instance & WithHealthStatus(const char *value)
Definition Instance.h:116
const LifecycleState & GetLifecycleState() const
Definition Instance.h:94
Instance & WithInstanceId(const Aws::String &value)
Definition Instance.h:53
Instance & WithLifecycleState(const LifecycleState &value)
Definition Instance.h:98
Instance & WithAvailabilityZone(const char *value)
Definition Instance.h:83
Instance & WithHealthStatus(Aws::String &&value)
Definition Instance.h:115
Instance & WithLaunchTemplate(LaunchTemplateSpecification &&value)
Definition Instance.h:142
void SetInstanceId(Aws::String &&value)
Definition Instance.h:51
const LaunchTemplateSpecification & GetLaunchTemplate() const
Definition Instance.h:137
void SetLaunchConfigurationName(const char *value)
Definition Instance.h:127
AWS_AUTOSCALING_API Instance(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ProtectedFromScaleInHasBeenSet() const
Definition Instance.h:151
const Aws::String & GetHealthStatus() const
Definition Instance.h:109
void SetInstanceType(const Aws::String &value)
Definition Instance.h:64
bool WeightedCapacityHasBeenSet() const
Definition Instance.h:162
AWS_AUTOSCALING_API Instance()
Instance & WithLifecycleState(LifecycleState &&value)
Definition Instance.h:99
Instance & WithInstanceType(const char *value)
Definition Instance.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream