AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetReservationPurchaseRecommendationResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/ReservationPurchaseRecommendation.h>
9#include <aws/ce/model/ReservationPurchaseRecommendationMetadata.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 GetReservationPurchaseRecommendationResult() = default;
33
35
39 inline const ReservationPurchaseRecommendationMetadata& GetMetadata() const { return m_metadata; }
40 template <typename MetadataT = ReservationPurchaseRecommendationMetadata>
41 void SetMetadata(MetadataT&& value) {
42 m_metadataHasBeenSet = true;
43 m_metadata = std::forward<MetadataT>(value);
44 }
45 template <typename MetadataT = ReservationPurchaseRecommendationMetadata>
47 SetMetadata(std::forward<MetadataT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<ReservationPurchaseRecommendation>& GetRecommendations() const { return m_recommendations; }
57 template <typename RecommendationsT = Aws::Vector<ReservationPurchaseRecommendation>>
58 void SetRecommendations(RecommendationsT&& value) {
59 m_recommendationsHasBeenSet = true;
60 m_recommendations = std::forward<RecommendationsT>(value);
61 }
62 template <typename RecommendationsT = Aws::Vector<ReservationPurchaseRecommendation>>
64 SetRecommendations(std::forward<RecommendationsT>(value));
65 return *this;
66 }
67 template <typename RecommendationsT = ReservationPurchaseRecommendation>
69 m_recommendationsHasBeenSet = true;
70 m_recommendations.emplace_back(std::forward<RecommendationsT>(value));
71 return *this;
72 }
74
76
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:
110
112
113 Aws::String m_nextPageToken;
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_metadataHasBeenSet = false;
118 bool m_recommendationsHasBeenSet = false;
119 bool m_nextPageTokenHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CostExplorer
125} // namespace Aws
GetReservationPurchaseRecommendationResult & WithMetadata(MetadataT &&value)
AWS_COSTEXPLORER_API GetReservationPurchaseRecommendationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetReservationPurchaseRecommendationResult & WithNextPageToken(NextPageTokenT &&value)
AWS_COSTEXPLORER_API GetReservationPurchaseRecommendationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ReservationPurchaseRecommendation > & GetRecommendations() const
GetReservationPurchaseRecommendationResult & WithRequestId(RequestIdT &&value)
GetReservationPurchaseRecommendationResult & AddRecommendations(RecommendationsT &&value)
GetReservationPurchaseRecommendationResult & WithRecommendations(RecommendationsT &&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