AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CoverageByTime.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/AWSVector.h>
10#include <aws/ce/model/Coverage.h>
11#include <aws/ce/model/ReservationCoverageGroup.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_COSTEXPLORER_API CoverageByTime();
39 AWS_COSTEXPLORER_API CoverageByTime(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTEXPLORER_API CoverageByTime& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
49 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
50 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
51 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
52 inline CoverageByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
53 inline CoverageByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<ReservationCoverageGroup>& GetGroups() const{ return m_groups; }
61 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
62 inline void SetGroups(const Aws::Vector<ReservationCoverageGroup>& value) { m_groupsHasBeenSet = true; m_groups = value; }
63 inline void SetGroups(Aws::Vector<ReservationCoverageGroup>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
64 inline CoverageByTime& WithGroups(const Aws::Vector<ReservationCoverageGroup>& value) { SetGroups(value); return *this;}
65 inline CoverageByTime& WithGroups(Aws::Vector<ReservationCoverageGroup>&& value) { SetGroups(std::move(value)); return *this;}
66 inline CoverageByTime& AddGroups(const ReservationCoverageGroup& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
67 inline CoverageByTime& AddGroups(ReservationCoverageGroup&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
69
71
74 inline const Coverage& GetTotal() const{ return m_total; }
75 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
76 inline void SetTotal(const Coverage& value) { m_totalHasBeenSet = true; m_total = value; }
77 inline void SetTotal(Coverage&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
78 inline CoverageByTime& WithTotal(const Coverage& value) { SetTotal(value); return *this;}
79 inline CoverageByTime& WithTotal(Coverage&& value) { SetTotal(std::move(value)); return *this;}
81 private:
82
83 DateInterval m_timePeriod;
84 bool m_timePeriodHasBeenSet = false;
85
87 bool m_groupsHasBeenSet = false;
88
89 Coverage m_total;
90 bool m_totalHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CostExplorer
95} // namespace Aws
const Aws::Vector< ReservationCoverageGroup > & GetGroups() const
CoverageByTime & WithTimePeriod(const DateInterval &value)
const DateInterval & GetTimePeriod() const
CoverageByTime & AddGroups(const ReservationCoverageGroup &value)
AWS_COSTEXPLORER_API CoverageByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(const Aws::Vector< ReservationCoverageGroup > &value)
void SetTimePeriod(const DateInterval &value)
CoverageByTime & WithGroups(const Aws::Vector< ReservationCoverageGroup > &value)
AWS_COSTEXPLORER_API CoverageByTime(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(Aws::Vector< ReservationCoverageGroup > &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimePeriod(DateInterval &&value)
CoverageByTime & WithGroups(Aws::Vector< ReservationCoverageGroup > &&value)
CoverageByTime & WithTimePeriod(DateInterval &&value)
void SetTotal(const Coverage &value)
CoverageByTime & WithTotal(Coverage &&value)
CoverageByTime & WithTotal(const Coverage &value)
CoverageByTime & AddGroups(ReservationCoverageGroup &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue