AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetLambdaFunctionRecommendationsRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/compute-optimizer/model/LambdaFunctionRecommendationFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ComputeOptimizer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsRequest();
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 "GetLambdaFunctionRecommendations"; }
33
34 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
35
36 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
51 inline const Aws::Vector<Aws::String>& GetFunctionArns() const{ return m_functionArns; }
52 inline bool FunctionArnsHasBeenSet() const { return m_functionArnsHasBeenSet; }
53 inline void SetFunctionArns(const Aws::Vector<Aws::String>& value) { m_functionArnsHasBeenSet = true; m_functionArns = value; }
54 inline void SetFunctionArns(Aws::Vector<Aws::String>&& value) { m_functionArnsHasBeenSet = true; m_functionArns = std::move(value); }
57 inline GetLambdaFunctionRecommendationsRequest& AddFunctionArns(const Aws::String& value) { m_functionArnsHasBeenSet = true; m_functionArns.push_back(value); return *this; }
58 inline GetLambdaFunctionRecommendationsRequest& AddFunctionArns(Aws::String&& value) { m_functionArnsHasBeenSet = true; m_functionArns.push_back(std::move(value)); return *this; }
59 inline GetLambdaFunctionRecommendationsRequest& AddFunctionArns(const char* value) { m_functionArnsHasBeenSet = true; m_functionArns.push_back(value); return *this; }
61
63
70 inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
71 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
72 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
73 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
76 inline GetLambdaFunctionRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
77 inline GetLambdaFunctionRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
78 inline GetLambdaFunctionRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
80
82
86 inline const Aws::Vector<LambdaFunctionRecommendationFilter>& GetFilters() const{ return m_filters; }
87 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
88 inline void SetFilters(const Aws::Vector<LambdaFunctionRecommendationFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
89 inline void SetFilters(Aws::Vector<LambdaFunctionRecommendationFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
92 inline GetLambdaFunctionRecommendationsRequest& AddFilters(const LambdaFunctionRecommendationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
93 inline GetLambdaFunctionRecommendationsRequest& AddFilters(LambdaFunctionRecommendationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
95
97
100 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
103 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
104 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
106 inline GetLambdaFunctionRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
107 inline GetLambdaFunctionRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
109
111
116 inline int GetMaxResults() const{ return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
119 inline GetLambdaFunctionRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
121 private:
122
123 Aws::Vector<Aws::String> m_functionArns;
124 bool m_functionArnsHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_accountIds;
127 bool m_accountIdsHasBeenSet = false;
128
130 bool m_filtersHasBeenSet = false;
131
132 Aws::String m_nextToken;
133 bool m_nextTokenHasBeenSet = false;
134
135 int m_maxResults;
136 bool m_maxResultsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace ComputeOptimizer
141} // namespace Aws
GetLambdaFunctionRecommendationsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
GetLambdaFunctionRecommendationsRequest & WithNextToken(Aws::String &&value)
GetLambdaFunctionRecommendationsRequest & AddAccountIds(const Aws::String &value)
void SetFilters(Aws::Vector< LambdaFunctionRecommendationFilter > &&value)
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
GetLambdaFunctionRecommendationsRequest & WithFunctionArns(Aws::Vector< Aws::String > &&value)
GetLambdaFunctionRecommendationsRequest & WithFilters(const Aws::Vector< LambdaFunctionRecommendationFilter > &value)
GetLambdaFunctionRecommendationsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
GetLambdaFunctionRecommendationsRequest & WithNextToken(const Aws::String &value)
GetLambdaFunctionRecommendationsRequest & WithFunctionArns(const Aws::Vector< Aws::String > &value)
GetLambdaFunctionRecommendationsRequest & AddFunctionArns(Aws::String &&value)
const Aws::Vector< LambdaFunctionRecommendationFilter > & GetFilters() const
GetLambdaFunctionRecommendationsRequest & AddFilters(const LambdaFunctionRecommendationFilter &value)
GetLambdaFunctionRecommendationsRequest & AddFilters(LambdaFunctionRecommendationFilter &&value)
GetLambdaFunctionRecommendationsRequest & AddAccountIds(Aws::String &&value)
void SetFilters(const Aws::Vector< LambdaFunctionRecommendationFilter > &value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLambdaFunctionRecommendationsRequest & AddFunctionArns(const char *value)
GetLambdaFunctionRecommendationsRequest & WithFilters(Aws::Vector< LambdaFunctionRecommendationFilter > &&value)
GetLambdaFunctionRecommendationsRequest & AddFunctionArns(const 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