AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListRecommendationSummariesResult.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cost-optimization-hub/model/SummaryMetricsResult.h>
11#include <aws/cost-optimization-hub/model/RecommendationSummary.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 CostOptimizationHub
27{
28namespace Model
29{
31 {
32 public:
33 AWS_COSTOPTIMIZATIONHUB_API ListRecommendationSummariesResult() = default;
36
37
39
42 inline double GetEstimatedTotalDedupedSavings() const { return m_estimatedTotalDedupedSavings; }
43 inline void SetEstimatedTotalDedupedSavings(double value) { m_estimatedTotalDedupedSavingsHasBeenSet = true; m_estimatedTotalDedupedSavings = value; }
46
48
51 inline const Aws::Vector<RecommendationSummary>& GetItems() const { return m_items; }
52 template<typename ItemsT = Aws::Vector<RecommendationSummary>>
53 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
54 template<typename ItemsT = Aws::Vector<RecommendationSummary>>
55 ListRecommendationSummariesResult& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
56 template<typename ItemsT = RecommendationSummary>
57 ListRecommendationSummariesResult& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
59
61
64 inline const Aws::String& GetGroupBy() const { return m_groupBy; }
65 template<typename GroupByT = Aws::String>
66 void SetGroupBy(GroupByT&& value) { m_groupByHasBeenSet = true; m_groupBy = std::forward<GroupByT>(value); }
67 template<typename GroupByT = Aws::String>
68 ListRecommendationSummariesResult& WithGroupBy(GroupByT&& value) { SetGroupBy(std::forward<GroupByT>(value)); return *this;}
70
72
75 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
76 template<typename CurrencyCodeT = Aws::String>
77 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
78 template<typename CurrencyCodeT = Aws::String>
79 ListRecommendationSummariesResult& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
81
83
87 inline const SummaryMetricsResult& GetMetrics() const { return m_metrics; }
88 template<typename MetricsT = SummaryMetricsResult>
89 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
90 template<typename MetricsT = SummaryMetricsResult>
91 ListRecommendationSummariesResult& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
93
95
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 template<typename NextTokenT = Aws::String>
100 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
101 template<typename NextTokenT = Aws::String>
102 ListRecommendationSummariesResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template<typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
110 template<typename RequestIdT = Aws::String>
111 ListRecommendationSummariesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
113 private:
114
115 double m_estimatedTotalDedupedSavings{0.0};
116 bool m_estimatedTotalDedupedSavingsHasBeenSet = false;
117
119 bool m_itemsHasBeenSet = false;
120
121 Aws::String m_groupBy;
122 bool m_groupByHasBeenSet = false;
123
124 Aws::String m_currencyCode;
125 bool m_currencyCodeHasBeenSet = false;
126
127 SummaryMetricsResult m_metrics;
128 bool m_metricsHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132
133 Aws::String m_requestId;
134 bool m_requestIdHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CostOptimizationHub
139} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API ListRecommendationSummariesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListRecommendationSummariesResult & WithNextToken(NextTokenT &&value)
ListRecommendationSummariesResult & WithCurrencyCode(CurrencyCodeT &&value)
ListRecommendationSummariesResult & WithEstimatedTotalDedupedSavings(double value)
AWS_COSTOPTIMIZATIONHUB_API ListRecommendationSummariesResult()=default
ListRecommendationSummariesResult & WithRequestId(RequestIdT &&value)
AWS_COSTOPTIMIZATIONHUB_API ListRecommendationSummariesResult & operator=(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