AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetRecommendationSummariesRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
8#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ComputeOptimizer {
16namespace Model {
17
21 public:
22 AWS_COMPUTEOPTIMIZER_API GetRecommendationSummariesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetRecommendationSummaries"; }
29
30 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
31
32 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
42 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
43 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
44 template <typename AccountIdsT = Aws::Vector<Aws::String>>
45 void SetAccountIds(AccountIdsT&& value) {
46 m_accountIdsHasBeenSet = true;
47 m_accountIds = std::forward<AccountIdsT>(value);
48 }
49 template <typename AccountIdsT = Aws::Vector<Aws::String>>
51 SetAccountIds(std::forward<AccountIdsT>(value));
52 return *this;
53 }
54 template <typename AccountIdsT = Aws::String>
56 m_accountIdsHasBeenSet = true;
57 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
86 inline int GetMaxResults() const { return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) {
89 m_maxResultsHasBeenSet = true;
90 m_maxResults = value;
91 }
93 SetMaxResults(value);
94 return *this;
95 }
97 private:
98 Aws::Vector<Aws::String> m_accountIds;
99
100 Aws::String m_nextToken;
101
102 int m_maxResults{0};
103 bool m_accountIdsHasBeenSet = false;
104 bool m_nextTokenHasBeenSet = false;
105 bool m_maxResultsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ComputeOptimizer
110} // namespace Aws
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPUTEOPTIMIZER_API GetRecommendationSummariesRequest()=default
GetRecommendationSummariesRequest & WithAccountIds(AccountIdsT &&value)
GetRecommendationSummariesRequest & WithNextToken(NextTokenT &&value)
GetRecommendationSummariesRequest & AddAccountIds(AccountIdsT &&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