7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/InstanceConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cost-optimization-hub/model/Ec2AutoScalingGroupType.h>
11#include <aws/cost-optimization-hub/model/AllocationStrategy.h>
12#include <aws/cost-optimization-hub/model/MixedInstanceConfiguration.h>
25namespace CostOptimizationHub
52 template<
typename InstanceT = InstanceConfiguration>
53 void SetInstance(InstanceT&& value) { m_instanceHasBeenSet =
true; m_instance = std::forward<InstanceT>(value); }
54 template<
typename InstanceT = InstanceConfiguration>
65 template<
typename MixedInstancesT = Aws::Vector<MixedInstanceConfiguration>>
66 void SetMixedInstances(MixedInstancesT&& value) { m_mixedInstancesHasBeenSet =
true; m_mixedInstances = std::forward<MixedInstancesT>(value); }
67 template<
typename MixedInstancesT = Aws::Vector<MixedInstanceConfiguration>>
69 template<
typename MixedInstancesT = MixedInstanceConfiguration>
97 bool m_instanceHasBeenSet =
false;
100 bool m_mixedInstancesHasBeenSet =
false;
103 bool m_typeHasBeenSet =
false;
106 bool m_allocationStrategyHasBeenSet =
false;
Ec2AutoScalingGroupConfiguration & WithAllocationStrategy(AllocationStrategy value)
void SetType(Ec2AutoScalingGroupType value)
void SetInstance(InstanceT &&value)
const InstanceConfiguration & GetInstance() const
Ec2AutoScalingGroupConfiguration & AddMixedInstances(MixedInstancesT &&value)
Ec2AutoScalingGroupType GetType() const
void SetMixedInstances(MixedInstancesT &&value)
Ec2AutoScalingGroupConfiguration & WithInstance(InstanceT &&value)
bool TypeHasBeenSet() const
bool AllocationStrategyHasBeenSet() const
AWS_COSTOPTIMIZATIONHUB_API Ec2AutoScalingGroupConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAllocationStrategy(AllocationStrategy value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTOPTIMIZATIONHUB_API Ec2AutoScalingGroupConfiguration()=default
const Aws::Vector< MixedInstanceConfiguration > & GetMixedInstances() const
AllocationStrategy GetAllocationStrategy() const
Ec2AutoScalingGroupConfiguration & WithMixedInstances(MixedInstancesT &&value)
bool InstanceHasBeenSet() const
Ec2AutoScalingGroupConfiguration & WithType(Ec2AutoScalingGroupType value)
AWS_COSTOPTIMIZATIONHUB_API Ec2AutoScalingGroupConfiguration(Aws::Utils::Json::JsonView jsonValue)
bool MixedInstancesHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue