AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResultByTime.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CostExplorer
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_COSTEXPLORER_API ResultByTime();
40 AWS_COSTEXPLORER_API ResultByTime(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API ResultByTime& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
50 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
51 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
52 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
53 inline ResultByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
54 inline ResultByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
56
58
61 inline const Aws::Map<Aws::String, MetricValue>& GetTotal() const{ return m_total; }
62 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
63 inline void SetTotal(const Aws::Map<Aws::String, MetricValue>& value) { m_totalHasBeenSet = true; m_total = value; }
64 inline void SetTotal(Aws::Map<Aws::String, MetricValue>&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
65 inline ResultByTime& WithTotal(const Aws::Map<Aws::String, MetricValue>& value) { SetTotal(value); return *this;}
66 inline ResultByTime& WithTotal(Aws::Map<Aws::String, MetricValue>&& value) { SetTotal(std::move(value)); return *this;}
67 inline ResultByTime& AddTotal(const Aws::String& key, const MetricValue& value) { m_totalHasBeenSet = true; m_total.emplace(key, value); return *this; }
68 inline ResultByTime& AddTotal(Aws::String&& key, const MetricValue& value) { m_totalHasBeenSet = true; m_total.emplace(std::move(key), value); return *this; }
69 inline ResultByTime& AddTotal(const Aws::String& key, MetricValue&& value) { m_totalHasBeenSet = true; m_total.emplace(key, std::move(value)); return *this; }
70 inline ResultByTime& AddTotal(Aws::String&& key, MetricValue&& value) { m_totalHasBeenSet = true; m_total.emplace(std::move(key), std::move(value)); return *this; }
71 inline ResultByTime& AddTotal(const char* key, MetricValue&& value) { m_totalHasBeenSet = true; m_total.emplace(key, std::move(value)); return *this; }
72 inline ResultByTime& AddTotal(const char* key, const MetricValue& value) { m_totalHasBeenSet = true; m_total.emplace(key, value); return *this; }
74
76
79 inline const Aws::Vector<Group>& GetGroups() const{ return m_groups; }
80 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
81 inline void SetGroups(const Aws::Vector<Group>& value) { m_groupsHasBeenSet = true; m_groups = value; }
82 inline void SetGroups(Aws::Vector<Group>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
83 inline ResultByTime& WithGroups(const Aws::Vector<Group>& value) { SetGroups(value); return *this;}
84 inline ResultByTime& WithGroups(Aws::Vector<Group>&& value) { SetGroups(std::move(value)); return *this;}
85 inline ResultByTime& AddGroups(const Group& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
86 inline ResultByTime& AddGroups(Group&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
88
90
93 inline bool GetEstimated() const{ return m_estimated; }
94 inline bool EstimatedHasBeenSet() const { return m_estimatedHasBeenSet; }
95 inline void SetEstimated(bool value) { m_estimatedHasBeenSet = true; m_estimated = value; }
96 inline ResultByTime& WithEstimated(bool value) { SetEstimated(value); return *this;}
98 private:
99
100 DateInterval m_timePeriod;
101 bool m_timePeriodHasBeenSet = false;
102
104 bool m_totalHasBeenSet = false;
105
106 Aws::Vector<Group> m_groups;
107 bool m_groupsHasBeenSet = false;
108
109 bool m_estimated;
110 bool m_estimatedHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CostExplorer
115} // namespace Aws
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
ResultByTime & AddTotal(const char *key, MetricValue &&value)
ResultByTime & AddTotal(const Aws::String &key, const MetricValue &value)
ResultByTime & AddTotal(Aws::String &&key, MetricValue &&value)
void SetTotal(const Aws::Map< Aws::String, MetricValue > &value)
ResultByTime & WithTimePeriod(DateInterval &&value)
AWS_COSTEXPLORER_API ResultByTime()
ResultByTime & AddTotal(Aws::String &&key, const MetricValue &value)
AWS_COSTEXPLORER_API ResultByTime(Aws::Utils::Json::JsonView jsonValue)
ResultByTime & AddTotal(const Aws::String &key, MetricValue &&value)
ResultByTime & AddGroups(const Group &value)
ResultByTime & AddGroups(Group &&value)
void SetTotal(Aws::Map< Aws::String, MetricValue > &&value)
void SetGroups(Aws::Vector< Group > &&value)
ResultByTime & WithGroups(const Aws::Vector< Group > &value)
ResultByTime & WithGroups(Aws::Vector< Group > &&value)
ResultByTime & WithTotal(Aws::Map< Aws::String, MetricValue > &&value)
ResultByTime & WithTimePeriod(const DateInterval &value)
void SetGroups(const Aws::Vector< Group > &value)
void SetTimePeriod(DateInterval &&value)
const DateInterval & GetTimePeriod() const
const Aws::Map< Aws::String, MetricValue > & GetTotal() const
ResultByTime & AddTotal(const char *key, const MetricValue &value)
void SetTimePeriod(const DateInterval &value)
const Aws::Vector< Group > & GetGroups() const
ResultByTime & WithTotal(const Aws::Map< Aws::String, MetricValue > &value)
ResultByTime & WithEstimated(bool value)
AWS_COSTEXPLORER_API ResultByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue