AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline double GetEstimatedTotalDedupedSavings() const{ return m_estimatedTotalDedupedSavings; }
43 inline void SetEstimatedTotalDedupedSavings(double value) { m_estimatedTotalDedupedSavings = value; }
46
48
51 inline const Aws::Vector<RecommendationSummary>& GetItems() const{ return m_items; }
52 inline void SetItems(const Aws::Vector<RecommendationSummary>& value) { m_items = value; }
53 inline void SetItems(Aws::Vector<RecommendationSummary>&& value) { m_items = std::move(value); }
56 inline ListRecommendationSummariesResult& AddItems(const RecommendationSummary& value) { m_items.push_back(value); return *this; }
57 inline ListRecommendationSummariesResult& AddItems(RecommendationSummary&& value) { m_items.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::String& GetGroupBy() const{ return m_groupBy; }
65 inline void SetGroupBy(const Aws::String& value) { m_groupBy = value; }
66 inline void SetGroupBy(Aws::String&& value) { m_groupBy = std::move(value); }
67 inline void SetGroupBy(const char* value) { m_groupBy.assign(value); }
68 inline ListRecommendationSummariesResult& WithGroupBy(const Aws::String& value) { SetGroupBy(value); return *this;}
69 inline ListRecommendationSummariesResult& WithGroupBy(Aws::String&& value) { SetGroupBy(std::move(value)); return *this;}
70 inline ListRecommendationSummariesResult& WithGroupBy(const char* value) { SetGroupBy(value); return *this;}
72
74
77 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
78 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCode = value; }
79 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCode = std::move(value); }
80 inline void SetCurrencyCode(const char* value) { m_currencyCode.assign(value); }
82 inline ListRecommendationSummariesResult& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
83 inline ListRecommendationSummariesResult& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
85
87
91 inline const SummaryMetricsResult& GetMetrics() const{ return m_metrics; }
92 inline void SetMetrics(const SummaryMetricsResult& value) { m_metrics = value; }
93 inline void SetMetrics(SummaryMetricsResult&& value) { m_metrics = std::move(value); }
95 inline ListRecommendationSummariesResult& WithMetrics(SummaryMetricsResult&& value) { SetMetrics(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
103 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
104 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
105 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
106 inline ListRecommendationSummariesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 inline ListRecommendationSummariesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 inline ListRecommendationSummariesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
110
112
113 inline const Aws::String& GetRequestId() const{ return m_requestId; }
114 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
115 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
116 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
117 inline ListRecommendationSummariesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
118 inline ListRecommendationSummariesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
119 inline ListRecommendationSummariesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
121 private:
122
123 double m_estimatedTotalDedupedSavings;
124
126
127 Aws::String m_groupBy;
128
129 Aws::String m_currencyCode;
130
131 SummaryMetricsResult m_metrics;
132
133 Aws::String m_nextToken;
134
135 Aws::String m_requestId;
136 };
137
138} // namespace Model
139} // namespace CostOptimizationHub
140} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API ListRecommendationSummariesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListRecommendationSummariesResult & WithRequestId(Aws::String &&value)
ListRecommendationSummariesResult & WithNextToken(Aws::String &&value)
ListRecommendationSummariesResult & WithCurrencyCode(const char *value)
ListRecommendationSummariesResult & WithGroupBy(Aws::String &&value)
ListRecommendationSummariesResult & WithItems(Aws::Vector< RecommendationSummary > &&value)
ListRecommendationSummariesResult & AddItems(RecommendationSummary &&value)
ListRecommendationSummariesResult & WithEstimatedTotalDedupedSavings(double value)
ListRecommendationSummariesResult & WithCurrencyCode(const Aws::String &value)
ListRecommendationSummariesResult & WithMetrics(const SummaryMetricsResult &value)
ListRecommendationSummariesResult & AddItems(const RecommendationSummary &value)
ListRecommendationSummariesResult & WithNextToken(const Aws::String &value)
ListRecommendationSummariesResult & WithMetrics(SummaryMetricsResult &&value)
AWS_COSTOPTIMIZATIONHUB_API ListRecommendationSummariesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListRecommendationSummariesResult & WithItems(const Aws::Vector< RecommendationSummary > &value)
ListRecommendationSummariesResult & WithRequestId(const Aws::String &value)
ListRecommendationSummariesResult & WithGroupBy(const Aws::String &value)
ListRecommendationSummariesResult & WithCurrencyCode(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