AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2InstanceSavingsPlans.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/Ec2InstanceSavingsPlansConfiguration.h>
9#include <aws/cost-optimization-hub/model/SavingsPlansCostCalculation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostOptimizationHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COSTOPTIMIZATIONHUB_API Ec2InstanceSavingsPlans();
37 AWS_COSTOPTIMIZATIONHUB_API Ec2InstanceSavingsPlans(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API Ec2InstanceSavingsPlans& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Ec2InstanceSavingsPlansConfiguration& GetConfiguration() const{ return m_configuration; }
47 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
48 inline void SetConfiguration(const Ec2InstanceSavingsPlansConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
49 inline void SetConfiguration(Ec2InstanceSavingsPlansConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
53
55
58 inline const SavingsPlansCostCalculation& GetCostCalculation() const{ return m_costCalculation; }
59 inline bool CostCalculationHasBeenSet() const { return m_costCalculationHasBeenSet; }
60 inline void SetCostCalculation(const SavingsPlansCostCalculation& value) { m_costCalculationHasBeenSet = true; m_costCalculation = value; }
61 inline void SetCostCalculation(SavingsPlansCostCalculation&& value) { m_costCalculationHasBeenSet = true; m_costCalculation = std::move(value); }
65 private:
66
68 bool m_configurationHasBeenSet = false;
69
70 SavingsPlansCostCalculation m_costCalculation;
71 bool m_costCalculationHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CostOptimizationHub
76} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API Ec2InstanceSavingsPlans(Aws::Utils::Json::JsonView jsonValue)
const SavingsPlansCostCalculation & GetCostCalculation() const
void SetCostCalculation(const SavingsPlansCostCalculation &value)
void SetCostCalculation(SavingsPlansCostCalculation &&value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConfiguration(const Ec2InstanceSavingsPlansConfiguration &value)
Ec2InstanceSavingsPlans & WithCostCalculation(const SavingsPlansCostCalculation &value)
Ec2InstanceSavingsPlans & WithCostCalculation(SavingsPlansCostCalculation &&value)
Ec2InstanceSavingsPlans & WithConfiguration(Ec2InstanceSavingsPlansConfiguration &&value)
Ec2InstanceSavingsPlans & WithConfiguration(const Ec2InstanceSavingsPlansConfiguration &value)
const Ec2InstanceSavingsPlansConfiguration & GetConfiguration() const
void SetConfiguration(Ec2InstanceSavingsPlansConfiguration &&value)
AWS_COSTOPTIMIZATIONHUB_API Ec2InstanceSavingsPlans & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue