AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsages(const Aws::Vector<Usage>& value) { m_usagesHasBeenSet = true; m_usages = value; }
49 inline void SetUsages(Aws::Vector<Usage>&& value) { m_usagesHasBeenSet = true; m_usages = std::move(value); }
50 inline ResourceCostCalculation& WithUsages(const Aws::Vector<Usage>& value) { SetUsages(value); return *this;}
51 inline ResourceCostCalculation& WithUsages(Aws::Vector<Usage>&& value) { SetUsages(std::move(value)); return *this;}
52 inline ResourceCostCalculation& AddUsages(const Usage& value) { m_usagesHasBeenSet = true; m_usages.push_back(value); return *this; }
53 inline ResourceCostCalculation& AddUsages(Usage&& value) { m_usagesHasBeenSet = true; m_usages.push_back(std::move(value)); return *this; }
55
57
60 inline const ResourcePricing& GetPricing() const{ return m_pricing; }
61 inline bool PricingHasBeenSet() const { return m_pricingHasBeenSet; }
62 inline void SetPricing(const ResourcePricing& value) { m_pricingHasBeenSet = true; m_pricing = value; }
63 inline void SetPricing(ResourcePricing&& value) { m_pricingHasBeenSet = true; m_pricing = std::move(value); }
64 inline ResourceCostCalculation& WithPricing(const ResourcePricing& value) { SetPricing(value); return *this;}
65 inline ResourceCostCalculation& WithPricing(ResourcePricing&& value) { SetPricing(std::move(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)
ResourceCostCalculation & WithPricing(const ResourcePricing &value)
ResourceCostCalculation & WithUsages(Aws::Vector< Usage > &&value)
AWS_COSTOPTIMIZATIONHUB_API ResourceCostCalculation(Aws::Utils::Json::JsonView jsonValue)
ResourceCostCalculation & WithUsages(const Aws::Vector< Usage > &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceCostCalculation & AddUsages(const Usage &value)
ResourceCostCalculation & WithPricing(ResourcePricing &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue