7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/Ec2InstanceConfiguration.h>
9#include <aws/cost-optimization-hub/model/ResourceCostCalculation.h>
22namespace CostOptimizationHub
48 template<
typename ConfigurationT = Ec2InstanceConfiguration>
49 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet =
true; m_configuration = std::forward<ConfigurationT>(value); }
50 template<
typename ConfigurationT = Ec2InstanceConfiguration>
60 template<
typename CostCalculationT = ResourceCostCalculation>
61 void SetCostCalculation(CostCalculationT&& value) { m_costCalculationHasBeenSet =
true; m_costCalculation = std::forward<CostCalculationT>(value); }
62 template<
typename CostCalculationT = ResourceCostCalculation>
68 bool m_configurationHasBeenSet =
false;
71 bool m_costCalculationHasBeenSet =
false;
bool ConfigurationHasBeenSet() const
const ResourceCostCalculation & GetCostCalculation() const
AWS_COSTOPTIMIZATIONHUB_API Ec2Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Ec2Instance & WithCostCalculation(CostCalculationT &&value)
AWS_COSTOPTIMIZATIONHUB_API Ec2Instance()=default
void SetConfiguration(ConfigurationT &&value)
bool CostCalculationHasBeenSet() const
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCostCalculation(CostCalculationT &&value)
Ec2Instance & WithConfiguration(ConfigurationT &&value)
const Ec2InstanceConfiguration & GetConfiguration() const
AWS_COSTOPTIMIZATIONHUB_API Ec2Instance(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue