AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
RdsDbInstanceStorage.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/RdsDbInstanceStorageConfiguration.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 RdsDbInstanceStorage() = default;
32 AWS_COSTOPTIMIZATIONHUB_API RdsDbInstanceStorage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API RdsDbInstanceStorage& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const RdsDbInstanceStorageConfiguration& GetConfiguration() const { return m_configuration; }
42 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
43 template <typename ConfigurationT = RdsDbInstanceStorageConfiguration>
44 void SetConfiguration(ConfigurationT&& value) {
45 m_configurationHasBeenSet = true;
46 m_configuration = std::forward<ConfigurationT>(value);
47 }
48 template <typename ConfigurationT = RdsDbInstanceStorageConfiguration>
49 RdsDbInstanceStorage& WithConfiguration(ConfigurationT&& value) {
50 SetConfiguration(std::forward<ConfigurationT>(value));
51 return *this;
52 }
54
56
57 inline const ResourceCostCalculation& GetCostCalculation() const { return m_costCalculation; }
58 inline bool CostCalculationHasBeenSet() const { return m_costCalculationHasBeenSet; }
59 template <typename CostCalculationT = ResourceCostCalculation>
60 void SetCostCalculation(CostCalculationT&& value) {
61 m_costCalculationHasBeenSet = true;
62 m_costCalculation = std::forward<CostCalculationT>(value);
63 }
64 template <typename CostCalculationT = ResourceCostCalculation>
65 RdsDbInstanceStorage& WithCostCalculation(CostCalculationT&& value) {
66 SetCostCalculation(std::forward<CostCalculationT>(value));
67 return *this;
68 }
70 private:
72
73 ResourceCostCalculation m_costCalculation;
74 bool m_configurationHasBeenSet = false;
75 bool m_costCalculationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CostOptimizationHub
80} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API RdsDbInstanceStorage(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTOPTIMIZATIONHUB_API RdsDbInstanceStorage()=default
const RdsDbInstanceStorageConfiguration & GetConfiguration() const
RdsDbInstanceStorage & WithCostCalculation(CostCalculationT &&value)
RdsDbInstanceStorage & WithConfiguration(ConfigurationT &&value)
AWS_COSTOPTIMIZATIONHUB_API RdsDbInstanceStorage & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResourceCostCalculation & GetCostCalculation() const
Aws::Utils::Json::JsonValue JsonValue