AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListRecommendationSummariesRequest.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/CostOptimizationHubRequest.h>
9#include <aws/cost-optimization-hub/model/Filter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cost-optimization-hub/model/SummaryMetrics.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CostOptimizationHub
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COSTOPTIMIZATIONHUB_API ListRecommendationSummariesRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListRecommendationSummaries"; }
34
35 AWS_COSTOPTIMIZATIONHUB_API Aws::String SerializePayload() const override;
36
37 AWS_COSTOPTIMIZATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
42 inline const Filter& GetFilter() const{ return m_filter; }
43 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
44 inline void SetFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter = value; }
45 inline void SetFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
46 inline ListRecommendationSummariesRequest& WithFilter(const Filter& value) { SetFilter(value); return *this;}
47 inline ListRecommendationSummariesRequest& WithFilter(Filter&& value) { SetFilter(std::move(value)); return *this;}
49
51
54 inline const Aws::String& GetGroupBy() const{ return m_groupBy; }
55 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
56 inline void SetGroupBy(const Aws::String& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
57 inline void SetGroupBy(Aws::String&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
58 inline void SetGroupBy(const char* value) { m_groupByHasBeenSet = true; m_groupBy.assign(value); }
59 inline ListRecommendationSummariesRequest& WithGroupBy(const Aws::String& value) { SetGroupBy(value); return *this;}
60 inline ListRecommendationSummariesRequest& WithGroupBy(Aws::String&& value) { SetGroupBy(std::move(value)); return *this;}
61 inline ListRecommendationSummariesRequest& WithGroupBy(const char* value) { SetGroupBy(value); return *this;}
63
65
68 inline int GetMaxResults() const{ return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline ListRecommendationSummariesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
79 inline const Aws::Vector<SummaryMetrics>& GetMetrics() const{ return m_metrics; }
80 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
81 inline void SetMetrics(const Aws::Vector<SummaryMetrics>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
82 inline void SetMetrics(Aws::Vector<SummaryMetrics>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
84 inline ListRecommendationSummariesRequest& WithMetrics(Aws::Vector<SummaryMetrics>&& value) { SetMetrics(std::move(value)); return *this;}
85 inline ListRecommendationSummariesRequest& AddMetrics(const SummaryMetrics& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
86 inline ListRecommendationSummariesRequest& AddMetrics(SummaryMetrics&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
97 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
98 inline ListRecommendationSummariesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 inline ListRecommendationSummariesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
100 inline ListRecommendationSummariesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102 private:
103
104 Filter m_filter;
105 bool m_filterHasBeenSet = false;
106
107 Aws::String m_groupBy;
108 bool m_groupByHasBeenSet = false;
109
110 int m_maxResults;
111 bool m_maxResultsHasBeenSet = false;
112
114 bool m_metricsHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace CostOptimizationHub
122} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API Aws::String SerializePayload() const override
ListRecommendationSummariesRequest & AddMetrics(SummaryMetrics &&value)
ListRecommendationSummariesRequest & WithMetrics(Aws::Vector< SummaryMetrics > &&value)
ListRecommendationSummariesRequest & WithGroupBy(Aws::String &&value)
ListRecommendationSummariesRequest & AddMetrics(const SummaryMetrics &value)
ListRecommendationSummariesRequest & WithMetrics(const Aws::Vector< SummaryMetrics > &value)
ListRecommendationSummariesRequest & WithFilter(const Filter &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListRecommendationSummariesRequest & WithNextToken(const Aws::String &value)
ListRecommendationSummariesRequest & WithGroupBy(const Aws::String &value)
ListRecommendationSummariesRequest & WithNextToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector