7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
9#include <aws/autoscaling/model/LifecycleState.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
21namespace AutoScaling {
44 template <
typename InstanceIdT = Aws::String>
46 m_instanceIdHasBeenSet =
true;
47 m_instanceId = std::forward<InstanceIdT>(value);
49 template <
typename InstanceIdT = Aws::String>
62 template <
typename InstanceTypeT = Aws::String>
64 m_instanceTypeHasBeenSet =
true;
65 m_instanceType = std::forward<InstanceTypeT>(value);
67 template <
typename InstanceTypeT = Aws::String>
80 template <
typename AvailabilityZoneT = Aws::String>
82 m_availabilityZoneHasBeenSet =
true;
83 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
85 template <
typename AvailabilityZoneT = Aws::String>
103 m_lifecycleStateHasBeenSet =
true;
104 m_lifecycleState = value;
121 template <
typename HealthStatusT = Aws::String>
123 m_healthStatusHasBeenSet =
true;
124 m_healthStatus = std::forward<HealthStatusT>(value);
126 template <
typename HealthStatusT = Aws::String>
139 template <
typename LaunchConfigurationNameT = Aws::String>
141 m_launchConfigurationNameHasBeenSet =
true;
142 m_launchConfigurationName = std::forward<LaunchConfigurationNameT>(value);
144 template <
typename LaunchConfigurationNameT = Aws::String>
157 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
159 m_launchTemplateHasBeenSet =
true;
160 m_launchTemplate = std::forward<LaunchTemplateT>(value);
162 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
183 template <
typename ImageIdT = Aws::String>
185 m_imageIdHasBeenSet =
true;
186 m_imageId = std::forward<ImageIdT>(value);
188 template <
typename ImageIdT = Aws::String>
203 m_protectedFromScaleInHasBeenSet =
true;
204 m_protectedFromScaleIn = value;
219 template <
typename WeightedCapacityT = Aws::String>
221 m_weightedCapacityHasBeenSet =
true;
222 m_weightedCapacity = std::forward<WeightedCapacityT>(value);
224 template <
typename WeightedCapacityT = Aws::String>
243 LaunchTemplateSpecification m_launchTemplate;
247 bool m_protectedFromScaleIn{
false};
250 bool m_instanceIdHasBeenSet =
false;
251 bool m_instanceTypeHasBeenSet =
false;
252 bool m_availabilityZoneHasBeenSet =
false;
253 bool m_lifecycleStateHasBeenSet =
false;
254 bool m_healthStatusHasBeenSet =
false;
255 bool m_launchConfigurationNameHasBeenSet =
false;
256 bool m_launchTemplateHasBeenSet =
false;
257 bool m_imageIdHasBeenSet =
false;
258 bool m_protectedFromScaleInHasBeenSet =
false;
259 bool m_weightedCapacityHasBeenSet =
false;
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAvailabilityZone(AvailabilityZoneT &&value)
const Aws::String & GetLaunchConfigurationName() const
const Aws::String & GetImageId() const
Instance & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetProtectedFromScaleIn(bool value)
void SetWeightedCapacity(WeightedCapacityT &&value)
void SetInstanceId(InstanceIdT &&value)
bool InstanceIdHasBeenSet() const
const Aws::String & GetInstanceType() const
bool LifecycleStateHasBeenSet() const
const Aws::String & GetWeightedCapacity() const
Instance & WithProtectedFromScaleIn(bool value)
Instance & WithLifecycleState(LifecycleState value)
Instance & WithInstanceType(InstanceTypeT &&value)
AWS_AUTOSCALING_API Instance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceId() const
bool LaunchTemplateHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
bool HealthStatusHasBeenSet() const
Instance & WithImageId(ImageIdT &&value)
Instance & WithLaunchConfigurationName(LaunchConfigurationNameT &&value)
LifecycleState GetLifecycleState() const
bool LaunchConfigurationNameHasBeenSet() const
void SetLifecycleState(LifecycleState value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetInstanceType(InstanceTypeT &&value)
bool GetProtectedFromScaleIn() const
const Aws::String & GetAvailabilityZone() const
Instance & WithLaunchTemplate(LaunchTemplateT &&value)
void SetLaunchTemplate(LaunchTemplateT &&value)
bool InstanceTypeHasBeenSet() const
AWS_AUTOSCALING_API Instance()=default
Instance & WithInstanceId(InstanceIdT &&value)
Instance & WithWeightedCapacity(WeightedCapacityT &&value)
bool ImageIdHasBeenSet() const
void SetHealthStatus(HealthStatusT &&value)
void SetLaunchConfigurationName(LaunchConfigurationNameT &&value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
AWS_AUTOSCALING_API Instance(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ProtectedFromScaleInHasBeenSet() const
void SetImageId(ImageIdT &&value)
const Aws::String & GetHealthStatus() const
Instance & WithHealthStatus(HealthStatusT &&value)
bool WeightedCapacityHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream