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>
50 template<
typename InstanceIdT = Aws::String>
51 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
52 template<
typename InstanceIdT = Aws::String>
62 template<
typename InstanceTypeT = Aws::String>
63 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet =
true; m_instanceType = std::forward<InstanceTypeT>(value); }
64 template<
typename InstanceTypeT = Aws::String>
74 template<
typename AutoScalingGroupNameT = Aws::String>
75 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet =
true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
76 template<
typename AutoScalingGroupNameT = Aws::String>
86 template<
typename AvailabilityZoneT = Aws::String>
87 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
88 template<
typename AvailabilityZoneT = Aws::String>
112 template<
typename LifecycleStateT = Aws::String>
113 void SetLifecycleState(LifecycleStateT&& value) { m_lifecycleStateHasBeenSet =
true; m_lifecycleState = std::forward<LifecycleStateT>(value); }
114 template<
typename LifecycleStateT = Aws::String>
127 template<
typename HealthStatusT = Aws::String>
128 void SetHealthStatus(HealthStatusT&& value) { m_healthStatusHasBeenSet =
true; m_healthStatus = std::forward<HealthStatusT>(value); }
129 template<
typename HealthStatusT = Aws::String>
140 template<
typename LaunchConfigurationNameT = Aws::String>
141 void SetLaunchConfigurationName(LaunchConfigurationNameT&& value) { m_launchConfigurationNameHasBeenSet =
true; m_launchConfigurationName = std::forward<LaunchConfigurationNameT>(value); }
142 template<
typename LaunchConfigurationNameT = Aws::String>
152 template<
typename LaunchTemplateT = LaunchTemplateSpecification>
153 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet =
true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
154 template<
typename LaunchTemplateT = LaunchTemplateSpecification>
176 template<
typename WeightedCapacityT = Aws::String>
177 void SetWeightedCapacity(WeightedCapacityT&& value) { m_weightedCapacityHasBeenSet =
true; m_weightedCapacity = std::forward<WeightedCapacityT>(value); }
178 template<
typename WeightedCapacityT = Aws::String>
184 bool m_instanceIdHasBeenSet =
false;
187 bool m_instanceTypeHasBeenSet =
false;
190 bool m_autoScalingGroupNameHasBeenSet =
false;
193 bool m_availabilityZoneHasBeenSet =
false;
196 bool m_lifecycleStateHasBeenSet =
false;
199 bool m_healthStatusHasBeenSet =
false;
202 bool m_launchConfigurationNameHasBeenSet =
false;
205 bool m_launchTemplateHasBeenSet =
false;
207 bool m_protectedFromScaleIn{
false};
208 bool m_protectedFromScaleInHasBeenSet =
false;
211 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 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)
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
void SetHealthStatus(HealthStatusT &&value)
const Aws::String & GetHealthStatus() const
const LaunchTemplateSpecification & GetLaunchTemplate() const
bool AutoScalingGroupNameHasBeenSet() const
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