AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter = value; }
46 inline void SetFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
47 inline ListRecommendationsRequest& WithFilter(const Filter& value) { SetFilter(value); return *this;}
48 inline ListRecommendationsRequest& WithFilter(Filter&& value) { SetFilter(std::move(value)); return *this;}
50
52
55 inline const OrderBy& GetOrderBy() const{ return m_orderBy; }
56 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
57 inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
58 inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
59 inline ListRecommendationsRequest& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;}
60 inline ListRecommendationsRequest& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
91 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
92 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
93 inline ListRecommendationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
94 inline ListRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 inline ListRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
97 private:
98
99 Filter m_filter;
100 bool m_filterHasBeenSet = false;
101
102 OrderBy m_orderBy;
103 bool m_orderByHasBeenSet = false;
104
105 bool m_includeAllRecommendations;
106 bool m_includeAllRecommendationsHasBeenSet = false;
107
108 int m_maxResults;
109 bool m_maxResultsHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CostOptimizationHub
117} // namespace Aws
ListRecommendationsRequest & WithOrderBy(const OrderBy &value)
ListRecommendationsRequest & WithNextToken(Aws::String &&value)
ListRecommendationsRequest & WithNextToken(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTOPTIMIZATIONHUB_API Aws::String SerializePayload() const override
ListRecommendationsRequest & WithNextToken(const char *value)
ListRecommendationsRequest & WithIncludeAllRecommendations(bool value)
ListRecommendationsRequest & WithFilter(const Filter &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String