AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetRightsizingRecommendationRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/Expression.h>
10#include <aws/ce/model/RightsizingRecommendationConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CostExplorer {
17namespace Model {
18
22 public:
23 AWS_COSTEXPLORER_API GetRightsizingRecommendationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetRightsizingRecommendation"; }
30
31 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
32
33 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
37 inline const Expression& GetFilter() const { return m_filter; }
38 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
39 template <typename FilterT = Expression>
40 void SetFilter(FilterT&& value) {
41 m_filterHasBeenSet = true;
42 m_filter = std::forward<FilterT>(value);
43 }
44 template <typename FilterT = Expression>
46 SetFilter(std::forward<FilterT>(value));
47 return *this;
48 }
50
52
59 inline const RightsizingRecommendationConfiguration& GetConfiguration() const { return m_configuration; }
60 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
61 template <typename ConfigurationT = RightsizingRecommendationConfiguration>
62 void SetConfiguration(ConfigurationT&& value) {
63 m_configurationHasBeenSet = true;
64 m_configuration = std::forward<ConfigurationT>(value);
65 }
66 template <typename ConfigurationT = RightsizingRecommendationConfiguration>
68 SetConfiguration(std::forward<ConfigurationT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetService() const { return m_service; }
79 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
80 template <typename ServiceT = Aws::String>
81 void SetService(ServiceT&& value) {
82 m_serviceHasBeenSet = true;
83 m_service = std::forward<ServiceT>(value);
84 }
85 template <typename ServiceT = Aws::String>
87 SetService(std::forward<ServiceT>(value));
88 return *this;
89 }
91
93
97 inline int GetPageSize() const { return m_pageSize; }
98 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
99 inline void SetPageSize(int value) {
100 m_pageSizeHasBeenSet = true;
101 m_pageSize = value;
102 }
104 SetPageSize(value);
105 return *this;
106 }
108
110
114 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
115 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
116 template <typename NextPageTokenT = Aws::String>
117 void SetNextPageToken(NextPageTokenT&& value) {
118 m_nextPageTokenHasBeenSet = true;
119 m_nextPageToken = std::forward<NextPageTokenT>(value);
120 }
121 template <typename NextPageTokenT = Aws::String>
123 SetNextPageToken(std::forward<NextPageTokenT>(value));
124 return *this;
125 }
127 private:
128 Expression m_filter;
129
131
132 Aws::String m_service;
133
134 int m_pageSize{0};
135
136 Aws::String m_nextPageToken;
137 bool m_filterHasBeenSet = false;
138 bool m_configurationHasBeenSet = false;
139 bool m_serviceHasBeenSet = false;
140 bool m_pageSizeHasBeenSet = false;
141 bool m_nextPageTokenHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CostExplorer
146} // namespace Aws
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetRightsizingRecommendationRequest & WithNextPageToken(NextPageTokenT &&value)
GetRightsizingRecommendationRequest & WithConfiguration(ConfigurationT &&value)
GetRightsizingRecommendationRequest & WithFilter(FilterT &&value)
const RightsizingRecommendationConfiguration & GetConfiguration() const
AWS_COSTEXPLORER_API GetRightsizingRecommendationRequest()=default
GetRightsizingRecommendationRequest & WithService(ServiceT &&value)
AWS_COSTEXPLORER_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