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>
49 template<
typename TimePeriodT = DateInterval>
50 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet =
true; m_timePeriod = std::forward<TimePeriodT>(value); }
51 template<
typename TimePeriodT = DateInterval>
61 template<
typename GroupsT = Aws::Vector<ReservationUtilizationGroup>>
62 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
63 template<
typename GroupsT = Aws::Vector<ReservationUtilizationGroup>>
65 template<
typename GroupsT = ReservationUtilizationGroup>
66 UtilizationByTime&
AddGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups.emplace_back(std::forward<GroupsT>(value));
return *
this; }
75 template<
typename TotalT = ReservationAggregates>
76 void SetTotal(TotalT&& value) { m_totalHasBeenSet =
true; m_total = std::forward<TotalT>(value); }
77 template<
typename TotalT = ReservationAggregates>
83 bool m_timePeriodHasBeenSet =
false;
86 bool m_groupsHasBeenSet =
false;
89 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