AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetEC2InstanceRecommendationsRequest.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/RecommendationPreferences.h>
12#include <aws/compute-optimizer/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ComputeOptimizer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COMPUTEOPTIMIZER_API GetEC2InstanceRecommendationsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetEC2InstanceRecommendations"; }
34
35 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
36
37 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::Vector<Aws::String>& GetInstanceArns() const{ return m_instanceArns; }
46 inline bool InstanceArnsHasBeenSet() const { return m_instanceArnsHasBeenSet; }
47 inline void SetInstanceArns(const Aws::Vector<Aws::String>& value) { m_instanceArnsHasBeenSet = true; m_instanceArns = value; }
48 inline void SetInstanceArns(Aws::Vector<Aws::String>&& value) { m_instanceArnsHasBeenSet = true; m_instanceArns = std::move(value); }
51 inline GetEC2InstanceRecommendationsRequest& AddInstanceArns(const Aws::String& value) { m_instanceArnsHasBeenSet = true; m_instanceArns.push_back(value); return *this; }
52 inline GetEC2InstanceRecommendationsRequest& AddInstanceArns(Aws::String&& value) { m_instanceArnsHasBeenSet = true; m_instanceArns.push_back(std::move(value)); return *this; }
53 inline GetEC2InstanceRecommendationsRequest& AddInstanceArns(const char* value) { m_instanceArnsHasBeenSet = true; m_instanceArns.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 GetEC2InstanceRecommendationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 inline GetEC2InstanceRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
67 inline GetEC2InstanceRecommendationsRequest& 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 GetEC2InstanceRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
87 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
88 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
89 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
90 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
92 inline GetEC2InstanceRecommendationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
93 inline GetEC2InstanceRecommendationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
94 inline GetEC2InstanceRecommendationsRequest& AddFilters(Filter&& 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 GetEC2InstanceRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
112 inline GetEC2InstanceRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
113 inline GetEC2InstanceRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
115
117
121 inline const RecommendationPreferences& GetRecommendationPreferences() const{ return m_recommendationPreferences; }
122 inline bool RecommendationPreferencesHasBeenSet() const { return m_recommendationPreferencesHasBeenSet; }
123 inline void SetRecommendationPreferences(const RecommendationPreferences& value) { m_recommendationPreferencesHasBeenSet = true; m_recommendationPreferences = value; }
124 inline void SetRecommendationPreferences(RecommendationPreferences&& value) { m_recommendationPreferencesHasBeenSet = true; m_recommendationPreferences = std::move(value); }
128 private:
129
130 Aws::Vector<Aws::String> m_instanceArns;
131 bool m_instanceArnsHasBeenSet = false;
132
133 Aws::String m_nextToken;
134 bool m_nextTokenHasBeenSet = false;
135
136 int m_maxResults;
137 bool m_maxResultsHasBeenSet = false;
138
139 Aws::Vector<Filter> m_filters;
140 bool m_filtersHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_accountIds;
143 bool m_accountIdsHasBeenSet = false;
144
145 RecommendationPreferences m_recommendationPreferences;
146 bool m_recommendationPreferencesHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace ComputeOptimizer
151} // namespace Aws
GetEC2InstanceRecommendationsRequest & AddAccountIds(Aws::String &&value)
GetEC2InstanceRecommendationsRequest & WithNextToken(const Aws::String &value)
GetEC2InstanceRecommendationsRequest & AddAccountIds(const char *value)
GetEC2InstanceRecommendationsRequest & AddInstanceArns(const char *value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetEC2InstanceRecommendationsRequest & WithRecommendationPreferences(const RecommendationPreferences &value)
GetEC2InstanceRecommendationsRequest & AddInstanceArns(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
GetEC2InstanceRecommendationsRequest & WithFilters(Aws::Vector< Filter > &&value)
GetEC2InstanceRecommendationsRequest & AddInstanceArns(const Aws::String &value)
GetEC2InstanceRecommendationsRequest & WithInstanceArns(Aws::Vector< Aws::String > &&value)
GetEC2InstanceRecommendationsRequest & AddFilters(const Filter &value)
GetEC2InstanceRecommendationsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
GetEC2InstanceRecommendationsRequest & WithInstanceArns(const Aws::Vector< Aws::String > &value)
GetEC2InstanceRecommendationsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
GetEC2InstanceRecommendationsRequest & WithNextToken(const char *value)
GetEC2InstanceRecommendationsRequest & AddAccountIds(const Aws::String &value)
GetEC2InstanceRecommendationsRequest & WithFilters(const Aws::Vector< Filter > &value)
GetEC2InstanceRecommendationsRequest & WithNextToken(Aws::String &&value)
GetEC2InstanceRecommendationsRequest & WithRecommendationPreferences(RecommendationPreferences &&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