AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceCostCalculation.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cost-optimization-hub/model/ResourcePricing.h>
10#include <aws/cost-optimization-hub/model/Usage.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CostOptimizationHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation() = default;
37 AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Usage>& GetUsages() const { return m_usages; }
47 inline bool UsagesHasBeenSet() const { return m_usagesHasBeenSet; }
48 template<typename UsagesT = Aws::Vector<Usage>>
49 void SetUsages(UsagesT&& value) { m_usagesHasBeenSet = true; m_usages = std::forward<UsagesT>(value); }
50 template<typename UsagesT = Aws::Vector<Usage>>
51 ResourceCostCalculation& WithUsages(UsagesT&& value) { SetUsages(std::forward<UsagesT>(value)); return *this;}
52 template<typename UsagesT = Usage>
53 ResourceCostCalculation& AddUsages(UsagesT&& value) { m_usagesHasBeenSet = true; m_usages.emplace_back(std::forward<UsagesT>(value)); return *this; }
55
57
60 inline const ResourcePricing& GetPricing() const { return m_pricing; }
61 inline bool PricingHasBeenSet() const { return m_pricingHasBeenSet; }
62 template<typename PricingT = ResourcePricing>
63 void SetPricing(PricingT&& value) { m_pricingHasBeenSet = true; m_pricing = std::forward<PricingT>(value); }
64 template<typename PricingT = ResourcePricing>
65 ResourceCostCalculation& WithPricing(PricingT&& value) { SetPricing(std::forward<PricingT>(value)); return *this;}
67 private:
68
69 Aws::Vector<Usage> m_usages;
70 bool m_usagesHasBeenSet = false;
71
72 ResourcePricing m_pricing;
73 bool m_pricingHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CostOptimizationHub
78} // 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