7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/DateInterval.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ce/model/MetricValue.h>
13#include <aws/ce/model/Group.h>
51 template<
typename TimePeriodT = DateInterval>
52 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet =
true; m_timePeriod = std::forward<TimePeriodT>(value); }
53 template<
typename TimePeriodT = DateInterval>
63 template<
typename TotalT = Aws::Map<Aws::String, MetricValue>>
64 void SetTotal(TotalT&& value) { m_totalHasBeenSet =
true; m_total = std::forward<TotalT>(value); }
65 template<
typename TotalT = Aws::Map<Aws::String, MetricValue>>
67 template<
typename TotalKeyT = Aws::String,
typename TotalValueT = MetricValue>
69 m_totalHasBeenSet =
true; m_total.emplace(std::forward<TotalKeyT>(key), std::forward<TotalValueT>(value));
return *
this;
79 template<
typename GroupsT = Aws::Vector<Group>>
80 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
81 template<
typename GroupsT = Aws::Vector<Group>>
83 template<
typename GroupsT = Group>
84 ResultByTime&
AddGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups.emplace_back(std::forward<GroupsT>(value));
return *
this; }
93 inline void SetEstimated(
bool value) { m_estimatedHasBeenSet =
true; m_estimated = value; }
99 bool m_timePeriodHasBeenSet =
false;
102 bool m_totalHasBeenSet =
false;
105 bool m_groupsHasBeenSet =
false;
107 bool m_estimated{
false};
108 bool m_estimatedHasBeenSet =
false;
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
bool EstimatedHasBeenSet() const
ResultByTime & WithTimePeriod(TimePeriodT &&value)
void SetTimePeriod(TimePeriodT &&value)
bool TimePeriodHasBeenSet() const
bool GetEstimated() const
AWS_COSTEXPLORER_API ResultByTime(Aws::Utils::Json::JsonView jsonValue)
bool TotalHasBeenSet() const
ResultByTime & WithTotal(TotalT &&value)
ResultByTime & AddTotal(TotalKeyT &&key, TotalValueT &&value)
void SetTotal(TotalT &&value)
ResultByTime & AddGroups(GroupsT &&value)
ResultByTime & WithGroups(GroupsT &&value)
void SetEstimated(bool value)
const DateInterval & GetTimePeriod() const
const Aws::Map< Aws::String, MetricValue > & GetTotal() const
const Aws::Vector< Group > & GetGroups() const
void SetGroups(GroupsT &&value)
ResultByTime & WithEstimated(bool value)
AWS_COSTEXPLORER_API ResultByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API ResultByTime()=default
bool GroupsHasBeenSet() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue