7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/DateInterval.h>
9#include <aws/ce/model/Group.h>
10#include <aws/ce/model/MetricValue.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
24namespace CostExplorer {
45 template <
typename TimePeriodT = DateInterval>
47 m_timePeriodHasBeenSet =
true;
48 m_timePeriod = std::forward<TimePeriodT>(value);
50 template <
typename TimePeriodT = DateInterval>
63 template <
typename TotalT = Aws::Map<Aws::String, MetricValue>>
65 m_totalHasBeenSet =
true;
66 m_total = std::forward<TotalT>(value);
68 template <
typename TotalT = Aws::Map<Aws::String, MetricValue>>
70 SetTotal(std::forward<TotalT>(value));
73 template <
typename TotalKeyT = Aws::String,
typename TotalValueT = MetricValue>
75 m_totalHasBeenSet =
true;
76 m_total.emplace(std::forward<TotalKeyT>(key), std::forward<TotalValueT>(value));
87 template <
typename GroupsT = Aws::Vector<Group>>
89 m_groupsHasBeenSet =
true;
90 m_groups = std::forward<GroupsT>(value);
92 template <
typename GroupsT = Aws::Vector<Group>>
97 template <
typename GroupsT = Group>
99 m_groupsHasBeenSet =
true;
100 m_groups.emplace_back(std::forward<GroupsT>(value));
112 m_estimatedHasBeenSet =
true;
127 bool m_estimated{
false};
128 bool m_timePeriodHasBeenSet =
false;
129 bool m_totalHasBeenSet =
false;
130 bool m_groupsHasBeenSet =
false;
131 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