AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SavingsPlansUtilizationAggregates.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/SavingsPlansAmortizedCommitment.h>
9#include <aws/ce/model/SavingsPlansSavings.h>
10#include <aws/ce/model/SavingsPlansUtilization.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer {
22namespace Model {
23
31 public:
32 AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates() = default;
35 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const SavingsPlansUtilization& GetUtilization() const { return m_utilization; }
43 inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
44 template <typename UtilizationT = SavingsPlansUtilization>
45 void SetUtilization(UtilizationT&& value) {
46 m_utilizationHasBeenSet = true;
47 m_utilization = std::forward<UtilizationT>(value);
48 }
49 template <typename UtilizationT = SavingsPlansUtilization>
51 SetUtilization(std::forward<UtilizationT>(value));
52 return *this;
53 }
55
57
62 inline const SavingsPlansSavings& GetSavings() const { return m_savings; }
63 inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; }
64 template <typename SavingsT = SavingsPlansSavings>
65 void SetSavings(SavingsT&& value) {
66 m_savingsHasBeenSet = true;
67 m_savings = std::forward<SavingsT>(value);
68 }
69 template <typename SavingsT = SavingsPlansSavings>
71 SetSavings(std::forward<SavingsT>(value));
72 return *this;
73 }
75
77
81 inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const { return m_amortizedCommitment; }
82 inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; }
83 template <typename AmortizedCommitmentT = SavingsPlansAmortizedCommitment>
84 void SetAmortizedCommitment(AmortizedCommitmentT&& value) {
85 m_amortizedCommitmentHasBeenSet = true;
86 m_amortizedCommitment = std::forward<AmortizedCommitmentT>(value);
87 }
88 template <typename AmortizedCommitmentT = SavingsPlansAmortizedCommitment>
90 SetAmortizedCommitment(std::forward<AmortizedCommitmentT>(value));
91 return *this;
92 }
94 private:
95 SavingsPlansUtilization m_utilization;
96
97 SavingsPlansSavings m_savings;
98
99 SavingsPlansAmortizedCommitment m_amortizedCommitment;
100 bool m_utilizationHasBeenSet = false;
101 bool m_savingsHasBeenSet = false;
102 bool m_amortizedCommitmentHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace CostExplorer
107} // namespace Aws
AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates()=default
const SavingsPlansAmortizedCommitment & GetAmortizedCommitment() const
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansUtilizationAggregates & WithSavings(SavingsT &&value)
AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansUtilizationAggregates & WithAmortizedCommitment(AmortizedCommitmentT &&value)
SavingsPlansUtilizationAggregates & WithUtilization(UtilizationT &&value)
AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue