AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/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 GetReservationUtilizationResult() = default;
31
33
36 inline const Aws::Vector<UtilizationByTime>& GetUtilizationsByTime() const { return m_utilizationsByTime; }
37 template <typename UtilizationsByTimeT = Aws::Vector<UtilizationByTime>>
38 void SetUtilizationsByTime(UtilizationsByTimeT&& value) {
39 m_utilizationsByTimeHasBeenSet = true;
40 m_utilizationsByTime = std::forward<UtilizationsByTimeT>(value);
41 }
42 template <typename UtilizationsByTimeT = Aws::Vector<UtilizationByTime>>
44 SetUtilizationsByTime(std::forward<UtilizationsByTimeT>(value));
45 return *this;
46 }
47 template <typename UtilizationsByTimeT = UtilizationByTime>
49 m_utilizationsByTimeHasBeenSet = true;
50 m_utilizationsByTime.emplace_back(std::forward<UtilizationsByTimeT>(value));
51 return *this;
52 }
54
56
59 inline const ReservationAggregates& GetTotal() const { return m_total; }
60 template <typename TotalT = ReservationAggregates>
61 void SetTotal(TotalT&& value) {
62 m_totalHasBeenSet = true;
63 m_total = std::forward<TotalT>(value);
64 }
65 template <typename TotalT = ReservationAggregates>
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<UtilizationByTime> m_utilizationsByTime;
107
108 ReservationAggregates m_total;
109
110 Aws::String m_nextPageToken;
111
112 Aws::String m_requestId;
113 bool m_utilizationsByTimeHasBeenSet = 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
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