AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetReservationCoverageResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/Coverage.h>
9#include <aws/ce/model/CoverageByTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer {
25namespace Model {
27 public:
28 AWS_COSTEXPLORER_API GetReservationCoverageResult() = default;
31
33
36 inline const Aws::Vector<CoverageByTime>& GetCoveragesByTime() const { return m_coveragesByTime; }
37 template <typename CoveragesByTimeT = Aws::Vector<CoverageByTime>>
38 void SetCoveragesByTime(CoveragesByTimeT&& value) {
39 m_coveragesByTimeHasBeenSet = true;
40 m_coveragesByTime = std::forward<CoveragesByTimeT>(value);
41 }
42 template <typename CoveragesByTimeT = Aws::Vector<CoverageByTime>>
44 SetCoveragesByTime(std::forward<CoveragesByTimeT>(value));
45 return *this;
46 }
47 template <typename CoveragesByTimeT = CoverageByTime>
49 m_coveragesByTimeHasBeenSet = true;
50 m_coveragesByTime.emplace_back(std::forward<CoveragesByTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Coverage& GetTotal() const { return m_total; }
60 template <typename TotalT = Coverage>
61 void SetTotal(TotalT&& value) {
62 m_totalHasBeenSet = true;
63 m_total = std::forward<TotalT>(value);
64 }
65 template <typename TotalT = Coverage>
67 SetTotal(std::forward<TotalT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
79 template <typename NextPageTokenT = Aws::String>
80 void SetNextPageToken(NextPageTokenT&& value) {
81 m_nextPageTokenHasBeenSet = true;
82 m_nextPageToken = std::forward<NextPageTokenT>(value);
83 }
84 template <typename NextPageTokenT = Aws::String>
86 SetNextPageToken(std::forward<NextPageTokenT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 private:
106 Aws::Vector<CoverageByTime> m_coveragesByTime;
107
108 Coverage m_total;
109
110 Aws::String m_nextPageToken;
111
112 Aws::String m_requestId;
113 bool m_coveragesByTimeHasBeenSet = false;
114 bool m_totalHasBeenSet = false;
115 bool m_nextPageTokenHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CostExplorer
121} // namespace Aws
GetReservationCoverageResult & WithNextPageToken(NextPageTokenT &&value)
GetReservationCoverageResult & WithRequestId(RequestIdT &&value)
GetReservationCoverageResult & WithCoveragesByTime(CoveragesByTimeT &&value)
GetReservationCoverageResult & AddCoveragesByTime(CoveragesByTimeT &&value)
AWS_COSTEXPLORER_API GetReservationCoverageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COSTEXPLORER_API GetReservationCoverageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< CoverageByTime > & GetCoveragesByTime() const
GetReservationCoverageResult & WithTotal(TotalT &&value)
AWS_COSTEXPLORER_API GetReservationCoverageResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue