AWS SDK for C++  1.9.20
AWS SDK for C++
CoverageByTime.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/ce/model/Coverage.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace CostExplorer
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
48 
52  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
53 
57  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
58 
62  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
63 
67  inline CoverageByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
68 
72  inline CoverageByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
73 
74 
78  inline const Aws::Vector<ReservationCoverageGroup>& GetGroups() const{ return m_groups; }
79 
83  inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
84 
88  inline void SetGroups(const Aws::Vector<ReservationCoverageGroup>& value) { m_groupsHasBeenSet = true; m_groups = value; }
89 
93  inline void SetGroups(Aws::Vector<ReservationCoverageGroup>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
94 
98  inline CoverageByTime& WithGroups(const Aws::Vector<ReservationCoverageGroup>& value) { SetGroups(value); return *this;}
99 
103  inline CoverageByTime& WithGroups(Aws::Vector<ReservationCoverageGroup>&& value) { SetGroups(std::move(value)); return *this;}
104 
108  inline CoverageByTime& AddGroups(const ReservationCoverageGroup& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
109 
113  inline CoverageByTime& AddGroups(ReservationCoverageGroup&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
114 
115 
119  inline const Coverage& GetTotal() const{ return m_total; }
120 
124  inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
125 
129  inline void SetTotal(const Coverage& value) { m_totalHasBeenSet = true; m_total = value; }
130 
134  inline void SetTotal(Coverage&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
135 
139  inline CoverageByTime& WithTotal(const Coverage& value) { SetTotal(value); return *this;}
140 
144  inline CoverageByTime& WithTotal(Coverage&& value) { SetTotal(std::move(value)); return *this;}
145 
146  private:
147 
148  DateInterval m_timePeriod;
149  bool m_timePeriodHasBeenSet;
150 
152  bool m_groupsHasBeenSet;
153 
154  Coverage m_total;
155  bool m_totalHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace CostExplorer
160 } // namespace Aws
Aws::CostExplorer::Model::CoverageByTime
Definition: CoverageByTime.h:36
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::CoverageByTime::SetTotal
void SetTotal(Coverage &&value)
Definition: CoverageByTime.h:134
Aws::CostExplorer::Model::CoverageByTime::WithTotal
CoverageByTime & WithTotal(Coverage &&value)
Definition: CoverageByTime.h:144
Aws::CostExplorer::Model::CoverageByTime::CoverageByTime
CoverageByTime(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::CoverageByTime::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CostExplorer::Model::CoverageByTime::WithTimePeriod
CoverageByTime & WithTimePeriod(DateInterval &&value)
Definition: CoverageByTime.h:72
Aws::CostExplorer::Model::CoverageByTime::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: CoverageByTime.h:47
Aws::CostExplorer::Model::CoverageByTime::operator=
CoverageByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::CoverageByTime::GetGroups
const Aws::Vector< ReservationCoverageGroup > & GetGroups() const
Definition: CoverageByTime.h:78
DateInterval.h
Aws::CostExplorer::Model::CoverageByTime::AddGroups
CoverageByTime & AddGroups(const ReservationCoverageGroup &value)
Definition: CoverageByTime.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::CoverageByTime::GroupsHasBeenSet
bool GroupsHasBeenSet() const
Definition: CoverageByTime.h:83
AWSVector.h
Aws::CostExplorer::Model::CoverageByTime::SetGroups
void SetGroups(const Aws::Vector< ReservationCoverageGroup > &value)
Definition: CoverageByTime.h:88
Aws::CostExplorer::Model::CoverageByTime::GetTotal
const Coverage & GetTotal() const
Definition: CoverageByTime.h:119
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::CoverageByTime::SetGroups
void SetGroups(Aws::Vector< ReservationCoverageGroup > &&value)
Definition: CoverageByTime.h:93
Aws::CostExplorer::Model::CoverageByTime::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: CoverageByTime.h:52
Aws::CostExplorer::Model::CoverageByTime::AddGroups
CoverageByTime & AddGroups(ReservationCoverageGroup &&value)
Definition: CoverageByTime.h:113
Aws::CostExplorer::Model::CoverageByTime::WithGroups
CoverageByTime & WithGroups(Aws::Vector< ReservationCoverageGroup > &&value)
Definition: CoverageByTime.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CostExplorer::Model::ReservationCoverageGroup
Definition: ReservationCoverageGroup.h:35
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CostExplorer::Model::CoverageByTime::SetTotal
void SetTotal(const Coverage &value)
Definition: CoverageByTime.h:129
Aws::CostExplorer::Model::Coverage
Definition: Coverage.h:35
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::CoverageByTime::WithTotal
CoverageByTime & WithTotal(const Coverage &value)
Definition: CoverageByTime.h:139
Aws::CostExplorer::Model::CoverageByTime::TotalHasBeenSet
bool TotalHasBeenSet() const
Definition: CoverageByTime.h:124
ReservationCoverageGroup.h
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::CoverageByTime::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: CoverageByTime.h:62
Aws::CostExplorer::Model::CoverageByTime::CoverageByTime
CoverageByTime()
Aws::CostExplorer::Model::CoverageByTime::WithTimePeriod
CoverageByTime & WithTimePeriod(const DateInterval &value)
Definition: CoverageByTime.h:67
Coverage.h
Aws::CostExplorer::Model::CoverageByTime::WithGroups
CoverageByTime & WithGroups(const Aws::Vector< ReservationCoverageGroup > &value)
Definition: CoverageByTime.h:98
Aws::CostExplorer::Model::CoverageByTime::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: CoverageByTime.h:57