AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetLicenseRecommendationsRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
8#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
9#include <aws/compute-optimizer/model/LicenseRecommendationFilter.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 {
16namespace ComputeOptimizer {
17namespace Model {
18
22 public:
23 AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetLicenseRecommendations"; }
30
31 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
32
33 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
42 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
43 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
44 void SetResourceArns(ResourceArnsT&& value) {
45 m_resourceArnsHasBeenSet = true;
46 m_resourceArns = std::forward<ResourceArnsT>(value);
47 }
48 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
50 SetResourceArns(std::forward<ResourceArnsT>(value));
51 return *this;
52 }
53 template <typename ResourceArnsT = Aws::String>
55 m_resourceArnsHasBeenSet = true;
56 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
85 inline int GetMaxResults() const { return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) {
88 m_maxResultsHasBeenSet = true;
89 m_maxResults = value;
90 }
92 SetMaxResults(value);
93 return *this;
94 }
96
98
102 inline const Aws::Vector<LicenseRecommendationFilter>& GetFilters() const { return m_filters; }
103 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
104 template <typename FiltersT = Aws::Vector<LicenseRecommendationFilter>>
105 void SetFilters(FiltersT&& value) {
106 m_filtersHasBeenSet = true;
107 m_filters = std::forward<FiltersT>(value);
108 }
109 template <typename FiltersT = Aws::Vector<LicenseRecommendationFilter>>
111 SetFilters(std::forward<FiltersT>(value));
112 return *this;
113 }
114 template <typename FiltersT = LicenseRecommendationFilter>
116 m_filtersHasBeenSet = true;
117 m_filters.emplace_back(std::forward<FiltersT>(value));
118 return *this;
119 }
121
123
130 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
131 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
132 template <typename AccountIdsT = Aws::Vector<Aws::String>>
133 void SetAccountIds(AccountIdsT&& value) {
134 m_accountIdsHasBeenSet = true;
135 m_accountIds = std::forward<AccountIdsT>(value);
136 }
137 template <typename AccountIdsT = Aws::Vector<Aws::String>>
139 SetAccountIds(std::forward<AccountIdsT>(value));
140 return *this;
141 }
142 template <typename AccountIdsT = Aws::String>
144 m_accountIdsHasBeenSet = true;
145 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
146 return *this;
147 }
149 private:
150 Aws::Vector<Aws::String> m_resourceArns;
151
152 Aws::String m_nextToken;
153
154 int m_maxResults{0};
155
157
158 Aws::Vector<Aws::String> m_accountIds;
159 bool m_resourceArnsHasBeenSet = false;
160 bool m_nextTokenHasBeenSet = false;
161 bool m_maxResultsHasBeenSet = false;
162 bool m_filtersHasBeenSet = false;
163 bool m_accountIdsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace ComputeOptimizer
168} // namespace Aws
GetLicenseRecommendationsRequest & WithNextToken(NextTokenT &&value)
GetLicenseRecommendationsRequest & WithAccountIds(AccountIdsT &&value)
const Aws::Vector< LicenseRecommendationFilter > & GetFilters() const
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsRequest()=default
GetLicenseRecommendationsRequest & AddAccountIds(AccountIdsT &&value)
GetLicenseRecommendationsRequest & WithResourceArns(ResourceArnsT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
GetLicenseRecommendationsRequest & AddResourceArns(ResourceArnsT &&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