AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RdsDbInstance.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/RdsDbInstanceConfiguration.h>
9#include <aws/cost-optimization-hub/model/ResourceCostCalculation.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostOptimizationHub {
21namespace Model {
22
30 public:
31 AWS_COSTOPTIMIZATIONHUB_API RdsDbInstance() = default;
32 AWS_COSTOPTIMIZATIONHUB_API RdsDbInstance(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API RdsDbInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const RdsDbInstanceConfiguration& GetConfiguration() const { return m_configuration; }
41 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
42 template <typename ConfigurationT = RdsDbInstanceConfiguration>
43 void SetConfiguration(ConfigurationT&& value) {
44 m_configurationHasBeenSet = true;
45 m_configuration = std::forward<ConfigurationT>(value);
46 }
47 template <typename ConfigurationT = RdsDbInstanceConfiguration>
48 RdsDbInstance& WithConfiguration(ConfigurationT&& value) {
49 SetConfiguration(std::forward<ConfigurationT>(value));
50 return *this;
51 }
53
55
56 inline const ResourceCostCalculation& GetCostCalculation() const { return m_costCalculation; }
57 inline bool CostCalculationHasBeenSet() const { return m_costCalculationHasBeenSet; }
58 template <typename CostCalculationT = ResourceCostCalculation>
59 void SetCostCalculation(CostCalculationT&& value) {
60 m_costCalculationHasBeenSet = true;
61 m_costCalculation = std::forward<CostCalculationT>(value);
62 }
63 template <typename CostCalculationT = ResourceCostCalculation>
64 RdsDbInstance& WithCostCalculation(CostCalculationT&& value) {
65 SetCostCalculation(std::forward<CostCalculationT>(value));
66 return *this;
67 }
69 private:
70 RdsDbInstanceConfiguration m_configuration;
71
72 ResourceCostCalculation m_costCalculation;
73 bool m_configurationHasBeenSet = false;
74 bool m_costCalculationHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CostOptimizationHub
79} // namespace Aws
RdsDbInstance & WithConfiguration(ConfigurationT &&value)
AWS_COSTOPTIMIZATIONHUB_API RdsDbInstance(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const ResourceCostCalculation & GetCostCalculation() const
RdsDbInstance & WithCostCalculation(CostCalculationT &&value)
AWS_COSTOPTIMIZATIONHUB_API RdsDbInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
const RdsDbInstanceConfiguration & GetConfiguration() const
AWS_COSTOPTIMIZATIONHUB_API RdsDbInstance()=default
void SetConfiguration(ConfigurationT &&value)
void SetCostCalculation(CostCalculationT &&value)
Aws::Utils::Json::JsonValue JsonValue