AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
48 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
51 inline GetLicenseRecommendationsRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
52 inline GetLicenseRecommendationsRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
53 inline GetLicenseRecommendationsRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
55
57
60 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
64 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
65 inline GetLicenseRecommendationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 inline GetLicenseRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
67 inline GetLicenseRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
69
71
76 inline int GetMaxResults() const{ return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline GetLicenseRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
87 inline const Aws::Vector<LicenseRecommendationFilter>& GetFilters() const{ return m_filters; }
88 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
89 inline void SetFilters(const Aws::Vector<LicenseRecommendationFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
90 inline void SetFilters(Aws::Vector<LicenseRecommendationFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
93 inline GetLicenseRecommendationsRequest& AddFilters(const LicenseRecommendationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
94 inline GetLicenseRecommendationsRequest& AddFilters(LicenseRecommendationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
96
98
105 inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
106 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
107 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
108 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
111 inline GetLicenseRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
112 inline GetLicenseRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
113 inline GetLicenseRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
115 private:
116
117 Aws::Vector<Aws::String> m_resourceArns;
118 bool m_resourceArnsHasBeenSet = false;
119
120 Aws::String m_nextToken;
121 bool m_nextTokenHasBeenSet = false;
122
123 int m_maxResults;
124 bool m_maxResultsHasBeenSet = false;
125
127 bool m_filtersHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_accountIds;
130 bool m_accountIdsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ComputeOptimizer
135} // namespace Aws
GetLicenseRecommendationsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
void SetFilters(const Aws::Vector< LicenseRecommendationFilter > &value)
GetLicenseRecommendationsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
GetLicenseRecommendationsRequest & AddAccountIds(const Aws::String &value)
const Aws::Vector< LicenseRecommendationFilter > & GetFilters() const
GetLicenseRecommendationsRequest & AddFilters(const LicenseRecommendationFilter &value)
GetLicenseRecommendationsRequest & WithFilters(Aws::Vector< LicenseRecommendationFilter > &&value)
GetLicenseRecommendationsRequest & WithFilters(const Aws::Vector< LicenseRecommendationFilter > &value)
void SetFilters(Aws::Vector< LicenseRecommendationFilter > &&value)
GetLicenseRecommendationsRequest & WithNextToken(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLicenseRecommendationsRequest & AddAccountIds(const char *value)
GetLicenseRecommendationsRequest & WithNextToken(const char *value)
GetLicenseRecommendationsRequest & AddResourceArns(const Aws::String &value)
GetLicenseRecommendationsRequest & AddResourceArns(const char *value)
GetLicenseRecommendationsRequest & AddAccountIds(Aws::String &&value)
GetLicenseRecommendationsRequest & AddFilters(LicenseRecommendationFilter &&value)
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
GetLicenseRecommendationsRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
GetLicenseRecommendationsRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
GetLicenseRecommendationsRequest & AddResourceArns(Aws::String &&value)
GetLicenseRecommendationsRequest & WithNextToken(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