AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetReservationUtilizationResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/ReservationAggregates.h>
9#include <aws/ce/model/UtilizationByTime.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CostExplorer {
26namespace Model {
28 public:
29 AWS_COSTEXPLORER_API GetReservationUtilizationResult() = default;
32
34
37 inline const Aws::Vector<UtilizationByTime>& GetUtilizationsByTime() const { return m_utilizationsByTime; }
38 template <typename UtilizationsByTimeT = Aws::Vector<UtilizationByTime>>
39 void SetUtilizationsByTime(UtilizationsByTimeT&& value) {
40 m_utilizationsByTimeHasBeenSet = true;
41 m_utilizationsByTime = std::forward<UtilizationsByTimeT>(value);
42 }
43 template <typename UtilizationsByTimeT = Aws::Vector<UtilizationByTime>>
45 SetUtilizationsByTime(std::forward<UtilizationsByTimeT>(value));
46 return *this;
47 }
48 template <typename UtilizationsByTimeT = UtilizationByTime>
50 m_utilizationsByTimeHasBeenSet = true;
51 m_utilizationsByTime.emplace_back(std::forward<UtilizationsByTimeT>(value));
52 return *this;
53 }
55
57
60 inline const ReservationAggregates& GetTotal() const { return m_total; }
61 template <typename TotalT = ReservationAggregates>
62 void SetTotal(TotalT&& value) {
63 m_totalHasBeenSet = true;
64 m_total = std::forward<TotalT>(value);
65 }
66 template <typename TotalT = ReservationAggregates>
68 SetTotal(std::forward<TotalT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
80 template <typename NextPageTokenT = Aws::String>
81 void SetNextPageToken(NextPageTokenT&& value) {
82 m_nextPageTokenHasBeenSet = true;
83 m_nextPageToken = std::forward<NextPageTokenT>(value);
84 }
85 template <typename NextPageTokenT = Aws::String>
87 SetNextPageToken(std::forward<NextPageTokenT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
109 Aws::Vector<UtilizationByTime> m_utilizationsByTime;
110
111 ReservationAggregates m_total;
112
113 Aws::String m_nextPageToken;
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_utilizationsByTimeHasBeenSet = false;
118 bool m_totalHasBeenSet = false;
119 bool m_nextPageTokenHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CostExplorer
125} // namespace Aws
GetReservationUtilizationResult & WithTotal(TotalT &&value)
GetReservationUtilizationResult & WithRequestId(RequestIdT &&value)
AWS_COSTEXPLORER_API GetReservationUtilizationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetReservationUtilizationResult & WithNextPageToken(NextPageTokenT &&value)
GetReservationUtilizationResult & AddUtilizationsByTime(UtilizationsByTimeT &&value)
const Aws::Vector< UtilizationByTime > & GetUtilizationsByTime() const
AWS_COSTEXPLORER_API GetReservationUtilizationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COSTEXPLORER_API GetReservationUtilizationResult()=default
GetReservationUtilizationResult & WithUtilizationsByTime(UtilizationsByTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue