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>
20namespace 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 AutoScalingGroupNameT = Aws::String>
82 m_autoScalingGroupNameHasBeenSet =
true;
83 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
85 template <
typename AutoScalingGroupNameT = Aws::String>
98 template <
typename AvailabilityZoneT = Aws::String>
100 m_availabilityZoneHasBeenSet =
true;
101 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
103 template <
typename AvailabilityZoneT = Aws::String>
131 template <
typename LifecycleStateT = Aws::String>
133 m_lifecycleStateHasBeenSet =
true;
134 m_lifecycleState = std::forward<LifecycleStateT>(value);
136 template <
typename LifecycleStateT = Aws::String>
152 template <
typename HealthStatusT = Aws::String>
154 m_healthStatusHasBeenSet =
true;
155 m_healthStatus = std::forward<HealthStatusT>(value);
157 template <
typename HealthStatusT = Aws::String>
171 template <
typename LaunchConfigurationNameT = Aws::String>
173 m_launchConfigurationNameHasBeenSet =
true;
174 m_launchConfigurationName = std::forward<LaunchConfigurationNameT>(value);
176 template <
typename LaunchConfigurationNameT = Aws::String>
189 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
191 m_launchTemplateHasBeenSet =
true;
192 m_launchTemplate = std::forward<LaunchTemplateT>(value);
194 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
215 template <
typename ImageIdT = Aws::String>
217 m_imageIdHasBeenSet =
true;
218 m_imageId = std::forward<ImageIdT>(value);
220 template <
typename ImageIdT = Aws::String>
235 m_protectedFromScaleInHasBeenSet =
true;
236 m_protectedFromScaleIn = value;
251 template <
typename WeightedCapacityT = Aws::String>
253 m_weightedCapacityHasBeenSet =
true;
254 m_weightedCapacity = std::forward<WeightedCapacityT>(value);
256 template <
typename WeightedCapacityT = Aws::String>
281 bool m_protectedFromScaleIn{
false};
284 bool m_instanceIdHasBeenSet =
false;
285 bool m_instanceTypeHasBeenSet =
false;
286 bool m_autoScalingGroupNameHasBeenSet =
false;
287 bool m_availabilityZoneHasBeenSet =
false;
288 bool m_lifecycleStateHasBeenSet =
false;
289 bool m_healthStatusHasBeenSet =
false;
290 bool m_launchConfigurationNameHasBeenSet =
false;
291 bool m_launchTemplateHasBeenSet =
false;
292 bool m_imageIdHasBeenSet =
false;
293 bool m_protectedFromScaleInHasBeenSet =
false;
294 bool m_weightedCapacityHasBeenSet =
false;
const Aws::String & GetLifecycleState() const
AutoScalingInstanceDetails & WithAvailabilityZone(AvailabilityZoneT &&value)
AutoScalingInstanceDetails & WithWeightedCapacity(WeightedCapacityT &&value)
const Aws::String & GetInstanceId() const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetLaunchTemplate(LaunchTemplateT &&value)
AutoScalingInstanceDetails & WithLaunchConfigurationName(LaunchConfigurationNameT &&value)
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
void SetImageId(ImageIdT &&value)
void SetProtectedFromScaleIn(bool value)
bool HealthStatusHasBeenSet() const
bool ProtectedFromScaleInHasBeenSet() const
AutoScalingInstanceDetails & WithProtectedFromScaleIn(bool value)
void SetLifecycleState(LifecycleStateT &&value)
const Aws::String & GetInstanceType() const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAutoScalingGroupName() const
bool InstanceIdHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
const Aws::String & GetWeightedCapacity() const
AWS_AUTOSCALING_API AutoScalingInstanceDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
AutoScalingInstanceDetails & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AutoScalingInstanceDetails & WithInstanceType(InstanceTypeT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
bool LaunchConfigurationNameHasBeenSet() const
bool WeightedCapacityHasBeenSet() const
void SetInstanceType(InstanceTypeT &&value)
AutoScalingInstanceDetails & WithInstanceId(InstanceIdT &&value)
bool InstanceTypeHasBeenSet() const
const Aws::String & GetLaunchConfigurationName() const
AutoScalingInstanceDetails & WithLaunchTemplate(LaunchTemplateT &&value)
void SetWeightedCapacity(WeightedCapacityT &&value)
void SetLaunchConfigurationName(LaunchConfigurationNameT &&value)
bool LaunchTemplateHasBeenSet() const
AutoScalingInstanceDetails & WithLifecycleState(LifecycleStateT &&value)
const Aws::String & GetImageId() const
AWS_AUTOSCALING_API AutoScalingInstanceDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceId(InstanceIdT &&value)
bool GetProtectedFromScaleIn() const
AWS_AUTOSCALING_API AutoScalingInstanceDetails()=default
const Aws::String & GetAvailabilityZone() const
bool ImageIdHasBeenSet() const
void SetHealthStatus(HealthStatusT &&value)
const Aws::String & GetHealthStatus() const
const LaunchTemplateSpecification & GetLaunchTemplate() const
bool AutoScalingGroupNameHasBeenSet() const
AutoScalingInstanceDetails & WithImageId(ImageIdT &&value)
AutoScalingInstanceDetails & WithHealthStatus(HealthStatusT &&value)
bool LifecycleStateHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream