AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetRightsizingRecommendationRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.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#include <utility>
13
14namespace Aws
15{
16namespace CostExplorer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COSTEXPLORER_API GetRightsizingRecommendationRequest() = default;
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_COSTEXPLORER_API Aws::String SerializePayload() const override;
35
36 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
41 inline const Expression& GetFilter() const { return m_filter; }
42 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
43 template<typename FilterT = Expression>
44 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
45 template<typename FilterT = Expression>
46 GetRightsizingRecommendationRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
48
50
57 inline const RightsizingRecommendationConfiguration& GetConfiguration() const { return m_configuration; }
58 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
59 template<typename ConfigurationT = RightsizingRecommendationConfiguration>
60 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
61 template<typename ConfigurationT = RightsizingRecommendationConfiguration>
62 GetRightsizingRecommendationRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
64
66
70 inline const Aws::String& GetService() const { return m_service; }
71 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
72 template<typename ServiceT = Aws::String>
73 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
74 template<typename ServiceT = Aws::String>
75 GetRightsizingRecommendationRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
77
79
83 inline int GetPageSize() const { return m_pageSize; }
84 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
85 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
86 inline GetRightsizingRecommendationRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
88
90
94 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
95 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
96 template<typename NextPageTokenT = Aws::String>
97 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
98 template<typename NextPageTokenT = Aws::String>
99 GetRightsizingRecommendationRequest& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
101 private:
102
103 Expression m_filter;
104 bool m_filterHasBeenSet = false;
105
107 bool m_configurationHasBeenSet = false;
108
109 Aws::String m_service;
110 bool m_serviceHasBeenSet = false;
111
112 int m_pageSize{0};
113 bool m_pageSizeHasBeenSet = false;
114
115 Aws::String m_nextPageToken;
116 bool m_nextPageTokenHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace CostExplorer
121} // 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