AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
GetRecommendationPreferencesRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
8#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
9#include <aws/compute-optimizer/model/ResourceType.h>
10#include <aws/compute-optimizer/model/Scope.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ComputeOptimizer {
17namespace Model {
18
22 public:
23 AWS_COMPUTEOPTIMIZER_API GetRecommendationPreferencesRequest() = 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 "GetRecommendationPreferences"; }
30
31 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
32
33 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
43 inline ResourceType GetResourceType() const { return m_resourceType; }
44 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
45 inline void SetResourceType(ResourceType value) {
46 m_resourceTypeHasBeenSet = true;
47 m_resourceType = value;
48 }
50 SetResourceType(value);
51 return *this;
52 }
54
56
65 inline const Scope& GetScope() const { return m_scope; }
66 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
67 template <typename ScopeT = Scope>
68 void SetScope(ScopeT&& value) {
69 m_scopeHasBeenSet = true;
70 m_scope = std::forward<ScopeT>(value);
71 }
72 template <typename ScopeT = Scope>
74 SetScope(std::forward<ScopeT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
103 inline int GetMaxResults() const { return m_maxResults; }
104 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 inline void SetMaxResults(int value) {
106 m_maxResultsHasBeenSet = true;
107 m_maxResults = value;
108 }
110 SetMaxResults(value);
111 return *this;
112 }
114 private:
115 ResourceType m_resourceType{ResourceType::NOT_SET};
116
117 Scope m_scope;
118
119 Aws::String m_nextToken;
120
121 int m_maxResults{0};
122 bool m_resourceTypeHasBeenSet = false;
123 bool m_scopeHasBeenSet = false;
124 bool m_nextTokenHasBeenSet = false;
125 bool m_maxResultsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace ComputeOptimizer
130} // namespace Aws
GetRecommendationPreferencesRequest & WithResourceType(ResourceType value)
AWS_COMPUTEOPTIMIZER_API GetRecommendationPreferencesRequest()=default
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetRecommendationPreferencesRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String