AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ElastiCacheReservedInstances.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/ElastiCacheReservedInstancesConfiguration.h>
9#include <aws/cost-optimization-hub/model/ReservedInstancesCostCalculation.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 ElastiCacheReservedInstances();
37 AWS_COSTOPTIMIZATIONHUB_API ElastiCacheReservedInstances(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API ElastiCacheReservedInstances& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const ElastiCacheReservedInstancesConfiguration& GetConfiguration() const{ return m_configuration; }
48 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
49 inline void SetConfiguration(const ElastiCacheReservedInstancesConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
50 inline void SetConfiguration(ElastiCacheReservedInstancesConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
54
56
59 inline const ReservedInstancesCostCalculation& GetCostCalculation() const{ return m_costCalculation; }
60 inline bool CostCalculationHasBeenSet() const { return m_costCalculationHasBeenSet; }
61 inline void SetCostCalculation(const ReservedInstancesCostCalculation& value) { m_costCalculationHasBeenSet = true; m_costCalculation = value; }
62 inline void SetCostCalculation(ReservedInstancesCostCalculation&& value) { m_costCalculationHasBeenSet = true; m_costCalculation = std::move(value); }
66 private:
67
69 bool m_configurationHasBeenSet = false;
70
71 ReservedInstancesCostCalculation m_costCalculation;
72 bool m_costCalculationHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CostOptimizationHub
77} // namespace Aws
ElastiCacheReservedInstances & WithConfiguration(ElastiCacheReservedInstancesConfiguration &&value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const ElastiCacheReservedInstancesConfiguration & GetConfiguration() const
AWS_COSTOPTIMIZATIONHUB_API ElastiCacheReservedInstances(Aws::Utils::Json::JsonView jsonValue)
ElastiCacheReservedInstances & WithCostCalculation(ReservedInstancesCostCalculation &&value)
AWS_COSTOPTIMIZATIONHUB_API ElastiCacheReservedInstances & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfiguration(ElastiCacheReservedInstancesConfiguration &&value)
void SetCostCalculation(const ReservedInstancesCostCalculation &value)
const ReservedInstancesCostCalculation & GetCostCalculation() const
void SetConfiguration(const ElastiCacheReservedInstancesConfiguration &value)
ElastiCacheReservedInstances & WithConfiguration(const ElastiCacheReservedInstancesConfiguration &value)
ElastiCacheReservedInstances & WithCostCalculation(const ReservedInstancesCostCalculation &value)
void SetCostCalculation(ReservedInstancesCostCalculation &&value)
Aws::Utils::Json::JsonValue JsonValue