AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetRecommendationResult.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cost-optimization-hub/model/ResourceType.h>
10#include <aws/cost-optimization-hub/model/Source.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/cost-optimization-hub/model/ImplementationEffort.h>
13#include <aws/cost-optimization-hub/model/ActionType.h>
14#include <aws/cost-optimization-hub/model/ResourceDetails.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/cost-optimization-hub/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace CostOptimizationHub
32{
33namespace Model
34{
36 {
37 public:
38 AWS_COSTOPTIMIZATIONHUB_API GetRecommendationResult();
41
42
44
47 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
48 inline void SetRecommendationId(const Aws::String& value) { m_recommendationId = value; }
49 inline void SetRecommendationId(Aws::String&& value) { m_recommendationId = std::move(value); }
50 inline void SetRecommendationId(const char* value) { m_recommendationId.assign(value); }
51 inline GetRecommendationResult& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
52 inline GetRecommendationResult& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
53 inline GetRecommendationResult& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
55
57
61 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
62 inline void SetResourceId(const Aws::String& value) { m_resourceId = value; }
63 inline void SetResourceId(Aws::String&& value) { m_resourceId = std::move(value); }
64 inline void SetResourceId(const char* value) { m_resourceId.assign(value); }
65 inline GetRecommendationResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
66 inline GetRecommendationResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
67 inline GetRecommendationResult& WithResourceId(const char* value) { SetResourceId(value); return *this;}
69
71
74 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
75 inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; }
76 inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); }
77 inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); }
78 inline GetRecommendationResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
79 inline GetRecommendationResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
80 inline GetRecommendationResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
82
84
87 inline const Aws::String& GetAccountId() const{ return m_accountId; }
88 inline void SetAccountId(const Aws::String& value) { m_accountId = value; }
89 inline void SetAccountId(Aws::String&& value) { m_accountId = std::move(value); }
90 inline void SetAccountId(const char* value) { m_accountId.assign(value); }
91 inline GetRecommendationResult& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
92 inline GetRecommendationResult& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
93 inline GetRecommendationResult& WithAccountId(const char* value) { SetAccountId(value); return *this;}
95
97
100 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
101 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCode = value; }
102 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCode = std::move(value); }
103 inline void SetCurrencyCode(const char* value) { m_currencyCode.assign(value); }
104 inline GetRecommendationResult& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
105 inline GetRecommendationResult& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
106 inline GetRecommendationResult& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
108
110
113 inline int GetRecommendationLookbackPeriodInDays() const{ return m_recommendationLookbackPeriodInDays; }
114 inline void SetRecommendationLookbackPeriodInDays(int value) { m_recommendationLookbackPeriodInDays = value; }
117
119
122 inline int GetCostCalculationLookbackPeriodInDays() const{ return m_costCalculationLookbackPeriodInDays; }
123 inline void SetCostCalculationLookbackPeriodInDays(int value) { m_costCalculationLookbackPeriodInDays = value; }
126
128
132 inline double GetEstimatedSavingsPercentage() const{ return m_estimatedSavingsPercentage; }
133 inline void SetEstimatedSavingsPercentage(double value) { m_estimatedSavingsPercentage = value; }
136
138
142 inline double GetEstimatedSavingsOverCostCalculationLookbackPeriod() const{ return m_estimatedSavingsOverCostCalculationLookbackPeriod; }
143 inline void SetEstimatedSavingsOverCostCalculationLookbackPeriod(double value) { m_estimatedSavingsOverCostCalculationLookbackPeriod = value; }
146
148
151 inline const ResourceType& GetCurrentResourceType() const{ return m_currentResourceType; }
152 inline void SetCurrentResourceType(const ResourceType& value) { m_currentResourceType = value; }
153 inline void SetCurrentResourceType(ResourceType&& value) { m_currentResourceType = std::move(value); }
155 inline GetRecommendationResult& WithCurrentResourceType(ResourceType&& value) { SetCurrentResourceType(std::move(value)); return *this;}
157
159
162 inline const ResourceType& GetRecommendedResourceType() const{ return m_recommendedResourceType; }
163 inline void SetRecommendedResourceType(const ResourceType& value) { m_recommendedResourceType = value; }
164 inline void SetRecommendedResourceType(ResourceType&& value) { m_recommendedResourceType = std::move(value); }
168
170
173 inline const Aws::String& GetRegion() const{ return m_region; }
174 inline void SetRegion(const Aws::String& value) { m_region = value; }
175 inline void SetRegion(Aws::String&& value) { m_region = std::move(value); }
176 inline void SetRegion(const char* value) { m_region.assign(value); }
177 inline GetRecommendationResult& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
178 inline GetRecommendationResult& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
179 inline GetRecommendationResult& WithRegion(const char* value) { SetRegion(value); return *this;}
181
183
186 inline const Source& GetSource() const{ return m_source; }
187 inline void SetSource(const Source& value) { m_source = value; }
188 inline void SetSource(Source&& value) { m_source = std::move(value); }
189 inline GetRecommendationResult& WithSource(const Source& value) { SetSource(value); return *this;}
190 inline GetRecommendationResult& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
192
194
197 inline const Aws::Utils::DateTime& GetLastRefreshTimestamp() const{ return m_lastRefreshTimestamp; }
198 inline void SetLastRefreshTimestamp(const Aws::Utils::DateTime& value) { m_lastRefreshTimestamp = value; }
199 inline void SetLastRefreshTimestamp(Aws::Utils::DateTime&& value) { m_lastRefreshTimestamp = std::move(value); }
203
205
208 inline double GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; }
209 inline void SetEstimatedMonthlySavings(double value) { m_estimatedMonthlySavings = value; }
212
214
218 inline double GetEstimatedMonthlyCost() const{ return m_estimatedMonthlyCost; }
219 inline void SetEstimatedMonthlyCost(double value) { m_estimatedMonthlyCost = value; }
220 inline GetRecommendationResult& WithEstimatedMonthlyCost(double value) { SetEstimatedMonthlyCost(value); return *this;}
222
224
227 inline const ImplementationEffort& GetImplementationEffort() const{ return m_implementationEffort; }
228 inline void SetImplementationEffort(const ImplementationEffort& value) { m_implementationEffort = value; }
229 inline void SetImplementationEffort(ImplementationEffort&& value) { m_implementationEffort = std::move(value); }
233
235
238 inline bool GetRestartNeeded() const{ return m_restartNeeded; }
239 inline void SetRestartNeeded(bool value) { m_restartNeeded = value; }
240 inline GetRecommendationResult& WithRestartNeeded(bool value) { SetRestartNeeded(value); return *this;}
242
244
247 inline const ActionType& GetActionType() const{ return m_actionType; }
248 inline void SetActionType(const ActionType& value) { m_actionType = value; }
249 inline void SetActionType(ActionType&& value) { m_actionType = std::move(value); }
250 inline GetRecommendationResult& WithActionType(const ActionType& value) { SetActionType(value); return *this;}
251 inline GetRecommendationResult& WithActionType(ActionType&& value) { SetActionType(std::move(value)); return *this;}
253
255
258 inline bool GetRollbackPossible() const{ return m_rollbackPossible; }
259 inline void SetRollbackPossible(bool value) { m_rollbackPossible = value; }
260 inline GetRecommendationResult& WithRollbackPossible(bool value) { SetRollbackPossible(value); return *this;}
262
264
267 inline const ResourceDetails& GetCurrentResourceDetails() const{ return m_currentResourceDetails; }
268 inline void SetCurrentResourceDetails(const ResourceDetails& value) { m_currentResourceDetails = value; }
269 inline void SetCurrentResourceDetails(ResourceDetails&& value) { m_currentResourceDetails = std::move(value); }
273
275
278 inline const ResourceDetails& GetRecommendedResourceDetails() const{ return m_recommendedResourceDetails; }
279 inline void SetRecommendedResourceDetails(const ResourceDetails& value) { m_recommendedResourceDetails = value; }
280 inline void SetRecommendedResourceDetails(ResourceDetails&& value) { m_recommendedResourceDetails = std::move(value); }
284
286
290 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
291 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
292 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
293 inline GetRecommendationResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
294 inline GetRecommendationResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
295 inline GetRecommendationResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
296 inline GetRecommendationResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
298
300
301 inline const Aws::String& GetRequestId() const{ return m_requestId; }
302 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
303 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
304 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
305 inline GetRecommendationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
306 inline GetRecommendationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
307 inline GetRecommendationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
309 private:
310
311 Aws::String m_recommendationId;
312
313 Aws::String m_resourceId;
314
315 Aws::String m_resourceArn;
316
317 Aws::String m_accountId;
318
319 Aws::String m_currencyCode;
320
321 int m_recommendationLookbackPeriodInDays;
322
323 int m_costCalculationLookbackPeriodInDays;
324
325 double m_estimatedSavingsPercentage;
326
327 double m_estimatedSavingsOverCostCalculationLookbackPeriod;
328
329 ResourceType m_currentResourceType;
330
331 ResourceType m_recommendedResourceType;
332
333 Aws::String m_region;
334
335 Source m_source;
336
337 Aws::Utils::DateTime m_lastRefreshTimestamp;
338
339 double m_estimatedMonthlySavings;
340
341 double m_estimatedMonthlyCost;
342
343 ImplementationEffort m_implementationEffort;
344
345 bool m_restartNeeded;
346
347 ActionType m_actionType;
348
349 bool m_rollbackPossible;
350
351 ResourceDetails m_currentResourceDetails;
352
353 ResourceDetails m_recommendedResourceDetails;
354
355 Aws::Vector<Tag> m_tags;
356
357 Aws::String m_requestId;
358 };
359
360} // namespace Model
361} // namespace CostOptimizationHub
362} // namespace Aws
GetRecommendationResult & WithEstimatedSavingsOverCostCalculationLookbackPeriod(double value)
GetRecommendationResult & WithRequestId(const char *value)
GetRecommendationResult & WithRecommendedResourceType(ResourceType &&value)
GetRecommendationResult & WithLastRefreshTimestamp(const Aws::Utils::DateTime &value)
void SetImplementationEffort(const ImplementationEffort &value)
GetRecommendationResult & WithRegion(const char *value)
GetRecommendationResult & WithRecommendationId(const Aws::String &value)
GetRecommendationResult & WithLastRefreshTimestamp(Aws::Utils::DateTime &&value)
GetRecommendationResult & WithCurrencyCode(const char *value)
GetRecommendationResult & WithTags(Aws::Vector< Tag > &&value)
GetRecommendationResult & WithTags(const Aws::Vector< Tag > &value)
GetRecommendationResult & WithActionType(ActionType &&value)
GetRecommendationResult & WithCurrentResourceType(const ResourceType &value)
GetRecommendationResult & WithResourceArn(const Aws::String &value)
GetRecommendationResult & WithActionType(const ActionType &value)
GetRecommendationResult & WithEstimatedSavingsPercentage(double value)
GetRecommendationResult & WithRecommendedResourceType(const ResourceType &value)
GetRecommendationResult & WithSource(const Source &value)
GetRecommendationResult & WithCostCalculationLookbackPeriodInDays(int value)
GetRecommendationResult & WithCurrentResourceDetails(ResourceDetails &&value)
GetRecommendationResult & WithEstimatedMonthlyCost(double value)
GetRecommendationResult & WithImplementationEffort(const ImplementationEffort &value)
GetRecommendationResult & WithAccountId(const Aws::String &value)
GetRecommendationResult & WithResourceId(const char *value)
GetRecommendationResult & WithImplementationEffort(ImplementationEffort &&value)
GetRecommendationResult & WithRecommendationLookbackPeriodInDays(int value)
GetRecommendationResult & WithEstimatedMonthlySavings(double value)
GetRecommendationResult & WithRecommendationId(Aws::String &&value)
GetRecommendationResult & WithRecommendedResourceDetails(const ResourceDetails &value)
GetRecommendationResult & WithRecommendedResourceDetails(ResourceDetails &&value)
GetRecommendationResult & WithResourceId(const Aws::String &value)
GetRecommendationResult & WithCurrentResourceDetails(const ResourceDetails &value)
GetRecommendationResult & WithResourceArn(const char *value)
void SetLastRefreshTimestamp(const Aws::Utils::DateTime &value)
GetRecommendationResult & WithRequestId(const Aws::String &value)
GetRecommendationResult & WithRegion(Aws::String &&value)
GetRecommendationResult & WithCurrencyCode(Aws::String &&value)
AWS_COSTOPTIMIZATIONHUB_API GetRecommendationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecommendationResult & WithCurrencyCode(const Aws::String &value)
GetRecommendationResult & WithRequestId(Aws::String &&value)
GetRecommendationResult & WithCurrentResourceType(ResourceType &&value)
AWS_COSTOPTIMIZATIONHUB_API GetRecommendationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecommendationResult & WithRecommendationId(const char *value)
GetRecommendationResult & WithResourceArn(Aws::String &&value)
GetRecommendationResult & WithAccountId(Aws::String &&value)
GetRecommendationResult & WithAccountId(const char *value)
GetRecommendationResult & WithRegion(const Aws::String &value)
GetRecommendationResult & WithResourceId(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