AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetLicenseRecommendationsRequest.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/LicenseRecommendationFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ComputeOptimizer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsRequest() = default;
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 "GetLicenseRecommendations"; }
33
34 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
35
36 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
46 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
47 template<typename ResourceArnsT = Aws::Vector<Aws::String>>
48 void SetResourceArns(ResourceArnsT&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::forward<ResourceArnsT>(value); }
49 template<typename ResourceArnsT = Aws::Vector<Aws::String>>
50 GetLicenseRecommendationsRequest& WithResourceArns(ResourceArnsT&& value) { SetResourceArns(std::forward<ResourceArnsT>(value)); return *this;}
51 template<typename ResourceArnsT = Aws::String>
52 GetLicenseRecommendationsRequest& AddResourceArns(ResourceArnsT&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value)); return *this; }
54
56
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template<typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
63 template<typename NextTokenT = Aws::String>
64 GetLicenseRecommendationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
66
68
73 inline int GetMaxResults() const { return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline GetLicenseRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
84 inline const Aws::Vector<LicenseRecommendationFilter>& GetFilters() const { return m_filters; }
85 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
86 template<typename FiltersT = Aws::Vector<LicenseRecommendationFilter>>
87 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
88 template<typename FiltersT = Aws::Vector<LicenseRecommendationFilter>>
89 GetLicenseRecommendationsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
90 template<typename FiltersT = LicenseRecommendationFilter>
91 GetLicenseRecommendationsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
93
95
102 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
103 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
104 template<typename AccountIdsT = Aws::Vector<Aws::String>>
105 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
106 template<typename AccountIdsT = Aws::Vector<Aws::String>>
107 GetLicenseRecommendationsRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
108 template<typename AccountIdsT = Aws::String>
109 GetLicenseRecommendationsRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
111 private:
112
113 Aws::Vector<Aws::String> m_resourceArns;
114 bool m_resourceArnsHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118
119 int m_maxResults{0};
120 bool m_maxResultsHasBeenSet = false;
121
123 bool m_filtersHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_accountIds;
126 bool m_accountIdsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ComputeOptimizer
131} // namespace Aws
GetLicenseRecommendationsRequest & WithNextToken(NextTokenT &&value)
GetLicenseRecommendationsRequest & WithAccountIds(AccountIdsT &&value)
const Aws::Vector< LicenseRecommendationFilter > & GetFilters() const
GetLicenseRecommendationsRequest & AddFilters(FiltersT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsRequest()=default
GetLicenseRecommendationsRequest & AddAccountIds(AccountIdsT &&value)
GetLicenseRecommendationsRequest & WithFilters(FiltersT &&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