AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetRightsizingRecommendationResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/RightsizingRecommendation.h>
9#include <aws/ce/model/RightsizingRecommendationConfiguration.h>
10#include <aws/ce/model/RightsizingRecommendationMetadata.h>
11#include <aws/ce/model/RightsizingRecommendationSummary.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CostExplorer {
28namespace Model {
30 public:
31 AWS_COSTEXPLORER_API GetRightsizingRecommendationResult() = default;
35
37
40 inline const RightsizingRecommendationMetadata& GetMetadata() const { return m_metadata; }
41 template <typename MetadataT = RightsizingRecommendationMetadata>
42 void SetMetadata(MetadataT&& value) {
43 m_metadataHasBeenSet = true;
44 m_metadata = std::forward<MetadataT>(value);
45 }
46 template <typename MetadataT = RightsizingRecommendationMetadata>
48 SetMetadata(std::forward<MetadataT>(value));
49 return *this;
50 }
52
54
57 inline const RightsizingRecommendationSummary& GetSummary() const { return m_summary; }
58 template <typename SummaryT = RightsizingRecommendationSummary>
59 void SetSummary(SummaryT&& value) {
60 m_summaryHasBeenSet = true;
61 m_summary = std::forward<SummaryT>(value);
62 }
63 template <typename SummaryT = RightsizingRecommendationSummary>
65 SetSummary(std::forward<SummaryT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<RightsizingRecommendation>& GetRightsizingRecommendations() const { return m_rightsizingRecommendations; }
75 template <typename RightsizingRecommendationsT = Aws::Vector<RightsizingRecommendation>>
76 void SetRightsizingRecommendations(RightsizingRecommendationsT&& value) {
77 m_rightsizingRecommendationsHasBeenSet = true;
78 m_rightsizingRecommendations = std::forward<RightsizingRecommendationsT>(value);
79 }
80 template <typename RightsizingRecommendationsT = Aws::Vector<RightsizingRecommendation>>
82 SetRightsizingRecommendations(std::forward<RightsizingRecommendationsT>(value));
83 return *this;
84 }
85 template <typename RightsizingRecommendationsT = RightsizingRecommendation>
87 m_rightsizingRecommendationsHasBeenSet = true;
88 m_rightsizingRecommendations.emplace_back(std::forward<RightsizingRecommendationsT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
98 template <typename NextPageTokenT = Aws::String>
99 void SetNextPageToken(NextPageTokenT&& value) {
100 m_nextPageTokenHasBeenSet = true;
101 m_nextPageToken = std::forward<NextPageTokenT>(value);
102 }
103 template <typename NextPageTokenT = Aws::String>
105 SetNextPageToken(std::forward<NextPageTokenT>(value));
106 return *this;
107 }
109
111
118 inline const RightsizingRecommendationConfiguration& GetConfiguration() const { return m_configuration; }
119 template <typename ConfigurationT = RightsizingRecommendationConfiguration>
120 void SetConfiguration(ConfigurationT&& value) {
121 m_configurationHasBeenSet = true;
122 m_configuration = std::forward<ConfigurationT>(value);
123 }
124 template <typename ConfigurationT = RightsizingRecommendationConfiguration>
126 SetConfiguration(std::forward<ConfigurationT>(value));
127 return *this;
128 }
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template <typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) {
136 m_requestIdHasBeenSet = true;
137 m_requestId = std::forward<RequestIdT>(value);
138 }
139 template <typename RequestIdT = Aws::String>
141 SetRequestId(std::forward<RequestIdT>(value));
142 return *this;
143 }
145 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
146
147 private:
149
151
152 Aws::Vector<RightsizingRecommendation> m_rightsizingRecommendations;
153
154 Aws::String m_nextPageToken;
155
157
158 Aws::String m_requestId;
159 Aws::Http::HttpResponseCode m_HttpResponseCode;
160 bool m_metadataHasBeenSet = false;
161 bool m_summaryHasBeenSet = false;
162 bool m_rightsizingRecommendationsHasBeenSet = false;
163 bool m_nextPageTokenHasBeenSet = false;
164 bool m_configurationHasBeenSet = false;
165 bool m_requestIdHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace CostExplorer
170} // namespace Aws
AWS_COSTEXPLORER_API GetRightsizingRecommendationResult()=default
const Aws::Vector< RightsizingRecommendation > & GetRightsizingRecommendations() const
GetRightsizingRecommendationResult & WithRightsizingRecommendations(RightsizingRecommendationsT &&value)
GetRightsizingRecommendationResult & AddRightsizingRecommendations(RightsizingRecommendationsT &&value)
GetRightsizingRecommendationResult & WithNextPageToken(NextPageTokenT &&value)
AWS_COSTEXPLORER_API GetRightsizingRecommendationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRightsizingRecommendationResult & WithSummary(SummaryT &&value)
const RightsizingRecommendationConfiguration & GetConfiguration() const
GetRightsizingRecommendationResult & WithRequestId(RequestIdT &&value)
GetRightsizingRecommendationResult & WithMetadata(MetadataT &&value)
GetRightsizingRecommendationResult & WithConfiguration(ConfigurationT &&value)
AWS_COSTEXPLORER_API GetRightsizingRecommendationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue