AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlansUtilizationByTime.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/DateInterval.h>
9#include <aws/ce/model/SavingsPlansUtilization.h>
10#include <aws/ce/model/SavingsPlansSavings.h>
11#include <aws/ce/model/SavingsPlansAmortizedCommitment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_COSTEXPLORER_API SavingsPlansUtilizationByTime();
41 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
47 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
48 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
49 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
50 inline SavingsPlansUtilizationByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
51 inline SavingsPlansUtilizationByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
53
55
59 inline const SavingsPlansUtilization& GetUtilization() const{ return m_utilization; }
60 inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
61 inline void SetUtilization(const SavingsPlansUtilization& value) { m_utilizationHasBeenSet = true; m_utilization = value; }
62 inline void SetUtilization(SavingsPlansUtilization&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); }
64 inline SavingsPlansUtilizationByTime& WithUtilization(SavingsPlansUtilization&& value) { SetUtilization(std::move(value)); return *this;}
66
68
73 inline const SavingsPlansSavings& GetSavings() const{ return m_savings; }
74 inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; }
75 inline void SetSavings(const SavingsPlansSavings& value) { m_savingsHasBeenSet = true; m_savings = value; }
76 inline void SetSavings(SavingsPlansSavings&& value) { m_savingsHasBeenSet = true; m_savings = std::move(value); }
77 inline SavingsPlansUtilizationByTime& WithSavings(const SavingsPlansSavings& value) { SetSavings(value); return *this;}
78 inline SavingsPlansUtilizationByTime& WithSavings(SavingsPlansSavings&& value) { SetSavings(std::move(value)); return *this;}
80
82
86 inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const{ return m_amortizedCommitment; }
87 inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; }
88 inline void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = value; }
89 inline void SetAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = std::move(value); }
93 private:
94
95 DateInterval m_timePeriod;
96 bool m_timePeriodHasBeenSet = false;
97
98 SavingsPlansUtilization m_utilization;
99 bool m_utilizationHasBeenSet = false;
100
101 SavingsPlansSavings m_savings;
102 bool m_savingsHasBeenSet = false;
103
104 SavingsPlansAmortizedCommitment m_amortizedCommitment;
105 bool m_amortizedCommitmentHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CostExplorer
110} // namespace Aws
SavingsPlansUtilizationByTime & WithAmortizedCommitment(const SavingsPlansAmortizedCommitment &value)
SavingsPlansUtilizationByTime & WithUtilization(const SavingsPlansUtilization &value)
SavingsPlansUtilizationByTime & WithTimePeriod(DateInterval &&value)
SavingsPlansUtilizationByTime & WithSavings(const SavingsPlansSavings &value)
SavingsPlansUtilizationByTime & WithUtilization(SavingsPlansUtilization &&value)
const SavingsPlansAmortizedCommitment & GetAmortizedCommitment() const
AWS_COSTEXPLORER_API SavingsPlansUtilizationByTime(Aws::Utils::Json::JsonView jsonValue)
void SetAmortizedCommitment(SavingsPlansAmortizedCommitment &&value)
SavingsPlansUtilizationByTime & WithTimePeriod(const DateInterval &value)
SavingsPlansUtilizationByTime & WithSavings(SavingsPlansSavings &&value)
SavingsPlansUtilizationByTime & WithAmortizedCommitment(SavingsPlansAmortizedCommitment &&value)
AWS_COSTEXPLORER_API SavingsPlansUtilizationByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment &value)
Aws::Utils::Json::JsonValue JsonValue