AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListRecommendationsRequest.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/cost-optimization-hub/model/OrderBy.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CostOptimizationHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COSTOPTIMIZATIONHUB_API ListRecommendationsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListRecommendations"; }
33
34 AWS_COSTOPTIMIZATIONHUB_API Aws::String SerializePayload() const override;
35
36 AWS_COSTOPTIMIZATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Filter& GetFilter() const { return m_filter; }
44 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
45 template<typename FilterT = Filter>
46 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
47 template<typename FilterT = Filter>
48 ListRecommendationsRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
50
52
55 inline const OrderBy& GetOrderBy() const { return m_orderBy; }
56 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
57 template<typename OrderByT = OrderBy>
58 void SetOrderBy(OrderByT&& value) { m_orderByHasBeenSet = true; m_orderBy = std::forward<OrderByT>(value); }
59 template<typename OrderByT = OrderBy>
60 ListRecommendationsRequest& WithOrderBy(OrderByT&& value) { SetOrderBy(std::forward<OrderByT>(value)); return *this;}
62
64
68 inline bool GetIncludeAllRecommendations() const { return m_includeAllRecommendations; }
69 inline bool IncludeAllRecommendationsHasBeenSet() const { return m_includeAllRecommendationsHasBeenSet; }
70 inline void SetIncludeAllRecommendations(bool value) { m_includeAllRecommendationsHasBeenSet = true; m_includeAllRecommendations = value; }
73
75
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 inline ListRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
83
85
88 inline const Aws::String& GetNextToken() const { return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 template<typename NextTokenT = Aws::String>
91 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
92 template<typename NextTokenT = Aws::String>
93 ListRecommendationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
95 private:
96
97 Filter m_filter;
98 bool m_filterHasBeenSet = false;
99
100 OrderBy m_orderBy;
101 bool m_orderByHasBeenSet = false;
102
103 bool m_includeAllRecommendations{false};
104 bool m_includeAllRecommendationsHasBeenSet = false;
105
106 int m_maxResults{0};
107 bool m_maxResultsHasBeenSet = false;
108
109 Aws::String m_nextToken;
110 bool m_nextTokenHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CostOptimizationHub
115} // 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