AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceDetails.h
1
6#pragma once
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 <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace CostOptimizationHub
36{
37namespace Model
38{
39
47 {
48 public:
49 AWS_COSTOPTIMIZATIONHUB_API ResourceDetails();
50 AWS_COSTOPTIMIZATIONHUB_API ResourceDetails(Aws::Utils::Json::JsonView jsonValue);
51 AWS_COSTOPTIMIZATIONHUB_API ResourceDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const LambdaFunction& GetLambdaFunction() const{ return m_lambdaFunction; }
60 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
61 inline void SetLambdaFunction(const LambdaFunction& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = value; }
62 inline void SetLambdaFunction(LambdaFunction&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::move(value); }
63 inline ResourceDetails& WithLambdaFunction(const LambdaFunction& value) { SetLambdaFunction(value); return *this;}
64 inline ResourceDetails& WithLambdaFunction(LambdaFunction&& value) { SetLambdaFunction(std::move(value)); return *this;}
66
68
71 inline const EcsService& GetEcsService() const{ return m_ecsService; }
72 inline bool EcsServiceHasBeenSet() const { return m_ecsServiceHasBeenSet; }
73 inline void SetEcsService(const EcsService& value) { m_ecsServiceHasBeenSet = true; m_ecsService = value; }
74 inline void SetEcsService(EcsService&& value) { m_ecsServiceHasBeenSet = true; m_ecsService = std::move(value); }
75 inline ResourceDetails& WithEcsService(const EcsService& value) { SetEcsService(value); return *this;}
76 inline ResourceDetails& WithEcsService(EcsService&& value) { SetEcsService(std::move(value)); return *this;}
78
80
83 inline const Ec2Instance& GetEc2Instance() const{ return m_ec2Instance; }
84 inline bool Ec2InstanceHasBeenSet() const { return m_ec2InstanceHasBeenSet; }
85 inline void SetEc2Instance(const Ec2Instance& value) { m_ec2InstanceHasBeenSet = true; m_ec2Instance = value; }
86 inline void SetEc2Instance(Ec2Instance&& value) { m_ec2InstanceHasBeenSet = true; m_ec2Instance = std::move(value); }
87 inline ResourceDetails& WithEc2Instance(const Ec2Instance& value) { SetEc2Instance(value); return *this;}
88 inline ResourceDetails& WithEc2Instance(Ec2Instance&& value) { SetEc2Instance(std::move(value)); return *this;}
90
92
95 inline const EbsVolume& GetEbsVolume() const{ return m_ebsVolume; }
96 inline bool EbsVolumeHasBeenSet() const { return m_ebsVolumeHasBeenSet; }
97 inline void SetEbsVolume(const EbsVolume& value) { m_ebsVolumeHasBeenSet = true; m_ebsVolume = value; }
98 inline void SetEbsVolume(EbsVolume&& value) { m_ebsVolumeHasBeenSet = true; m_ebsVolume = std::move(value); }
99 inline ResourceDetails& WithEbsVolume(const EbsVolume& value) { SetEbsVolume(value); return *this;}
100 inline ResourceDetails& WithEbsVolume(EbsVolume&& value) { SetEbsVolume(std::move(value)); return *this;}
102
104
107 inline const Ec2AutoScalingGroup& GetEc2AutoScalingGroup() const{ return m_ec2AutoScalingGroup; }
108 inline bool Ec2AutoScalingGroupHasBeenSet() const { return m_ec2AutoScalingGroupHasBeenSet; }
109 inline void SetEc2AutoScalingGroup(const Ec2AutoScalingGroup& value) { m_ec2AutoScalingGroupHasBeenSet = true; m_ec2AutoScalingGroup = value; }
110 inline void SetEc2AutoScalingGroup(Ec2AutoScalingGroup&& value) { m_ec2AutoScalingGroupHasBeenSet = true; m_ec2AutoScalingGroup = std::move(value); }
112 inline ResourceDetails& WithEc2AutoScalingGroup(Ec2AutoScalingGroup&& value) { SetEc2AutoScalingGroup(std::move(value)); return *this;}
114
116
119 inline const Ec2ReservedInstances& GetEc2ReservedInstances() const{ return m_ec2ReservedInstances; }
120 inline bool Ec2ReservedInstancesHasBeenSet() const { return m_ec2ReservedInstancesHasBeenSet; }
121 inline void SetEc2ReservedInstances(const Ec2ReservedInstances& value) { m_ec2ReservedInstancesHasBeenSet = true; m_ec2ReservedInstances = value; }
122 inline void SetEc2ReservedInstances(Ec2ReservedInstances&& value) { m_ec2ReservedInstancesHasBeenSet = true; m_ec2ReservedInstances = std::move(value); }
126
128
131 inline const RdsReservedInstances& GetRdsReservedInstances() const{ return m_rdsReservedInstances; }
132 inline bool RdsReservedInstancesHasBeenSet() const { return m_rdsReservedInstancesHasBeenSet; }
133 inline void SetRdsReservedInstances(const RdsReservedInstances& value) { m_rdsReservedInstancesHasBeenSet = true; m_rdsReservedInstances = value; }
134 inline void SetRdsReservedInstances(RdsReservedInstances&& value) { m_rdsReservedInstancesHasBeenSet = true; m_rdsReservedInstances = std::move(value); }
138
140
143 inline const ElastiCacheReservedInstances& GetElastiCacheReservedInstances() const{ return m_elastiCacheReservedInstances; }
144 inline bool ElastiCacheReservedInstancesHasBeenSet() const { return m_elastiCacheReservedInstancesHasBeenSet; }
145 inline void SetElastiCacheReservedInstances(const ElastiCacheReservedInstances& value) { m_elastiCacheReservedInstancesHasBeenSet = true; m_elastiCacheReservedInstances = value; }
146 inline void SetElastiCacheReservedInstances(ElastiCacheReservedInstances&& value) { m_elastiCacheReservedInstancesHasBeenSet = true; m_elastiCacheReservedInstances = std::move(value); }
150
152
155 inline const OpenSearchReservedInstances& GetOpenSearchReservedInstances() const{ return m_openSearchReservedInstances; }
156 inline bool OpenSearchReservedInstancesHasBeenSet() const { return m_openSearchReservedInstancesHasBeenSet; }
157 inline void SetOpenSearchReservedInstances(const OpenSearchReservedInstances& value) { m_openSearchReservedInstancesHasBeenSet = true; m_openSearchReservedInstances = value; }
158 inline void SetOpenSearchReservedInstances(OpenSearchReservedInstances&& value) { m_openSearchReservedInstancesHasBeenSet = true; m_openSearchReservedInstances = std::move(value); }
162
164
167 inline const RedshiftReservedInstances& GetRedshiftReservedInstances() const{ return m_redshiftReservedInstances; }
168 inline bool RedshiftReservedInstancesHasBeenSet() const { return m_redshiftReservedInstancesHasBeenSet; }
169 inline void SetRedshiftReservedInstances(const RedshiftReservedInstances& value) { m_redshiftReservedInstancesHasBeenSet = true; m_redshiftReservedInstances = value; }
170 inline void SetRedshiftReservedInstances(RedshiftReservedInstances&& value) { m_redshiftReservedInstancesHasBeenSet = true; m_redshiftReservedInstances = std::move(value); }
174
176
179 inline const Ec2InstanceSavingsPlans& GetEc2InstanceSavingsPlans() const{ return m_ec2InstanceSavingsPlans; }
180 inline bool Ec2InstanceSavingsPlansHasBeenSet() const { return m_ec2InstanceSavingsPlansHasBeenSet; }
181 inline void SetEc2InstanceSavingsPlans(const Ec2InstanceSavingsPlans& value) { m_ec2InstanceSavingsPlansHasBeenSet = true; m_ec2InstanceSavingsPlans = value; }
182 inline void SetEc2InstanceSavingsPlans(Ec2InstanceSavingsPlans&& value) { m_ec2InstanceSavingsPlansHasBeenSet = true; m_ec2InstanceSavingsPlans = std::move(value); }
186
188
191 inline const ComputeSavingsPlans& GetComputeSavingsPlans() const{ return m_computeSavingsPlans; }
192 inline bool ComputeSavingsPlansHasBeenSet() const { return m_computeSavingsPlansHasBeenSet; }
193 inline void SetComputeSavingsPlans(const ComputeSavingsPlans& value) { m_computeSavingsPlansHasBeenSet = true; m_computeSavingsPlans = value; }
194 inline void SetComputeSavingsPlans(ComputeSavingsPlans&& value) { m_computeSavingsPlansHasBeenSet = true; m_computeSavingsPlans = std::move(value); }
196 inline ResourceDetails& WithComputeSavingsPlans(ComputeSavingsPlans&& value) { SetComputeSavingsPlans(std::move(value)); return *this;}
198
200
203 inline const SageMakerSavingsPlans& GetSageMakerSavingsPlans() const{ return m_sageMakerSavingsPlans; }
204 inline bool SageMakerSavingsPlansHasBeenSet() const { return m_sageMakerSavingsPlansHasBeenSet; }
205 inline void SetSageMakerSavingsPlans(const SageMakerSavingsPlans& value) { m_sageMakerSavingsPlansHasBeenSet = true; m_sageMakerSavingsPlans = value; }
206 inline void SetSageMakerSavingsPlans(SageMakerSavingsPlans&& value) { m_sageMakerSavingsPlansHasBeenSet = true; m_sageMakerSavingsPlans = std::move(value); }
210
212
215 inline const RdsDbInstance& GetRdsDbInstance() const{ return m_rdsDbInstance; }
216 inline bool RdsDbInstanceHasBeenSet() const { return m_rdsDbInstanceHasBeenSet; }
217 inline void SetRdsDbInstance(const RdsDbInstance& value) { m_rdsDbInstanceHasBeenSet = true; m_rdsDbInstance = value; }
218 inline void SetRdsDbInstance(RdsDbInstance&& value) { m_rdsDbInstanceHasBeenSet = true; m_rdsDbInstance = std::move(value); }
219 inline ResourceDetails& WithRdsDbInstance(const RdsDbInstance& value) { SetRdsDbInstance(value); return *this;}
220 inline ResourceDetails& WithRdsDbInstance(RdsDbInstance&& value) { SetRdsDbInstance(std::move(value)); return *this;}
222
224
227 inline const RdsDbInstanceStorage& GetRdsDbInstanceStorage() const{ return m_rdsDbInstanceStorage; }
228 inline bool RdsDbInstanceStorageHasBeenSet() const { return m_rdsDbInstanceStorageHasBeenSet; }
229 inline void SetRdsDbInstanceStorage(const RdsDbInstanceStorage& value) { m_rdsDbInstanceStorageHasBeenSet = true; m_rdsDbInstanceStorage = value; }
230 inline void SetRdsDbInstanceStorage(RdsDbInstanceStorage&& value) { m_rdsDbInstanceStorageHasBeenSet = true; m_rdsDbInstanceStorage = std::move(value); }
234 private:
235
236 LambdaFunction m_lambdaFunction;
237 bool m_lambdaFunctionHasBeenSet = false;
238
239 EcsService m_ecsService;
240 bool m_ecsServiceHasBeenSet = false;
241
242 Ec2Instance m_ec2Instance;
243 bool m_ec2InstanceHasBeenSet = false;
244
245 EbsVolume m_ebsVolume;
246 bool m_ebsVolumeHasBeenSet = false;
247
248 Ec2AutoScalingGroup m_ec2AutoScalingGroup;
249 bool m_ec2AutoScalingGroupHasBeenSet = false;
250
251 Ec2ReservedInstances m_ec2ReservedInstances;
252 bool m_ec2ReservedInstancesHasBeenSet = false;
253
254 RdsReservedInstances m_rdsReservedInstances;
255 bool m_rdsReservedInstancesHasBeenSet = false;
256
257 ElastiCacheReservedInstances m_elastiCacheReservedInstances;
258 bool m_elastiCacheReservedInstancesHasBeenSet = false;
259
260 OpenSearchReservedInstances m_openSearchReservedInstances;
261 bool m_openSearchReservedInstancesHasBeenSet = false;
262
263 RedshiftReservedInstances m_redshiftReservedInstances;
264 bool m_redshiftReservedInstancesHasBeenSet = false;
265
266 Ec2InstanceSavingsPlans m_ec2InstanceSavingsPlans;
267 bool m_ec2InstanceSavingsPlansHasBeenSet = false;
268
269 ComputeSavingsPlans m_computeSavingsPlans;
270 bool m_computeSavingsPlansHasBeenSet = false;
271
272 SageMakerSavingsPlans m_sageMakerSavingsPlans;
273 bool m_sageMakerSavingsPlansHasBeenSet = false;
274
275 RdsDbInstance m_rdsDbInstance;
276 bool m_rdsDbInstanceHasBeenSet = false;
277
278 RdsDbInstanceStorage m_rdsDbInstanceStorage;
279 bool m_rdsDbInstanceStorageHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace CostOptimizationHub
284} // namespace Aws
void SetRdsDbInstanceStorage(const RdsDbInstanceStorage &value)
ResourceDetails & WithRdsDbInstanceStorage(RdsDbInstanceStorage &&value)
const Ec2AutoScalingGroup & GetEc2AutoScalingGroup() const
ResourceDetails & WithComputeSavingsPlans(const ComputeSavingsPlans &value)
void SetOpenSearchReservedInstances(const OpenSearchReservedInstances &value)
ResourceDetails & WithRdsReservedInstances(const RdsReservedInstances &value)
AWS_COSTOPTIMIZATIONHUB_API ResourceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceDetails & WithSageMakerSavingsPlans(SageMakerSavingsPlans &&value)
const RedshiftReservedInstances & GetRedshiftReservedInstances() const
void SetElastiCacheReservedInstances(const ElastiCacheReservedInstances &value)
ResourceDetails & WithEbsVolume(const EbsVolume &value)
void SetEc2InstanceSavingsPlans(const Ec2InstanceSavingsPlans &value)
ResourceDetails & WithRedshiftReservedInstances(RedshiftReservedInstances &&value)
void SetEc2AutoScalingGroup(const Ec2AutoScalingGroup &value)
void SetLambdaFunction(const LambdaFunction &value)
ResourceDetails & WithRdsDbInstance(RdsDbInstance &&value)
ResourceDetails & WithEc2Instance(Ec2Instance &&value)
ResourceDetails & WithElastiCacheReservedInstances(const ElastiCacheReservedInstances &value)
ResourceDetails & WithOpenSearchReservedInstances(const OpenSearchReservedInstances &value)
ResourceDetails & WithEc2InstanceSavingsPlans(const Ec2InstanceSavingsPlans &value)
ResourceDetails & WithEc2ReservedInstances(Ec2ReservedInstances &&value)
const Ec2InstanceSavingsPlans & GetEc2InstanceSavingsPlans() const
ResourceDetails & WithLambdaFunction(const LambdaFunction &value)
ResourceDetails & WithRdsReservedInstances(RdsReservedInstances &&value)
void SetEc2AutoScalingGroup(Ec2AutoScalingGroup &&value)
void SetRdsReservedInstances(RdsReservedInstances &&value)
ResourceDetails & WithOpenSearchReservedInstances(OpenSearchReservedInstances &&value)
ResourceDetails & WithComputeSavingsPlans(ComputeSavingsPlans &&value)
void SetEc2Instance(const Ec2Instance &value)
ResourceDetails & WithEc2ReservedInstances(const Ec2ReservedInstances &value)
void SetRedshiftReservedInstances(RedshiftReservedInstances &&value)
ResourceDetails & WithElastiCacheReservedInstances(ElastiCacheReservedInstances &&value)
const RdsReservedInstances & GetRdsReservedInstances() const
void SetSageMakerSavingsPlans(SageMakerSavingsPlans &&value)
ResourceDetails & WithEc2Instance(const Ec2Instance &value)
ResourceDetails & WithEcsService(const EcsService &value)
void SetRedshiftReservedInstances(const RedshiftReservedInstances &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSageMakerSavingsPlans(const SageMakerSavingsPlans &value)
void SetElastiCacheReservedInstances(ElastiCacheReservedInstances &&value)
const OpenSearchReservedInstances & GetOpenSearchReservedInstances() const
void SetEc2ReservedInstances(const Ec2ReservedInstances &value)
void SetOpenSearchReservedInstances(OpenSearchReservedInstances &&value)
ResourceDetails & WithRdsDbInstanceStorage(const RdsDbInstanceStorage &value)
const LambdaFunction & GetLambdaFunction() const
ResourceDetails & WithEcsService(EcsService &&value)
const ElastiCacheReservedInstances & GetElastiCacheReservedInstances() const
ResourceDetails & WithRdsDbInstance(const RdsDbInstance &value)
const Ec2ReservedInstances & GetEc2ReservedInstances() const
const SageMakerSavingsPlans & GetSageMakerSavingsPlans() const
AWS_COSTOPTIMIZATIONHUB_API ResourceDetails(Aws::Utils::Json::JsonView jsonValue)
ResourceDetails & WithSageMakerSavingsPlans(const SageMakerSavingsPlans &value)
void SetRdsReservedInstances(const RdsReservedInstances &value)
ResourceDetails & WithEc2AutoScalingGroup(const Ec2AutoScalingGroup &value)
const RdsDbInstanceStorage & GetRdsDbInstanceStorage() const
void SetComputeSavingsPlans(ComputeSavingsPlans &&value)
ResourceDetails & WithRedshiftReservedInstances(const RedshiftReservedInstances &value)
ResourceDetails & WithLambdaFunction(LambdaFunction &&value)
void SetRdsDbInstance(const RdsDbInstance &value)
ResourceDetails & WithEc2InstanceSavingsPlans(Ec2InstanceSavingsPlans &&value)
ResourceDetails & WithEc2AutoScalingGroup(Ec2AutoScalingGroup &&value)
const ComputeSavingsPlans & GetComputeSavingsPlans() const
void SetEc2ReservedInstances(Ec2ReservedInstances &&value)
ResourceDetails & WithEbsVolume(EbsVolume &&value)
AWS_COSTOPTIMIZATIONHUB_API ResourceDetails()
void SetRdsDbInstanceStorage(RdsDbInstanceStorage &&value)
void SetEc2InstanceSavingsPlans(Ec2InstanceSavingsPlans &&value)
void SetComputeSavingsPlans(const ComputeSavingsPlans &value)
Aws::Utils::Json::JsonValue JsonValue