7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/DateInterval.h>
9#include <aws/ce/model/ReservationAggregates.h>
10#include <aws/ce/model/ReservationUtilizationGroup.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace CostExplorer {
43 template <
typename TimePeriodT = DateInterval>
45 m_timePeriodHasBeenSet =
true;
46 m_timePeriod = std::forward<TimePeriodT>(value);
48 template <
typename TimePeriodT = DateInterval>
61 template <
typename GroupsT = Aws::Vector<ReservationUtilizationGroup>>
63 m_groupsHasBeenSet =
true;
64 m_groups = std::forward<GroupsT>(value);
66 template <
typename GroupsT = Aws::Vector<ReservationUtilizationGroup>>
71 template <
typename GroupsT = ReservationUtilizationGroup>
73 m_groupsHasBeenSet =
true;
74 m_groups.emplace_back(std::forward<GroupsT>(value));
85 template <
typename TotalT = ReservationAggregates>
87 m_totalHasBeenSet =
true;
88 m_total = std::forward<TotalT>(value);
90 template <
typename TotalT = ReservationAggregates>
92 SetTotal(std::forward<TotalT>(value));
102 bool m_timePeriodHasBeenSet =
false;
103 bool m_groupsHasBeenSet =
false;
104 bool m_totalHasBeenSet =
false;
UtilizationByTime & WithTotal(TotalT &&value)
bool GroupsHasBeenSet() const
void SetTimePeriod(TimePeriodT &&value)
bool TimePeriodHasBeenSet() const
UtilizationByTime & WithGroups(GroupsT &&value)
const Aws::Vector< ReservationUtilizationGroup > & GetGroups() const
const DateInterval & GetTimePeriod() const
const ReservationAggregates & GetTotal() const
AWS_COSTEXPLORER_API UtilizationByTime(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(GroupsT &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
UtilizationByTime & AddGroups(GroupsT &&value)
void SetTotal(TotalT &&value)
AWS_COSTEXPLORER_API UtilizationByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
UtilizationByTime & WithTimePeriod(TimePeriodT &&value)
AWS_COSTEXPLORER_API UtilizationByTime()=default
bool TotalHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue