AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
GetLambdaFunctionRecommendationsResult.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/LambdaFunctionRecommendation.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ComputeOptimizer {
25namespace Model {
27 public:
28 AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsResult() = default;
32
34
39 inline const Aws::String& GetNextToken() const { return m_nextToken; }
40 template <typename NextTokenT = Aws::String>
41 void SetNextToken(NextTokenT&& value) {
42 m_nextTokenHasBeenSet = true;
43 m_nextToken = std::forward<NextTokenT>(value);
44 }
45 template <typename NextTokenT = Aws::String>
47 SetNextToken(std::forward<NextTokenT>(value));
48 return *this;
49 }
51
53
57 return m_lambdaFunctionRecommendations;
58 }
59 template <typename LambdaFunctionRecommendationsT = Aws::Vector<LambdaFunctionRecommendation>>
60 void SetLambdaFunctionRecommendations(LambdaFunctionRecommendationsT&& value) {
61 m_lambdaFunctionRecommendationsHasBeenSet = true;
62 m_lambdaFunctionRecommendations = std::forward<LambdaFunctionRecommendationsT>(value);
63 }
64 template <typename LambdaFunctionRecommendationsT = Aws::Vector<LambdaFunctionRecommendation>>
66 SetLambdaFunctionRecommendations(std::forward<LambdaFunctionRecommendationsT>(value));
67 return *this;
68 }
69 template <typename LambdaFunctionRecommendationsT = LambdaFunctionRecommendation>
71 m_lambdaFunctionRecommendationsHasBeenSet = true;
72 m_lambdaFunctionRecommendations.emplace_back(std::forward<LambdaFunctionRecommendationsT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
92
93 private:
94 Aws::String m_nextToken;
95
96 Aws::Vector<LambdaFunctionRecommendation> m_lambdaFunctionRecommendations;
97
98 Aws::String m_requestId;
99 Aws::Http::HttpResponseCode m_HttpResponseCode;
100 bool m_nextTokenHasBeenSet = false;
101 bool m_lambdaFunctionRecommendationsHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ComputeOptimizer
107} // namespace Aws
AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLambdaFunctionRecommendationsResult & WithLambdaFunctionRecommendations(LambdaFunctionRecommendationsT &&value)
AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsResult()=default
AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< LambdaFunctionRecommendation > & GetLambdaFunctionRecommendations() const
GetLambdaFunctionRecommendationsResult & AddLambdaFunctionRecommendations(LambdaFunctionRecommendationsT &&value)
GetLambdaFunctionRecommendationsResult & WithRequestId(RequestIdT &&value)
GetLambdaFunctionRecommendationsResult & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue