7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/Coverage.h>
9#include <aws/ce/model/DateInterval.h>
10#include <aws/ce/model/ReservationCoverageGroup.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace CostExplorer {
44 template <
typename TimePeriodT = DateInterval>
46 m_timePeriodHasBeenSet =
true;
47 m_timePeriod = std::forward<TimePeriodT>(value);
49 template <
typename TimePeriodT = DateInterval>
62 template <
typename GroupsT = Aws::Vector<ReservationCoverageGroup>>
64 m_groupsHasBeenSet =
true;
65 m_groups = std::forward<GroupsT>(value);
67 template <
typename GroupsT = Aws::Vector<ReservationCoverageGroup>>
72 template <
typename GroupsT = ReservationCoverageGroup>
74 m_groupsHasBeenSet =
true;
75 m_groups.emplace_back(std::forward<GroupsT>(value));
86 template <
typename TotalT = Coverage>
88 m_totalHasBeenSet =
true;
89 m_total = std::forward<TotalT>(value);
91 template <
typename TotalT = Coverage>
93 SetTotal(std::forward<TotalT>(value));
103 bool m_timePeriodHasBeenSet =
false;
104 bool m_groupsHasBeenSet =
false;
105 bool m_totalHasBeenSet =
false;
const Aws::Vector< ReservationCoverageGroup > & GetGroups() const
CoverageByTime & AddGroups(GroupsT &&value)
const DateInterval & GetTimePeriod() const
AWS_COSTEXPLORER_API CoverageByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimePeriod(TimePeriodT &&value)
const Coverage & GetTotal() const
void SetTotal(TotalT &&value)
AWS_COSTEXPLORER_API CoverageByTime(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API CoverageByTime()=default
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
CoverageByTime & WithGroups(GroupsT &&value)
CoverageByTime & WithTimePeriod(TimePeriodT &&value)
void SetGroups(GroupsT &&value)
bool GroupsHasBeenSet() const
bool TimePeriodHasBeenSet() const
CoverageByTime & WithTotal(TotalT &&value)
bool TotalHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue