AWS SDK for C++  1.9.1
AWS SDK for C++
GetRightsizingRecommendationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CostExplorer
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "GetRightsizingRecommendation"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
39 
40  inline const Expression& GetFilter() const{ return m_filter; }
41 
42 
43  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
44 
45 
46  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
47 
48 
49  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
50 
51 
52  inline GetRightsizingRecommendationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
53 
54 
55  inline GetRightsizingRecommendationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
56 
57 
65  inline const RightsizingRecommendationConfiguration& GetConfiguration() const{ return m_configuration; }
66 
74  inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
75 
83  inline void SetConfiguration(const RightsizingRecommendationConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
84 
92  inline void SetConfiguration(RightsizingRecommendationConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
93 
101  inline GetRightsizingRecommendationRequest& WithConfiguration(const RightsizingRecommendationConfiguration& value) { SetConfiguration(value); return *this;}
102 
110  inline GetRightsizingRecommendationRequest& WithConfiguration(RightsizingRecommendationConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
111 
112 
117  inline const Aws::String& GetService() const{ return m_service; }
118 
123  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
124 
129  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
130 
135  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
136 
141  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
142 
147  inline GetRightsizingRecommendationRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
148 
153  inline GetRightsizingRecommendationRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
154 
159  inline GetRightsizingRecommendationRequest& WithService(const char* value) { SetService(value); return *this;}
160 
161 
166  inline int GetPageSize() const{ return m_pageSize; }
167 
172  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
173 
178  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
179 
184  inline GetRightsizingRecommendationRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
185 
186 
191  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
192 
197  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
198 
203  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
204 
209  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
210 
215  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
216 
221  inline GetRightsizingRecommendationRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
222 
227  inline GetRightsizingRecommendationRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
228 
233  inline GetRightsizingRecommendationRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
234 
235  private:
236 
237  Expression m_filter;
238  bool m_filterHasBeenSet;
239 
241  bool m_configurationHasBeenSet;
242 
243  Aws::String m_service;
244  bool m_serviceHasBeenSet;
245 
246  int m_pageSize;
247  bool m_pageSizeHasBeenSet;
248 
249  Aws::String m_nextPageToken;
250  bool m_nextPageTokenHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace CostExplorer
255 } // namespace Aws
RightsizingRecommendationConfiguration.h
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithService
GetRightsizingRecommendationRequest & WithService(const char *value)
Definition: GetRightsizingRecommendationRequest.h:159
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithNextPageToken
GetRightsizingRecommendationRequest & WithNextPageToken(const char *value)
Definition: GetRightsizingRecommendationRequest.h:233
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithConfiguration
GetRightsizingRecommendationRequest & WithConfiguration(RightsizingRecommendationConfiguration &&value)
Definition: GetRightsizingRecommendationRequest.h:110
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithNextPageToken
GetRightsizingRecommendationRequest & WithNextPageToken(const Aws::String &value)
Definition: GetRightsizingRecommendationRequest.h:221
CostExplorerRequest.h
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetPageSize
int GetPageSize() const
Definition: GetRightsizingRecommendationRequest.h:166
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithService
GetRightsizingRecommendationRequest & WithService(const Aws::String &value)
Definition: GetRightsizingRecommendationRequest.h:147
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetPageSize
void SetPageSize(int value)
Definition: GetRightsizingRecommendationRequest.h:178
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::ServiceHasBeenSet
bool ServiceHasBeenSet() const
Definition: GetRightsizingRecommendationRequest.h:123
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetConfiguration
const RightsizingRecommendationConfiguration & GetConfiguration() const
Definition: GetRightsizingRecommendationRequest.h:65
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithConfiguration
GetRightsizingRecommendationRequest & WithConfiguration(const RightsizingRecommendationConfiguration &value)
Definition: GetRightsizingRecommendationRequest.h:101
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetRightsizingRecommendationRequest.h:43
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetFilter
const Expression & GetFilter() const
Definition: GetRightsizingRecommendationRequest.h:40
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetService
void SetService(const char *value)
Definition: GetRightsizingRecommendationRequest.h:141
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetService
void SetService(Aws::String &&value)
Definition: GetRightsizingRecommendationRequest.h:135
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetService
const Aws::String & GetService() const
Definition: GetRightsizingRecommendationRequest.h:117
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetRightsizingRecommendationRequest.h:203
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetRightsizingRecommendationRequest.h:215
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithNextPageToken
GetRightsizingRecommendationRequest & WithNextPageToken(Aws::String &&value)
Definition: GetRightsizingRecommendationRequest.h:227
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetRightsizingRecommendationRequest.h:209
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetRightsizingRecommendationRequest.h:49
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithService
GetRightsizingRecommendationRequest & WithService(Aws::String &&value)
Definition: GetRightsizingRecommendationRequest.h:153
AWSString.h
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetService
void SetService(const Aws::String &value)
Definition: GetRightsizingRecommendationRequest.h:129
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::RightsizingRecommendationConfiguration
Definition: RightsizingRecommendationConfiguration.h:36
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetRightsizingRecommendationRequest.h:46
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest
Definition: GetRightsizingRecommendationRequest.h:24
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetRightsizingRecommendationRequest
GetRightsizingRecommendationRequest()
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRightsizingRecommendationRequest.h:32
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetConfiguration
void SetConfiguration(RightsizingRecommendationConfiguration &&value)
Definition: GetRightsizingRecommendationRequest.h:92
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithPageSize
GetRightsizingRecommendationRequest & WithPageSize(int value)
Definition: GetRightsizingRecommendationRequest.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::ConfigurationHasBeenSet
bool ConfigurationHasBeenSet() const
Definition: GetRightsizingRecommendationRequest.h:74
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: GetRightsizingRecommendationRequest.h:172
Expression.h
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetRightsizingRecommendationRequest.h:191
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithFilter
GetRightsizingRecommendationRequest & WithFilter(Expression &&value)
Definition: GetRightsizingRecommendationRequest.h:55
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetRightsizingRecommendationRequest.h:197
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::WithFilter
GetRightsizingRecommendationRequest & WithFilter(const Expression &value)
Definition: GetRightsizingRecommendationRequest.h:52
Aws::CostExplorer::Model::GetRightsizingRecommendationRequest::SetConfiguration
void SetConfiguration(const RightsizingRecommendationConfiguration &value)
Definition: GetRightsizingRecommendationRequest.h:83