AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ListRecommendationsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHubRequest.h>
9#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
10#include <aws/cost-optimization-hub/model/Filter.h>
11#include <aws/cost-optimization-hub/model/OrderBy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CostOptimizationHub {
17namespace Model {
18
22 public:
23 AWS_COSTOPTIMIZATIONHUB_API ListRecommendationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListRecommendations"; }
30
31 AWS_COSTOPTIMIZATIONHUB_API Aws::String SerializePayload() const override;
32
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Filter& GetFilter() const { return m_filter; }
40 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
41 template <typename FilterT = Filter>
42 void SetFilter(FilterT&& value) {
43 m_filterHasBeenSet = true;
44 m_filter = std::forward<FilterT>(value);
45 }
46 template <typename FilterT = Filter>
48 SetFilter(std::forward<FilterT>(value));
49 return *this;
50 }
52
54
57 inline const OrderBy& GetOrderBy() const { return m_orderBy; }
58 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
59 template <typename OrderByT = OrderBy>
60 void SetOrderBy(OrderByT&& value) {
61 m_orderByHasBeenSet = true;
62 m_orderBy = std::forward<OrderByT>(value);
63 }
64 template <typename OrderByT = OrderBy>
66 SetOrderBy(std::forward<OrderByT>(value));
67 return *this;
68 }
70
72
76 inline bool GetIncludeAllRecommendations() const { return m_includeAllRecommendations; }
77 inline bool IncludeAllRecommendationsHasBeenSet() const { return m_includeAllRecommendationsHasBeenSet; }
78 inline void SetIncludeAllRecommendations(bool value) {
79 m_includeAllRecommendationsHasBeenSet = true;
80 m_includeAllRecommendations = value;
81 }
84 return *this;
85 }
87
89
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) {
95 m_maxResultsHasBeenSet = true;
96 m_maxResults = value;
97 }
99 SetMaxResults(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetNextToken() const { return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 template <typename NextTokenT = Aws::String>
111 void SetNextToken(NextTokenT&& value) {
112 m_nextTokenHasBeenSet = true;
113 m_nextToken = std::forward<NextTokenT>(value);
114 }
115 template <typename NextTokenT = Aws::String>
117 SetNextToken(std::forward<NextTokenT>(value));
118 return *this;
119 }
121 private:
122 Filter m_filter;
123
124 OrderBy m_orderBy;
125
126 bool m_includeAllRecommendations{false};
127
128 int m_maxResults{0};
129
130 Aws::String m_nextToken;
131 bool m_filterHasBeenSet = false;
132 bool m_orderByHasBeenSet = false;
133 bool m_includeAllRecommendationsHasBeenSet = false;
134 bool m_maxResultsHasBeenSet = false;
135 bool m_nextTokenHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace CostOptimizationHub
140} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTOPTIMIZATIONHUB_API Aws::String SerializePayload() const override
ListRecommendationsRequest & WithIncludeAllRecommendations(bool value)
ListRecommendationsRequest & WithNextToken(NextTokenT &&value)
ListRecommendationsRequest & WithOrderBy(OrderByT &&value)
AWS_COSTOPTIMIZATIONHUB_API ListRecommendationsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String