AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UtilizationByTime.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/DateInterval.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ce/model/ReservationAggregates.h>
11#include <aws/ce/model/ReservationUtilizationGroup.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
35 {
36 public:
37 AWS_COSTEXPLORER_API UtilizationByTime();
38 AWS_COSTEXPLORER_API UtilizationByTime(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTEXPLORER_API UtilizationByTime& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
48 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
49 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
50 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
51 inline UtilizationByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
52 inline UtilizationByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<ReservationUtilizationGroup>& GetGroups() const{ return m_groups; }
60 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
61 inline void SetGroups(const Aws::Vector<ReservationUtilizationGroup>& value) { m_groupsHasBeenSet = true; m_groups = value; }
62 inline void SetGroups(Aws::Vector<ReservationUtilizationGroup>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
64 inline UtilizationByTime& WithGroups(Aws::Vector<ReservationUtilizationGroup>&& value) { SetGroups(std::move(value)); return *this;}
65 inline UtilizationByTime& AddGroups(const ReservationUtilizationGroup& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
66 inline UtilizationByTime& AddGroups(ReservationUtilizationGroup&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
68
70
73 inline const ReservationAggregates& GetTotal() const{ return m_total; }
74 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
75 inline void SetTotal(const ReservationAggregates& value) { m_totalHasBeenSet = true; m_total = value; }
76 inline void SetTotal(ReservationAggregates&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
77 inline UtilizationByTime& WithTotal(const ReservationAggregates& value) { SetTotal(value); return *this;}
78 inline UtilizationByTime& WithTotal(ReservationAggregates&& value) { SetTotal(std::move(value)); return *this;}
80 private:
81
82 DateInterval m_timePeriod;
83 bool m_timePeriodHasBeenSet = false;
84
86 bool m_groupsHasBeenSet = false;
87
89 bool m_totalHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CostExplorer
94} // namespace Aws
void SetTotal(ReservationAggregates &&value)
UtilizationByTime & WithGroups(const Aws::Vector< ReservationUtilizationGroup > &value)
UtilizationByTime & AddGroups(const ReservationUtilizationGroup &value)
UtilizationByTime & WithGroups(Aws::Vector< ReservationUtilizationGroup > &&value)
UtilizationByTime & WithTimePeriod(DateInterval &&value)
const Aws::Vector< ReservationUtilizationGroup > & GetGroups() const
UtilizationByTime & AddGroups(ReservationUtilizationGroup &&value)
void SetGroups(Aws::Vector< ReservationUtilizationGroup > &&value)
const ReservationAggregates & GetTotal() const
AWS_COSTEXPLORER_API UtilizationByTime(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(const Aws::Vector< ReservationUtilizationGroup > &value)
UtilizationByTime & WithTotal(ReservationAggregates &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
UtilizationByTime & WithTimePeriod(const DateInterval &value)
UtilizationByTime & WithTotal(const ReservationAggregates &value)
AWS_COSTEXPLORER_API UtilizationByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTotal(const ReservationAggregates &value)
void SetTimePeriod(const DateInterval &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue