AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ResourceCostCalculation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
9#include <aws/cost-optimization-hub/model/ResourcePricing.h>
10#include <aws/cost-optimization-hub/model/Usage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostOptimizationHub {
22namespace Model {
23
30 public:
31 AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation() = default;
32 AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Usage>& GetUsages() const { return m_usages; }
41 inline bool UsagesHasBeenSet() const { return m_usagesHasBeenSet; }
42 template <typename UsagesT = Aws::Vector<Usage>>
43 void SetUsages(UsagesT&& value) {
44 m_usagesHasBeenSet = true;
45 m_usages = std::forward<UsagesT>(value);
46 }
47 template <typename UsagesT = Aws::Vector<Usage>>
49 SetUsages(std::forward<UsagesT>(value));
50 return *this;
51 }
52 template <typename UsagesT = Usage>
54 m_usagesHasBeenSet = true;
55 m_usages.emplace_back(std::forward<UsagesT>(value));
56 return *this;
57 }
59
61
64 inline const ResourcePricing& GetPricing() const { return m_pricing; }
65 inline bool PricingHasBeenSet() const { return m_pricingHasBeenSet; }
66 template <typename PricingT = ResourcePricing>
67 void SetPricing(PricingT&& value) {
68 m_pricingHasBeenSet = true;
69 m_pricing = std::forward<PricingT>(value);
70 }
71 template <typename PricingT = ResourcePricing>
73 SetPricing(std::forward<PricingT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<Usage> m_usages;
79
80 ResourcePricing m_pricing;
81 bool m_usagesHasBeenSet = false;
82 bool m_pricingHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CostOptimizationHub
87} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation(Aws::Utils::Json::JsonView jsonValue)
ResourceCostCalculation & WithPricing(PricingT &&value)
ResourceCostCalculation & WithUsages(UsagesT &&value)
AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation()=default
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue