AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Recommendation.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/core/utils/DateTime.h>
10#include <aws/cost-optimization-hub/model/Source.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cost-optimization-hub/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CostOptimizationHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_COSTOPTIMIZATIONHUB_API Recommendation();
39 AWS_COSTOPTIMIZATIONHUB_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTOPTIMIZATIONHUB_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
49 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
50 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
51 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
52 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
53 inline Recommendation& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
54 inline Recommendation& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
55 inline Recommendation& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
57
59
62 inline const Aws::String& GetAccountId() const{ return m_accountId; }
63 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
64 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
65 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
66 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
67 inline Recommendation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
68 inline Recommendation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
69 inline Recommendation& WithAccountId(const char* value) { SetAccountId(value); return *this;}
71
73
76 inline const Aws::String& GetRegion() const{ return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
79 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
80 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
81 inline Recommendation& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
82 inline Recommendation& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
83 inline Recommendation& WithRegion(const char* value) { SetRegion(value); return *this;}
85
87
90 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
91 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
92 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
93 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
94 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
95 inline Recommendation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
96 inline Recommendation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
97 inline Recommendation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
99
101
104 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
105 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
106 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
107 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
108 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
109 inline Recommendation& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
110 inline Recommendation& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
111 inline Recommendation& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
113
115
118 inline const Aws::String& GetCurrentResourceType() const{ return m_currentResourceType; }
119 inline bool CurrentResourceTypeHasBeenSet() const { return m_currentResourceTypeHasBeenSet; }
120 inline void SetCurrentResourceType(const Aws::String& value) { m_currentResourceTypeHasBeenSet = true; m_currentResourceType = value; }
121 inline void SetCurrentResourceType(Aws::String&& value) { m_currentResourceTypeHasBeenSet = true; m_currentResourceType = std::move(value); }
122 inline void SetCurrentResourceType(const char* value) { m_currentResourceTypeHasBeenSet = true; m_currentResourceType.assign(value); }
123 inline Recommendation& WithCurrentResourceType(const Aws::String& value) { SetCurrentResourceType(value); return *this;}
124 inline Recommendation& WithCurrentResourceType(Aws::String&& value) { SetCurrentResourceType(std::move(value)); return *this;}
125 inline Recommendation& WithCurrentResourceType(const char* value) { SetCurrentResourceType(value); return *this;}
127
129
132 inline const Aws::String& GetRecommendedResourceType() const{ return m_recommendedResourceType; }
133 inline bool RecommendedResourceTypeHasBeenSet() const { return m_recommendedResourceTypeHasBeenSet; }
134 inline void SetRecommendedResourceType(const Aws::String& value) { m_recommendedResourceTypeHasBeenSet = true; m_recommendedResourceType = value; }
135 inline void SetRecommendedResourceType(Aws::String&& value) { m_recommendedResourceTypeHasBeenSet = true; m_recommendedResourceType = std::move(value); }
136 inline void SetRecommendedResourceType(const char* value) { m_recommendedResourceTypeHasBeenSet = true; m_recommendedResourceType.assign(value); }
138 inline Recommendation& WithRecommendedResourceType(Aws::String&& value) { SetRecommendedResourceType(std::move(value)); return *this;}
139 inline Recommendation& WithRecommendedResourceType(const char* value) { SetRecommendedResourceType(value); return *this;}
141
143
146 inline double GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; }
147 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
148 inline void SetEstimatedMonthlySavings(double value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; }
149 inline Recommendation& WithEstimatedMonthlySavings(double value) { SetEstimatedMonthlySavings(value); return *this;}
151
153
157 inline double GetEstimatedSavingsPercentage() const{ return m_estimatedSavingsPercentage; }
158 inline bool EstimatedSavingsPercentageHasBeenSet() const { return m_estimatedSavingsPercentageHasBeenSet; }
159 inline void SetEstimatedSavingsPercentage(double value) { m_estimatedSavingsPercentageHasBeenSet = true; m_estimatedSavingsPercentage = value; }
162
164
168 inline double GetEstimatedMonthlyCost() const{ return m_estimatedMonthlyCost; }
169 inline bool EstimatedMonthlyCostHasBeenSet() const { return m_estimatedMonthlyCostHasBeenSet; }
170 inline void SetEstimatedMonthlyCost(double value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost = value; }
171 inline Recommendation& WithEstimatedMonthlyCost(double value) { SetEstimatedMonthlyCost(value); return *this;}
173
175
178 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
179 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
180 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
181 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
182 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
183 inline Recommendation& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
184 inline Recommendation& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
185 inline Recommendation& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
187
189
192 inline const Aws::String& GetImplementationEffort() const{ return m_implementationEffort; }
193 inline bool ImplementationEffortHasBeenSet() const { return m_implementationEffortHasBeenSet; }
194 inline void SetImplementationEffort(const Aws::String& value) { m_implementationEffortHasBeenSet = true; m_implementationEffort = value; }
195 inline void SetImplementationEffort(Aws::String&& value) { m_implementationEffortHasBeenSet = true; m_implementationEffort = std::move(value); }
196 inline void SetImplementationEffort(const char* value) { m_implementationEffortHasBeenSet = true; m_implementationEffort.assign(value); }
197 inline Recommendation& WithImplementationEffort(const Aws::String& value) { SetImplementationEffort(value); return *this;}
198 inline Recommendation& WithImplementationEffort(Aws::String&& value) { SetImplementationEffort(std::move(value)); return *this;}
199 inline Recommendation& WithImplementationEffort(const char* value) { SetImplementationEffort(value); return *this;}
201
203
206 inline bool GetRestartNeeded() const{ return m_restartNeeded; }
207 inline bool RestartNeededHasBeenSet() const { return m_restartNeededHasBeenSet; }
208 inline void SetRestartNeeded(bool value) { m_restartNeededHasBeenSet = true; m_restartNeeded = value; }
209 inline Recommendation& WithRestartNeeded(bool value) { SetRestartNeeded(value); return *this;}
211
213
216 inline const Aws::String& GetActionType() const{ return m_actionType; }
217 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
218 inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
219 inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
220 inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); }
221 inline Recommendation& WithActionType(const Aws::String& value) { SetActionType(value); return *this;}
222 inline Recommendation& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;}
223 inline Recommendation& WithActionType(const char* value) { SetActionType(value); return *this;}
225
227
230 inline bool GetRollbackPossible() const{ return m_rollbackPossible; }
231 inline bool RollbackPossibleHasBeenSet() const { return m_rollbackPossibleHasBeenSet; }
232 inline void SetRollbackPossible(bool value) { m_rollbackPossibleHasBeenSet = true; m_rollbackPossible = value; }
233 inline Recommendation& WithRollbackPossible(bool value) { SetRollbackPossible(value); return *this;}
235
237
240 inline const Aws::String& GetCurrentResourceSummary() const{ return m_currentResourceSummary; }
241 inline bool CurrentResourceSummaryHasBeenSet() const { return m_currentResourceSummaryHasBeenSet; }
242 inline void SetCurrentResourceSummary(const Aws::String& value) { m_currentResourceSummaryHasBeenSet = true; m_currentResourceSummary = value; }
243 inline void SetCurrentResourceSummary(Aws::String&& value) { m_currentResourceSummaryHasBeenSet = true; m_currentResourceSummary = std::move(value); }
244 inline void SetCurrentResourceSummary(const char* value) { m_currentResourceSummaryHasBeenSet = true; m_currentResourceSummary.assign(value); }
246 inline Recommendation& WithCurrentResourceSummary(Aws::String&& value) { SetCurrentResourceSummary(std::move(value)); return *this;}
247 inline Recommendation& WithCurrentResourceSummary(const char* value) { SetCurrentResourceSummary(value); return *this;}
249
251
254 inline const Aws::String& GetRecommendedResourceSummary() const{ return m_recommendedResourceSummary; }
255 inline bool RecommendedResourceSummaryHasBeenSet() const { return m_recommendedResourceSummaryHasBeenSet; }
256 inline void SetRecommendedResourceSummary(const Aws::String& value) { m_recommendedResourceSummaryHasBeenSet = true; m_recommendedResourceSummary = value; }
257 inline void SetRecommendedResourceSummary(Aws::String&& value) { m_recommendedResourceSummaryHasBeenSet = true; m_recommendedResourceSummary = std::move(value); }
258 inline void SetRecommendedResourceSummary(const char* value) { m_recommendedResourceSummaryHasBeenSet = true; m_recommendedResourceSummary.assign(value); }
261 inline Recommendation& WithRecommendedResourceSummary(const char* value) { SetRecommendedResourceSummary(value); return *this;}
263
265
268 inline const Aws::Utils::DateTime& GetLastRefreshTimestamp() const{ return m_lastRefreshTimestamp; }
269 inline bool LastRefreshTimestampHasBeenSet() const { return m_lastRefreshTimestampHasBeenSet; }
270 inline void SetLastRefreshTimestamp(const Aws::Utils::DateTime& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = value; }
271 inline void SetLastRefreshTimestamp(Aws::Utils::DateTime&& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = std::move(value); }
273 inline Recommendation& WithLastRefreshTimestamp(Aws::Utils::DateTime&& value) { SetLastRefreshTimestamp(std::move(value)); return *this;}
275
277
280 inline int GetRecommendationLookbackPeriodInDays() const{ return m_recommendationLookbackPeriodInDays; }
281 inline bool RecommendationLookbackPeriodInDaysHasBeenSet() const { return m_recommendationLookbackPeriodInDaysHasBeenSet; }
282 inline void SetRecommendationLookbackPeriodInDays(int value) { m_recommendationLookbackPeriodInDaysHasBeenSet = true; m_recommendationLookbackPeriodInDays = value; }
285
287
290 inline const Source& GetSource() const{ return m_source; }
291 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
292 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
293 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
294 inline Recommendation& WithSource(const Source& value) { SetSource(value); return *this;}
295 inline Recommendation& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
297
299
302 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
303 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
304 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
305 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
306 inline Recommendation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
307 inline Recommendation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
308 inline Recommendation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
309 inline Recommendation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
311 private:
312
313 Aws::String m_recommendationId;
314 bool m_recommendationIdHasBeenSet = false;
315
316 Aws::String m_accountId;
317 bool m_accountIdHasBeenSet = false;
318
319 Aws::String m_region;
320 bool m_regionHasBeenSet = false;
321
322 Aws::String m_resourceId;
323 bool m_resourceIdHasBeenSet = false;
324
325 Aws::String m_resourceArn;
326 bool m_resourceArnHasBeenSet = false;
327
328 Aws::String m_currentResourceType;
329 bool m_currentResourceTypeHasBeenSet = false;
330
331 Aws::String m_recommendedResourceType;
332 bool m_recommendedResourceTypeHasBeenSet = false;
333
334 double m_estimatedMonthlySavings;
335 bool m_estimatedMonthlySavingsHasBeenSet = false;
336
337 double m_estimatedSavingsPercentage;
338 bool m_estimatedSavingsPercentageHasBeenSet = false;
339
340 double m_estimatedMonthlyCost;
341 bool m_estimatedMonthlyCostHasBeenSet = false;
342
343 Aws::String m_currencyCode;
344 bool m_currencyCodeHasBeenSet = false;
345
346 Aws::String m_implementationEffort;
347 bool m_implementationEffortHasBeenSet = false;
348
349 bool m_restartNeeded;
350 bool m_restartNeededHasBeenSet = false;
351
352 Aws::String m_actionType;
353 bool m_actionTypeHasBeenSet = false;
354
355 bool m_rollbackPossible;
356 bool m_rollbackPossibleHasBeenSet = false;
357
358 Aws::String m_currentResourceSummary;
359 bool m_currentResourceSummaryHasBeenSet = false;
360
361 Aws::String m_recommendedResourceSummary;
362 bool m_recommendedResourceSummaryHasBeenSet = false;
363
364 Aws::Utils::DateTime m_lastRefreshTimestamp;
365 bool m_lastRefreshTimestampHasBeenSet = false;
366
367 int m_recommendationLookbackPeriodInDays;
368 bool m_recommendationLookbackPeriodInDaysHasBeenSet = false;
369
370 Source m_source;
371 bool m_sourceHasBeenSet = false;
372
373 Aws::Vector<Tag> m_tags;
374 bool m_tagsHasBeenSet = false;
375 };
376
377} // namespace Model
378} // namespace CostOptimizationHub
379} // namespace Aws
void SetRecommendedResourceSummary(Aws::String &&value)
Recommendation & WithCurrentResourceType(const char *value)
Recommendation & WithAccountId(const char *value)
AWS_COSTOPTIMIZATIONHUB_API Recommendation()
Recommendation & WithImplementationEffort(const char *value)
Recommendation & WithEstimatedSavingsPercentage(double value)
Recommendation & WithImplementationEffort(Aws::String &&value)
Recommendation & WithEstimatedMonthlySavings(double value)
Recommendation & WithAccountId(const Aws::String &value)
Recommendation & AddTags(const Tag &value)
Recommendation & WithResourceId(const Aws::String &value)
Recommendation & WithCurrencyCode(Aws::String &&value)
Recommendation & WithCurrentResourceSummary(Aws::String &&value)
void SetResourceId(const Aws::String &value)
void SetRecommendedResourceType(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
Recommendation & WithRecommendationLookbackPeriodInDays(int value)
void SetTags(const Aws::Vector< Tag > &value)
Recommendation & WithResourceId(const char *value)
Recommendation & WithCurrentResourceType(const Aws::String &value)
Recommendation & WithAccountId(Aws::String &&value)
Recommendation & WithActionType(Aws::String &&value)
const Aws::String & GetCurrentResourceSummary() const
Recommendation & WithResourceId(Aws::String &&value)
Recommendation & WithResourceArn(const Aws::String &value)
const Aws::String & GetCurrentResourceType() const
Recommendation & WithRecommendedResourceType(Aws::String &&value)
Recommendation & WithCurrencyCode(const char *value)
Recommendation & WithRollbackPossible(bool value)
Recommendation & WithResourceArn(const char *value)
Recommendation & WithActionType(const Aws::String &value)
const Aws::String & GetRecommendedResourceSummary() const
Recommendation & WithTags(Aws::Vector< Tag > &&value)
void SetImplementationEffort(const Aws::String &value)
Recommendation & WithCurrentResourceSummary(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Recommendation & WithLastRefreshTimestamp(const Aws::Utils::DateTime &value)
Recommendation & WithCurrentResourceSummary(const char *value)
Recommendation & WithImplementationEffort(const Aws::String &value)
Recommendation & WithSource(const Source &value)
void SetCurrentResourceType(const Aws::String &value)
const Aws::Utils::DateTime & GetLastRefreshTimestamp() const
void SetRecommendationId(const Aws::String &value)
Recommendation & WithRecommendedResourceSummary(Aws::String &&value)
void SetResourceArn(const Aws::String &value)
Recommendation & WithRecommendedResourceSummary(const char *value)
Recommendation & WithRecommendedResourceType(const Aws::String &value)
Recommendation & WithSource(Source &&value)
Recommendation & WithRecommendedResourceSummary(const Aws::String &value)
void SetCurrencyCode(const Aws::String &value)
Recommendation & WithRegion(const Aws::String &value)
Recommendation & WithRecommendationId(const char *value)
Recommendation & WithRecommendationId(const Aws::String &value)
Recommendation & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetRecommendationId() const
AWS_COSTOPTIMIZATIONHUB_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
void SetLastRefreshTimestamp(Aws::Utils::DateTime &&value)
void SetLastRefreshTimestamp(const Aws::Utils::DateTime &value)
void SetAccountId(const Aws::String &value)
void SetActionType(const Aws::String &value)
Recommendation & WithRegion(Aws::String &&value)
Recommendation & WithCurrentResourceType(Aws::String &&value)
Recommendation & WithRecommendedResourceType(const char *value)
Recommendation & WithLastRefreshTimestamp(Aws::Utils::DateTime &&value)
void SetCurrentResourceSummary(const Aws::String &value)
Recommendation & WithRegion(const char *value)
const Aws::String & GetRecommendedResourceType() const
Recommendation & WithResourceArn(Aws::String &&value)
const Aws::String & GetImplementationEffort() const
Recommendation & WithCurrencyCode(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithRecommendationId(Aws::String &&value)
Recommendation & WithActionType(const char *value)
void SetRecommendedResourceSummary(const Aws::String &value)
Recommendation & WithEstimatedMonthlyCost(double value)
void SetTags(Aws::Vector< Tag > &&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