AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetReservationCoverageResult.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/Coverage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ce/model/CoverageByTime.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 GetReservationCoverageResult();
36
37
39
42 inline const Aws::Vector<CoverageByTime>& GetCoveragesByTime() const{ return m_coveragesByTime; }
43 inline void SetCoveragesByTime(const Aws::Vector<CoverageByTime>& value) { m_coveragesByTime = value; }
44 inline void SetCoveragesByTime(Aws::Vector<CoverageByTime>&& value) { m_coveragesByTime = std::move(value); }
47 inline GetReservationCoverageResult& AddCoveragesByTime(const CoverageByTime& value) { m_coveragesByTime.push_back(value); return *this; }
48 inline GetReservationCoverageResult& AddCoveragesByTime(CoverageByTime&& value) { m_coveragesByTime.push_back(std::move(value)); return *this; }
50
52
55 inline const Coverage& GetTotal() const{ return m_total; }
56 inline void SetTotal(const Coverage& value) { m_total = value; }
57 inline void SetTotal(Coverage&& value) { m_total = std::move(value); }
58 inline GetReservationCoverageResult& WithTotal(const Coverage& value) { SetTotal(value); return *this;}
59 inline GetReservationCoverageResult& WithTotal(Coverage&& 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); }
72 inline GetReservationCoverageResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
73 inline GetReservationCoverageResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
74 inline GetReservationCoverageResult& 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 GetReservationCoverageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline GetReservationCoverageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline GetReservationCoverageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
89 Aws::Vector<CoverageByTime> m_coveragesByTime;
90
91 Coverage m_total;
92
93 Aws::String m_nextPageToken;
94
95 Aws::String m_requestId;
96 };
97
98} // namespace Model
99} // namespace CostExplorer
100} // namespace Aws
GetReservationCoverageResult & WithCoveragesByTime(Aws::Vector< CoverageByTime > &&value)
void SetCoveragesByTime(Aws::Vector< CoverageByTime > &&value)
GetReservationCoverageResult & WithRequestId(const Aws::String &value)
void SetCoveragesByTime(const Aws::Vector< CoverageByTime > &value)
GetReservationCoverageResult & WithRequestId(const char *value)
GetReservationCoverageResult & AddCoveragesByTime(CoverageByTime &&value)
GetReservationCoverageResult & AddCoveragesByTime(const CoverageByTime &value)
GetReservationCoverageResult & WithRequestId(Aws::String &&value)
GetReservationCoverageResult & WithNextPageToken(const char *value)
GetReservationCoverageResult & WithTotal(const Coverage &value)
GetReservationCoverageResult & WithCoveragesByTime(const Aws::Vector< CoverageByTime > &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)
GetReservationCoverageResult & WithNextPageToken(const Aws::String &value)
const Aws::Vector< CoverageByTime > & GetCoveragesByTime() const
GetReservationCoverageResult & WithNextPageToken(Aws::String &&value)
GetReservationCoverageResult & WithTotal(Coverage &&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