AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetReservationUtilizationResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ce/model/ReservationAggregates.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ce/model/UtilizationByTime.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CostExplorer
27{
28namespace Model
29{
31 {
32 public:
33 AWS_COSTEXPLORER_API GetReservationUtilizationResult();
36
37
39
42 inline const Aws::Vector<UtilizationByTime>& GetUtilizationsByTime() const{ return m_utilizationsByTime; }
43 inline void SetUtilizationsByTime(const Aws::Vector<UtilizationByTime>& value) { m_utilizationsByTime = value; }
44 inline void SetUtilizationsByTime(Aws::Vector<UtilizationByTime>&& value) { m_utilizationsByTime = std::move(value); }
47 inline GetReservationUtilizationResult& AddUtilizationsByTime(const UtilizationByTime& value) { m_utilizationsByTime.push_back(value); return *this; }
48 inline GetReservationUtilizationResult& AddUtilizationsByTime(UtilizationByTime&& value) { m_utilizationsByTime.push_back(std::move(value)); return *this; }
50
52
55 inline const ReservationAggregates& GetTotal() const{ return m_total; }
56 inline void SetTotal(const ReservationAggregates& value) { m_total = value; }
57 inline void SetTotal(ReservationAggregates&& value) { m_total = std::move(value); }
58 inline GetReservationUtilizationResult& WithTotal(const ReservationAggregates& value) { SetTotal(value); return *this;}
59 inline GetReservationUtilizationResult& WithTotal(ReservationAggregates&& value) { SetTotal(std::move(value)); return *this;}
61
63
68 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
69 inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
70 inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
71 inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
73 inline GetReservationUtilizationResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
74 inline GetReservationUtilizationResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline GetReservationUtilizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline GetReservationUtilizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline GetReservationUtilizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
89 Aws::Vector<UtilizationByTime> m_utilizationsByTime;
90
92
93 Aws::String m_nextPageToken;
94
95 Aws::String m_requestId;
96 };
97
98} // namespace Model
99} // namespace CostExplorer
100} // namespace Aws
void SetUtilizationsByTime(Aws::Vector< UtilizationByTime > &&value)
GetReservationUtilizationResult & WithNextPageToken(Aws::String &&value)
GetReservationUtilizationResult & AddUtilizationsByTime(const UtilizationByTime &value)
AWS_COSTEXPLORER_API GetReservationUtilizationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetReservationUtilizationResult & WithUtilizationsByTime(Aws::Vector< UtilizationByTime > &&value)
GetReservationUtilizationResult & WithRequestId(const Aws::String &value)
GetReservationUtilizationResult & WithNextPageToken(const char *value)
GetReservationUtilizationResult & WithRequestId(const char *value)
const Aws::Vector< UtilizationByTime > & GetUtilizationsByTime() const
AWS_COSTEXPLORER_API GetReservationUtilizationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUtilizationsByTime(const Aws::Vector< UtilizationByTime > &value)
GetReservationUtilizationResult & AddUtilizationsByTime(UtilizationByTime &&value)
GetReservationUtilizationResult & WithTotal(ReservationAggregates &&value)
GetReservationUtilizationResult & WithUtilizationsByTime(const Aws::Vector< UtilizationByTime > &value)
GetReservationUtilizationResult & WithTotal(const ReservationAggregates &value)
GetReservationUtilizationResult & WithRequestId(Aws::String &&value)
GetReservationUtilizationResult & WithNextPageToken(const Aws::String &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