AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
44 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
45 inline GetRightsizingRecommendationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
46 inline GetRightsizingRecommendationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
48
50
57 inline const RightsizingRecommendationConfiguration& GetConfiguration() const{ return m_configuration; }
58 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
59 inline void SetConfiguration(const RightsizingRecommendationConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
60 inline void SetConfiguration(RightsizingRecommendationConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
64
66
70 inline const Aws::String& GetService() const{ return m_service; }
71 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
72 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
73 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
74 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
75 inline GetRightsizingRecommendationRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
76 inline GetRightsizingRecommendationRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
77 inline GetRightsizingRecommendationRequest& WithService(const char* value) { SetService(value); return *this;}
79
81
85 inline int GetPageSize() const{ return m_pageSize; }
86 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
87 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
88 inline GetRightsizingRecommendationRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
90
92
96 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
97 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
98 inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
99 inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
100 inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
102 inline GetRightsizingRecommendationRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
103 inline GetRightsizingRecommendationRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
105 private:
106
107 Expression m_filter;
108 bool m_filterHasBeenSet = false;
109
111 bool m_configurationHasBeenSet = false;
112
113 Aws::String m_service;
114 bool m_serviceHasBeenSet = false;
115
116 int m_pageSize;
117 bool m_pageSizeHasBeenSet = false;
118
119 Aws::String m_nextPageToken;
120 bool m_nextPageTokenHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CostExplorer
125} // namespace Aws
GetRightsizingRecommendationRequest & WithFilter(const Expression &value)
GetRightsizingRecommendationRequest & WithService(Aws::String &&value)
void SetConfiguration(const RightsizingRecommendationConfiguration &value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetRightsizingRecommendationRequest & WithNextPageToken(const Aws::String &value)
GetRightsizingRecommendationRequest & WithConfiguration(RightsizingRecommendationConfiguration &&value)
const RightsizingRecommendationConfiguration & GetConfiguration() const
GetRightsizingRecommendationRequest & WithNextPageToken(const char *value)
GetRightsizingRecommendationRequest & WithNextPageToken(Aws::String &&value)
GetRightsizingRecommendationRequest & WithConfiguration(const RightsizingRecommendationConfiguration &value)
GetRightsizingRecommendationRequest & WithService(const char *value)
GetRightsizingRecommendationRequest & WithFilter(Expression &&value)
GetRightsizingRecommendationRequest & WithService(const Aws::String &value)
void SetConfiguration(RightsizingRecommendationConfiguration &&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