7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/LambdaFunction.h>
9#include <aws/cost-optimization-hub/model/EcsService.h>
10#include <aws/cost-optimization-hub/model/Ec2Instance.h>
11#include <aws/cost-optimization-hub/model/EbsVolume.h>
12#include <aws/cost-optimization-hub/model/Ec2AutoScalingGroup.h>
13#include <aws/cost-optimization-hub/model/Ec2ReservedInstances.h>
14#include <aws/cost-optimization-hub/model/RdsReservedInstances.h>
15#include <aws/cost-optimization-hub/model/ElastiCacheReservedInstances.h>
16#include <aws/cost-optimization-hub/model/OpenSearchReservedInstances.h>
17#include <aws/cost-optimization-hub/model/RedshiftReservedInstances.h>
18#include <aws/cost-optimization-hub/model/Ec2InstanceSavingsPlans.h>
19#include <aws/cost-optimization-hub/model/ComputeSavingsPlans.h>
20#include <aws/cost-optimization-hub/model/SageMakerSavingsPlans.h>
21#include <aws/cost-optimization-hub/model/RdsDbInstance.h>
22#include <aws/cost-optimization-hub/model/RdsDbInstanceStorage.h>
23#include <aws/cost-optimization-hub/model/AuroraDbClusterStorage.h>
24#include <aws/cost-optimization-hub/model/DynamoDbReservedCapacity.h>
25#include <aws/cost-optimization-hub/model/MemoryDbReservedInstances.h>
38namespace CostOptimizationHub
64 template<
typename LambdaFunctionT = LambdaFunction>
65 void SetLambdaFunction(LambdaFunctionT&& value) { m_lambdaFunctionHasBeenSet =
true; m_lambdaFunction = std::forward<LambdaFunctionT>(value); }
66 template<
typename LambdaFunctionT = LambdaFunction>
76 template<
typename EcsServiceT = EcsService>
77 void SetEcsService(EcsServiceT&& value) { m_ecsServiceHasBeenSet =
true; m_ecsService = std::forward<EcsServiceT>(value); }
78 template<
typename EcsServiceT = EcsService>
88 template<
typename Ec2InstanceT = Ec2Instance>
89 void SetEc2Instance(Ec2InstanceT&& value) { m_ec2InstanceHasBeenSet =
true; m_ec2Instance = std::forward<Ec2InstanceT>(value); }
90 template<
typename Ec2InstanceT = Ec2Instance>
100 template<
typename EbsVolumeT = EbsVolume>
101 void SetEbsVolume(EbsVolumeT&& value) { m_ebsVolumeHasBeenSet =
true; m_ebsVolume = std::forward<EbsVolumeT>(value); }
102 template<
typename EbsVolumeT = EbsVolume>
112 template<
typename Ec2AutoScalingGroupT = Ec2AutoScalingGroup>
113 void SetEc2AutoScalingGroup(Ec2AutoScalingGroupT&& value) { m_ec2AutoScalingGroupHasBeenSet =
true; m_ec2AutoScalingGroup = std::forward<Ec2AutoScalingGroupT>(value); }
114 template<
typename Ec2AutoScalingGroupT = Ec2AutoScalingGroup>
124 template<
typename Ec2ReservedInstancesT = Ec2ReservedInstances>
125 void SetEc2ReservedInstances(Ec2ReservedInstancesT&& value) { m_ec2ReservedInstancesHasBeenSet =
true; m_ec2ReservedInstances = std::forward<Ec2ReservedInstancesT>(value); }
126 template<
typename Ec2ReservedInstancesT = Ec2ReservedInstances>
136 template<
typename RdsReservedInstancesT = RdsReservedInstances>
137 void SetRdsReservedInstances(RdsReservedInstancesT&& value) { m_rdsReservedInstancesHasBeenSet =
true; m_rdsReservedInstances = std::forward<RdsReservedInstancesT>(value); }
138 template<
typename RdsReservedInstancesT = RdsReservedInstances>
148 template<
typename ElastiCacheReservedInstancesT = ElastiCacheReservedInstances>
149 void SetElastiCacheReservedInstances(ElastiCacheReservedInstancesT&& value) { m_elastiCacheReservedInstancesHasBeenSet =
true; m_elastiCacheReservedInstances = std::forward<ElastiCacheReservedInstancesT>(value); }
150 template<
typename ElastiCacheReservedInstancesT = ElastiCacheReservedInstances>
160 template<
typename OpenSearchReservedInstancesT = OpenSearchReservedInstances>
161 void SetOpenSearchReservedInstances(OpenSearchReservedInstancesT&& value) { m_openSearchReservedInstancesHasBeenSet =
true; m_openSearchReservedInstances = std::forward<OpenSearchReservedInstancesT>(value); }
162 template<
typename OpenSearchReservedInstancesT = OpenSearchReservedInstances>
172 template<
typename RedshiftReservedInstancesT = RedshiftReservedInstances>
173 void SetRedshiftReservedInstances(RedshiftReservedInstancesT&& value) { m_redshiftReservedInstancesHasBeenSet =
true; m_redshiftReservedInstances = std::forward<RedshiftReservedInstancesT>(value); }
174 template<
typename RedshiftReservedInstancesT = RedshiftReservedInstances>
184 template<
typename Ec2InstanceSavingsPlansT = Ec2InstanceSavingsPlans>
185 void SetEc2InstanceSavingsPlans(Ec2InstanceSavingsPlansT&& value) { m_ec2InstanceSavingsPlansHasBeenSet =
true; m_ec2InstanceSavingsPlans = std::forward<Ec2InstanceSavingsPlansT>(value); }
186 template<
typename Ec2InstanceSavingsPlansT = Ec2InstanceSavingsPlans>
196 template<
typename ComputeSavingsPlansT = ComputeSavingsPlans>
197 void SetComputeSavingsPlans(ComputeSavingsPlansT&& value) { m_computeSavingsPlansHasBeenSet =
true; m_computeSavingsPlans = std::forward<ComputeSavingsPlansT>(value); }
198 template<
typename ComputeSavingsPlansT = ComputeSavingsPlans>
208 template<
typename SageMakerSavingsPlansT = SageMakerSavingsPlans>
209 void SetSageMakerSavingsPlans(SageMakerSavingsPlansT&& value) { m_sageMakerSavingsPlansHasBeenSet =
true; m_sageMakerSavingsPlans = std::forward<SageMakerSavingsPlansT>(value); }
210 template<
typename SageMakerSavingsPlansT = SageMakerSavingsPlans>
220 template<
typename RdsDbInstanceT = RdsDbInstance>
221 void SetRdsDbInstance(RdsDbInstanceT&& value) { m_rdsDbInstanceHasBeenSet =
true; m_rdsDbInstance = std::forward<RdsDbInstanceT>(value); }
222 template<
typename RdsDbInstanceT = RdsDbInstance>
232 template<
typename RdsDbInstanceStorageT = RdsDbInstanceStorage>
233 void SetRdsDbInstanceStorage(RdsDbInstanceStorageT&& value) { m_rdsDbInstanceStorageHasBeenSet =
true; m_rdsDbInstanceStorage = std::forward<RdsDbInstanceStorageT>(value); }
234 template<
typename RdsDbInstanceStorageT = RdsDbInstanceStorage>
244 template<
typename AuroraDbClusterStorageT = AuroraDbClusterStorage>
245 void SetAuroraDbClusterStorage(AuroraDbClusterStorageT&& value) { m_auroraDbClusterStorageHasBeenSet =
true; m_auroraDbClusterStorage = std::forward<AuroraDbClusterStorageT>(value); }
246 template<
typename AuroraDbClusterStorageT = AuroraDbClusterStorage>
256 template<
typename DynamoDbReservedCapacityT = DynamoDbReservedCapacity>
257 void SetDynamoDbReservedCapacity(DynamoDbReservedCapacityT&& value) { m_dynamoDbReservedCapacityHasBeenSet =
true; m_dynamoDbReservedCapacity = std::forward<DynamoDbReservedCapacityT>(value); }
258 template<
typename DynamoDbReservedCapacityT = DynamoDbReservedCapacity>
268 template<
typename MemoryDbReservedInstancesT = MemoryDbReservedInstances>
269 void SetMemoryDbReservedInstances(MemoryDbReservedInstancesT&& value) { m_memoryDbReservedInstancesHasBeenSet =
true; m_memoryDbReservedInstances = std::forward<MemoryDbReservedInstancesT>(value); }
270 template<
typename MemoryDbReservedInstancesT = MemoryDbReservedInstances>
276 bool m_lambdaFunctionHasBeenSet =
false;
279 bool m_ecsServiceHasBeenSet =
false;
282 bool m_ec2InstanceHasBeenSet =
false;
285 bool m_ebsVolumeHasBeenSet =
false;
288 bool m_ec2AutoScalingGroupHasBeenSet =
false;
291 bool m_ec2ReservedInstancesHasBeenSet =
false;
294 bool m_rdsReservedInstancesHasBeenSet =
false;
297 bool m_elastiCacheReservedInstancesHasBeenSet =
false;
300 bool m_openSearchReservedInstancesHasBeenSet =
false;
303 bool m_redshiftReservedInstancesHasBeenSet =
false;
306 bool m_ec2InstanceSavingsPlansHasBeenSet =
false;
309 bool m_computeSavingsPlansHasBeenSet =
false;
312 bool m_sageMakerSavingsPlansHasBeenSet =
false;
315 bool m_rdsDbInstanceHasBeenSet =
false;
318 bool m_rdsDbInstanceStorageHasBeenSet =
false;
321 bool m_auroraDbClusterStorageHasBeenSet =
false;
324 bool m_dynamoDbReservedCapacityHasBeenSet =
false;
327 bool m_memoryDbReservedInstancesHasBeenSet =
false;
void SetEc2ReservedInstances(Ec2ReservedInstancesT &&value)
const Ec2AutoScalingGroup & GetEc2AutoScalingGroup() const
bool SageMakerSavingsPlansHasBeenSet() const
bool ElastiCacheReservedInstancesHasBeenSet() const
ResourceDetails & WithMemoryDbReservedInstances(MemoryDbReservedInstancesT &&value)
ResourceDetails & WithEc2InstanceSavingsPlans(Ec2InstanceSavingsPlansT &&value)
AWS_COSTOPTIMIZATIONHUB_API ResourceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const AuroraDbClusterStorage & GetAuroraDbClusterStorage() const
bool EbsVolumeHasBeenSet() const
const RedshiftReservedInstances & GetRedshiftReservedInstances() const
void SetEcsService(EcsServiceT &&value)
ResourceDetails & WithRdsDbInstanceStorage(RdsDbInstanceStorageT &&value)
ResourceDetails & WithOpenSearchReservedInstances(OpenSearchReservedInstancesT &&value)
const Ec2Instance & GetEc2Instance() const
bool Ec2AutoScalingGroupHasBeenSet() const
ResourceDetails & WithEbsVolume(EbsVolumeT &&value)
bool RdsDbInstanceStorageHasBeenSet() const
ResourceDetails & WithEc2AutoScalingGroup(Ec2AutoScalingGroupT &&value)
void SetRdsDbInstanceStorage(RdsDbInstanceStorageT &&value)
const Ec2InstanceSavingsPlans & GetEc2InstanceSavingsPlans() const
bool LambdaFunctionHasBeenSet() const
bool AuroraDbClusterStorageHasBeenSet() const
ResourceDetails & WithRdsReservedInstances(RdsReservedInstancesT &&value)
const EbsVolume & GetEbsVolume() const
void SetEc2InstanceSavingsPlans(Ec2InstanceSavingsPlansT &&value)
ResourceDetails & WithComputeSavingsPlans(ComputeSavingsPlansT &&value)
ResourceDetails & WithDynamoDbReservedCapacity(DynamoDbReservedCapacityT &&value)
void SetLambdaFunction(LambdaFunctionT &&value)
const RdsDbInstance & GetRdsDbInstance() const
const MemoryDbReservedInstances & GetMemoryDbReservedInstances() const
const RdsReservedInstances & GetRdsReservedInstances() const
ResourceDetails & WithEc2Instance(Ec2InstanceT &&value)
ResourceDetails & WithRdsDbInstance(RdsDbInstanceT &&value)
const DynamoDbReservedCapacity & GetDynamoDbReservedCapacity() const
void SetRdsReservedInstances(RdsReservedInstancesT &&value)
void SetComputeSavingsPlans(ComputeSavingsPlansT &&value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceDetails & WithElastiCacheReservedInstances(ElastiCacheReservedInstancesT &&value)
void SetEbsVolume(EbsVolumeT &&value)
bool Ec2InstanceSavingsPlansHasBeenSet() const
const EcsService & GetEcsService() const
bool OpenSearchReservedInstancesHasBeenSet() const
void SetAuroraDbClusterStorage(AuroraDbClusterStorageT &&value)
bool RdsReservedInstancesHasBeenSet() const
void SetSageMakerSavingsPlans(SageMakerSavingsPlansT &&value)
void SetEc2AutoScalingGroup(Ec2AutoScalingGroupT &&value)
void SetOpenSearchReservedInstances(OpenSearchReservedInstancesT &&value)
bool DynamoDbReservedCapacityHasBeenSet() const
void SetElastiCacheReservedInstances(ElastiCacheReservedInstancesT &&value)
ResourceDetails & WithSageMakerSavingsPlans(SageMakerSavingsPlansT &&value)
bool Ec2InstanceHasBeenSet() const
const OpenSearchReservedInstances & GetOpenSearchReservedInstances() const
bool MemoryDbReservedInstancesHasBeenSet() const
void SetMemoryDbReservedInstances(MemoryDbReservedInstancesT &&value)
ResourceDetails & WithAuroraDbClusterStorage(AuroraDbClusterStorageT &&value)
ResourceDetails & WithRedshiftReservedInstances(RedshiftReservedInstancesT &&value)
ResourceDetails & WithEc2ReservedInstances(Ec2ReservedInstancesT &&value)
const LambdaFunction & GetLambdaFunction() const
bool ComputeSavingsPlansHasBeenSet() const
ResourceDetails & WithEcsService(EcsServiceT &&value)
void SetEc2Instance(Ec2InstanceT &&value)
void SetDynamoDbReservedCapacity(DynamoDbReservedCapacityT &&value)
bool EcsServiceHasBeenSet() const
const ElastiCacheReservedInstances & GetElastiCacheReservedInstances() const
const Ec2ReservedInstances & GetEc2ReservedInstances() const
const SageMakerSavingsPlans & GetSageMakerSavingsPlans() const
AWS_COSTOPTIMIZATIONHUB_API ResourceDetails(Aws::Utils::Json::JsonView jsonValue)
const RdsDbInstanceStorage & GetRdsDbInstanceStorage() const
bool RedshiftReservedInstancesHasBeenSet() const
bool Ec2ReservedInstancesHasBeenSet() const
bool RdsDbInstanceHasBeenSet() const
AWS_COSTOPTIMIZATIONHUB_API ResourceDetails()=default
const ComputeSavingsPlans & GetComputeSavingsPlans() const
void SetRedshiftReservedInstances(RedshiftReservedInstancesT &&value)
void SetRdsDbInstance(RdsDbInstanceT &&value)
ResourceDetails & WithLambdaFunction(LambdaFunctionT &&value)
Aws::Utils::Json::JsonValue JsonValue