AWS SDK for C++  1.9.20
AWS SDK for C++
GetReservationCoverageResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace CostExplorer
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<CoverageByTime>& GetCoveragesByTime() const{ return m_coveragesByTime; }
42 
46  inline void SetCoveragesByTime(const Aws::Vector<CoverageByTime>& value) { m_coveragesByTime = value; }
47 
51  inline void SetCoveragesByTime(Aws::Vector<CoverageByTime>&& value) { m_coveragesByTime = std::move(value); }
52 
56  inline GetReservationCoverageResult& WithCoveragesByTime(const Aws::Vector<CoverageByTime>& value) { SetCoveragesByTime(value); return *this;}
57 
61  inline GetReservationCoverageResult& WithCoveragesByTime(Aws::Vector<CoverageByTime>&& value) { SetCoveragesByTime(std::move(value)); return *this;}
62 
66  inline GetReservationCoverageResult& AddCoveragesByTime(const CoverageByTime& value) { m_coveragesByTime.push_back(value); return *this; }
67 
71  inline GetReservationCoverageResult& AddCoveragesByTime(CoverageByTime&& value) { m_coveragesByTime.push_back(std::move(value)); return *this; }
72 
73 
77  inline const Coverage& GetTotal() const{ return m_total; }
78 
82  inline void SetTotal(const Coverage& value) { m_total = value; }
83 
87  inline void SetTotal(Coverage&& value) { m_total = std::move(value); }
88 
92  inline GetReservationCoverageResult& WithTotal(const Coverage& value) { SetTotal(value); return *this;}
93 
97  inline GetReservationCoverageResult& WithTotal(Coverage&& value) { SetTotal(std::move(value)); return *this;}
98 
99 
105  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
106 
112  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
113 
119  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
120 
126  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
127 
133  inline GetReservationCoverageResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
134 
140  inline GetReservationCoverageResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
141 
147  inline GetReservationCoverageResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
148 
149  private:
150 
151  Aws::Vector<CoverageByTime> m_coveragesByTime;
152 
153  Coverage m_total;
154 
155  Aws::String m_nextPageToken;
156  };
157 
158 } // namespace Model
159 } // namespace CostExplorer
160 } // namespace Aws
Aws::CostExplorer::Model::CoverageByTime
Definition: CoverageByTime.h:36
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CostExplorer::Model::GetReservationCoverageResult::SetTotal
void SetTotal(const Coverage &value)
Definition: GetReservationCoverageResult.h:82
Aws::CostExplorer::Model::GetReservationCoverageResult::SetCoveragesByTime
void SetCoveragesByTime(const Aws::Vector< CoverageByTime > &value)
Definition: GetReservationCoverageResult.h:46
Aws::CostExplorer::Model::GetReservationCoverageResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetReservationCoverageResult.h:105
Aws::CostExplorer::Model::GetReservationCoverageResult::WithTotal
GetReservationCoverageResult & WithTotal(const Coverage &value)
Definition: GetReservationCoverageResult.h:92
Aws::CostExplorer::Model::GetReservationCoverageResult::operator=
GetReservationCoverageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CostExplorer::Model::GetReservationCoverageResult::AddCoveragesByTime
GetReservationCoverageResult & AddCoveragesByTime(CoverageByTime &&value)
Definition: GetReservationCoverageResult.h:71
Aws::CostExplorer::Model::GetReservationCoverageResult::WithNextPageToken
GetReservationCoverageResult & WithNextPageToken(Aws::String &&value)
Definition: GetReservationCoverageResult.h:140
Aws::CostExplorer::Model::GetReservationCoverageResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetReservationCoverageResult.h:112
Aws::CostExplorer::Model::GetReservationCoverageResult::GetTotal
const Coverage & GetTotal() const
Definition: GetReservationCoverageResult.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::GetReservationCoverageResult::SetTotal
void SetTotal(Coverage &&value)
Definition: GetReservationCoverageResult.h:87
Aws::CostExplorer::Model::GetReservationCoverageResult
Definition: GetReservationCoverageResult.h:31
Aws::CostExplorer::Model::GetReservationCoverageResult::SetCoveragesByTime
void SetCoveragesByTime(Aws::Vector< CoverageByTime > &&value)
Definition: GetReservationCoverageResult.h:51
AWSVector.h
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetReservationCoverageResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetReservationCoverageResult.h:126
Aws::CostExplorer::Model::GetReservationCoverageResult::GetReservationCoverageResult
GetReservationCoverageResult()
Aws::CostExplorer::Model::GetReservationCoverageResult::WithNextPageToken
GetReservationCoverageResult & WithNextPageToken(const char *value)
Definition: GetReservationCoverageResult.h:147
Aws::CostExplorer::Model::GetReservationCoverageResult::WithCoveragesByTime
GetReservationCoverageResult & WithCoveragesByTime(const Aws::Vector< CoverageByTime > &value)
Definition: GetReservationCoverageResult.h:56
AWSString.h
Aws::CostExplorer::Model::GetReservationCoverageResult::GetCoveragesByTime
const Aws::Vector< CoverageByTime > & GetCoveragesByTime() const
Definition: GetReservationCoverageResult.h:41
Aws::CostExplorer::Model::Coverage
Definition: Coverage.h:35
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
CoverageByTime.h
Aws::CostExplorer::Model::GetReservationCoverageResult::WithCoveragesByTime
GetReservationCoverageResult & WithCoveragesByTime(Aws::Vector< CoverageByTime > &&value)
Definition: GetReservationCoverageResult.h:61
Aws::CostExplorer::Model::GetReservationCoverageResult::AddCoveragesByTime
GetReservationCoverageResult & AddCoveragesByTime(const CoverageByTime &value)
Definition: GetReservationCoverageResult.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetReservationCoverageResult::GetReservationCoverageResult
GetReservationCoverageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetReservationCoverageResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetReservationCoverageResult.h:119
Coverage.h
Aws::CostExplorer::Model::GetReservationCoverageResult::WithNextPageToken
GetReservationCoverageResult & WithNextPageToken(const Aws::String &value)
Definition: GetReservationCoverageResult.h:133
Aws::CostExplorer::Model::GetReservationCoverageResult::WithTotal
GetReservationCoverageResult & WithTotal(Coverage &&value)
Definition: GetReservationCoverageResult.h:97