AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
51 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
54 inline GetAutoScalingGroupRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
55 inline GetAutoScalingGroupRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
56 inline GetAutoScalingGroupRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
58
60
64 inline const Aws::Vector<Aws::String>& GetAutoScalingGroupArns() const{ return m_autoScalingGroupArns; }
65 inline bool AutoScalingGroupArnsHasBeenSet() const { return m_autoScalingGroupArnsHasBeenSet; }
66 inline void SetAutoScalingGroupArns(const Aws::Vector<Aws::String>& value) { m_autoScalingGroupArnsHasBeenSet = true; m_autoScalingGroupArns = value; }
67 inline void SetAutoScalingGroupArns(Aws::Vector<Aws::String>&& value) { m_autoScalingGroupArnsHasBeenSet = true; m_autoScalingGroupArns = std::move(value); }
70 inline GetAutoScalingGroupRecommendationsRequest& AddAutoScalingGroupArns(const Aws::String& value) { m_autoScalingGroupArnsHasBeenSet = true; m_autoScalingGroupArns.push_back(value); return *this; }
71 inline GetAutoScalingGroupRecommendationsRequest& AddAutoScalingGroupArns(Aws::String&& value) { m_autoScalingGroupArnsHasBeenSet = true; m_autoScalingGroupArns.push_back(std::move(value)); return *this; }
72 inline GetAutoScalingGroupRecommendationsRequest& AddAutoScalingGroupArns(const char* value) { m_autoScalingGroupArnsHasBeenSet = true; m_autoScalingGroupArns.push_back(value); return *this; }
74
76
80 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
83 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
84 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 inline GetAutoScalingGroupRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
87 inline GetAutoScalingGroupRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
89
91
96 inline int GetMaxResults() const{ return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101
103
107 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
108 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
109 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
110 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
112 inline GetAutoScalingGroupRecommendationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
113 inline GetAutoScalingGroupRecommendationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
114 inline GetAutoScalingGroupRecommendationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
116
118
122 inline const RecommendationPreferences& GetRecommendationPreferences() const{ return m_recommendationPreferences; }
123 inline bool RecommendationPreferencesHasBeenSet() const { return m_recommendationPreferencesHasBeenSet; }
124 inline void SetRecommendationPreferences(const RecommendationPreferences& value) { m_recommendationPreferencesHasBeenSet = true; m_recommendationPreferences = value; }
125 inline void SetRecommendationPreferences(RecommendationPreferences&& value) { m_recommendationPreferencesHasBeenSet = true; m_recommendationPreferences = std::move(value); }
129 private:
130
131 Aws::Vector<Aws::String> m_accountIds;
132 bool m_accountIdsHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_autoScalingGroupArns;
135 bool m_autoScalingGroupArnsHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
140 int m_maxResults;
141 bool m_maxResultsHasBeenSet = false;
142
143 Aws::Vector<Filter> m_filters;
144 bool m_filtersHasBeenSet = false;
145
146 RecommendationPreferences m_recommendationPreferences;
147 bool m_recommendationPreferencesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace ComputeOptimizer
152} // namespace Aws
GetAutoScalingGroupRecommendationsRequest & WithAutoScalingGroupArns(Aws::Vector< Aws::String > &&value)
GetAutoScalingGroupRecommendationsRequest & AddAutoScalingGroupArns(const Aws::String &value)
GetAutoScalingGroupRecommendationsRequest & WithNextToken(const Aws::String &value)
GetAutoScalingGroupRecommendationsRequest & WithRecommendationPreferences(RecommendationPreferences &&value)
GetAutoScalingGroupRecommendationsRequest & WithFilters(const Aws::Vector< Filter > &value)
GetAutoScalingGroupRecommendationsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
GetAutoScalingGroupRecommendationsRequest & WithFilters(Aws::Vector< Filter > &&value)
GetAutoScalingGroupRecommendationsRequest & WithRecommendationPreferences(const RecommendationPreferences &value)
GetAutoScalingGroupRecommendationsRequest & AddAccountIds(const Aws::String &value)
GetAutoScalingGroupRecommendationsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
GetAutoScalingGroupRecommendationsRequest & AddAutoScalingGroupArns(const char *value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAutoScalingGroupRecommendationsRequest & WithNextToken(Aws::String &&value)
GetAutoScalingGroupRecommendationsRequest & WithAutoScalingGroupArns(const Aws::Vector< Aws::String > &value)
GetAutoScalingGroupRecommendationsRequest & AddAutoScalingGroupArns(Aws::String &&value)
GetAutoScalingGroupRecommendationsRequest & AddAccountIds(Aws::String &&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