AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlansUtilizationAggregates.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/SavingsPlansUtilization.h>
9#include <aws/ce/model/SavingsPlansSavings.h>
10#include <aws/ce/model/SavingsPlansAmortizedCommitment.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 CostExplorer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates();
40 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const SavingsPlansUtilization& GetUtilization() const{ return m_utilization; }
49 inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
50 inline void SetUtilization(const SavingsPlansUtilization& value) { m_utilizationHasBeenSet = true; m_utilization = value; }
51 inline void SetUtilization(SavingsPlansUtilization&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); }
55
57
62 inline const SavingsPlansSavings& GetSavings() const{ return m_savings; }
63 inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; }
64 inline void SetSavings(const SavingsPlansSavings& value) { m_savingsHasBeenSet = true; m_savings = value; }
65 inline void SetSavings(SavingsPlansSavings&& value) { m_savingsHasBeenSet = true; m_savings = std::move(value); }
66 inline SavingsPlansUtilizationAggregates& WithSavings(const SavingsPlansSavings& value) { SetSavings(value); return *this;}
67 inline SavingsPlansUtilizationAggregates& WithSavings(SavingsPlansSavings&& value) { SetSavings(std::move(value)); return *this;}
69
71
75 inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const{ return m_amortizedCommitment; }
76 inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; }
77 inline void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = value; }
78 inline void SetAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = std::move(value); }
82 private:
83
84 SavingsPlansUtilization m_utilization;
85 bool m_utilizationHasBeenSet = false;
86
87 SavingsPlansSavings m_savings;
88 bool m_savingsHasBeenSet = false;
89
90 SavingsPlansAmortizedCommitment m_amortizedCommitment;
91 bool m_amortizedCommitmentHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CostExplorer
96} // namespace Aws
SavingsPlansUtilizationAggregates & WithUtilization(SavingsPlansUtilization &&value)
const SavingsPlansAmortizedCommitment & GetAmortizedCommitment() const
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment &value)
SavingsPlansUtilizationAggregates & WithSavings(const SavingsPlansSavings &value)
SavingsPlansUtilizationAggregates & WithAmortizedCommitment(SavingsPlansAmortizedCommitment &&value)
SavingsPlansUtilizationAggregates & WithSavings(SavingsPlansSavings &&value)
AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansUtilizationAggregates & WithAmortizedCommitment(const SavingsPlansAmortizedCommitment &value)
SavingsPlansUtilizationAggregates & WithUtilization(const SavingsPlansUtilization &value)
Aws::Utils::Json::JsonValue JsonValue