AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetAutoScalingGroupRecommendationsRequest.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 GetAutoScalingGroupRecommendationsRequest() = default;
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 "GetAutoScalingGroupRecommendations"; }
34
35 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
36
37 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
48 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
49 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
50 template<typename AccountIdsT = Aws::Vector<Aws::String>>
51 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
52 template<typename AccountIdsT = Aws::Vector<Aws::String>>
53 GetAutoScalingGroupRecommendationsRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
54 template<typename AccountIdsT = Aws::String>
55 GetAutoScalingGroupRecommendationsRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
57
59
63 inline const Aws::Vector<Aws::String>& GetAutoScalingGroupArns() const { return m_autoScalingGroupArns; }
64 inline bool AutoScalingGroupArnsHasBeenSet() const { return m_autoScalingGroupArnsHasBeenSet; }
65 template<typename AutoScalingGroupArnsT = Aws::Vector<Aws::String>>
66 void SetAutoScalingGroupArns(AutoScalingGroupArnsT&& value) { m_autoScalingGroupArnsHasBeenSet = true; m_autoScalingGroupArns = std::forward<AutoScalingGroupArnsT>(value); }
67 template<typename AutoScalingGroupArnsT = Aws::Vector<Aws::String>>
68 GetAutoScalingGroupRecommendationsRequest& WithAutoScalingGroupArns(AutoScalingGroupArnsT&& value) { SetAutoScalingGroupArns(std::forward<AutoScalingGroupArnsT>(value)); return *this;}
69 template<typename AutoScalingGroupArnsT = Aws::String>
70 GetAutoScalingGroupRecommendationsRequest& AddAutoScalingGroupArns(AutoScalingGroupArnsT&& value) { m_autoScalingGroupArnsHasBeenSet = true; m_autoScalingGroupArns.emplace_back(std::forward<AutoScalingGroupArnsT>(value)); return *this; }
72
74
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template<typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
82 template<typename NextTokenT = Aws::String>
83 GetAutoScalingGroupRecommendationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
85
87
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
97
99
103 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
104 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
105 template<typename FiltersT = Aws::Vector<Filter>>
106 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
107 template<typename FiltersT = Aws::Vector<Filter>>
108 GetAutoScalingGroupRecommendationsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
109 template<typename FiltersT = Filter>
110 GetAutoScalingGroupRecommendationsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
112
114
118 inline const RecommendationPreferences& GetRecommendationPreferences() const { return m_recommendationPreferences; }
119 inline bool RecommendationPreferencesHasBeenSet() const { return m_recommendationPreferencesHasBeenSet; }
120 template<typename RecommendationPreferencesT = RecommendationPreferences>
121 void SetRecommendationPreferences(RecommendationPreferencesT&& value) { m_recommendationPreferencesHasBeenSet = true; m_recommendationPreferences = std::forward<RecommendationPreferencesT>(value); }
122 template<typename RecommendationPreferencesT = RecommendationPreferences>
123 GetAutoScalingGroupRecommendationsRequest& WithRecommendationPreferences(RecommendationPreferencesT&& value) { SetRecommendationPreferences(std::forward<RecommendationPreferencesT>(value)); return *this;}
125 private:
126
127 Aws::Vector<Aws::String> m_accountIds;
128 bool m_accountIdsHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_autoScalingGroupArns;
131 bool m_autoScalingGroupArnsHasBeenSet = false;
132
133 Aws::String m_nextToken;
134 bool m_nextTokenHasBeenSet = false;
135
136 int m_maxResults{0};
137 bool m_maxResultsHasBeenSet = false;
138
139 Aws::Vector<Filter> m_filters;
140 bool m_filtersHasBeenSet = false;
141
142 RecommendationPreferences m_recommendationPreferences;
143 bool m_recommendationPreferencesHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ComputeOptimizer
148} // namespace Aws
GetAutoScalingGroupRecommendationsRequest & WithNextToken(NextTokenT &&value)
GetAutoScalingGroupRecommendationsRequest & AddAutoScalingGroupArns(AutoScalingGroupArnsT &&value)
GetAutoScalingGroupRecommendationsRequest & AddAccountIds(AccountIdsT &&value)
AWS_COMPUTEOPTIMIZER_API GetAutoScalingGroupRecommendationsRequest()=default
GetAutoScalingGroupRecommendationsRequest & WithAccountIds(AccountIdsT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAutoScalingGroupRecommendationsRequest & WithRecommendationPreferences(RecommendationPreferencesT &&value)
GetAutoScalingGroupRecommendationsRequest & WithAutoScalingGroupArns(AutoScalingGroupArnsT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
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