AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DeleteRecommendationPreferencesRequest.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/RecommendationPreferenceName.h>
10#include <aws/compute-optimizer/model/ResourceType.h>
11#include <aws/compute-optimizer/model/Scope.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ComputeOptimizer {
18namespace Model {
19
23 public:
24 AWS_COMPUTEOPTIMIZER_API DeleteRecommendationPreferencesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteRecommendationPreferences"; }
31
32 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
33
34 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
44 inline ResourceType GetResourceType() const { return m_resourceType; }
45 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
46 inline void SetResourceType(ResourceType value) {
47 m_resourceTypeHasBeenSet = true;
48 m_resourceType = value;
49 }
51 SetResourceType(value);
52 return *this;
53 }
55
57
66 inline const Scope& GetScope() const { return m_scope; }
67 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
68 template <typename ScopeT = Scope>
69 void SetScope(ScopeT&& value) {
70 m_scopeHasBeenSet = true;
71 m_scope = std::forward<ScopeT>(value);
72 }
73 template <typename ScopeT = Scope>
75 SetScope(std::forward<ScopeT>(value));
76 return *this;
77 }
79
81
85 return m_recommendationPreferenceNames;
86 }
87 inline bool RecommendationPreferenceNamesHasBeenSet() const { return m_recommendationPreferenceNamesHasBeenSet; }
88 template <typename RecommendationPreferenceNamesT = Aws::Vector<RecommendationPreferenceName>>
89 void SetRecommendationPreferenceNames(RecommendationPreferenceNamesT&& value) {
90 m_recommendationPreferenceNamesHasBeenSet = true;
91 m_recommendationPreferenceNames = std::forward<RecommendationPreferenceNamesT>(value);
92 }
93 template <typename RecommendationPreferenceNamesT = Aws::Vector<RecommendationPreferenceName>>
95 SetRecommendationPreferenceNames(std::forward<RecommendationPreferenceNamesT>(value));
96 return *this;
97 }
99 m_recommendationPreferenceNamesHasBeenSet = true;
100 m_recommendationPreferenceNames.push_back(value);
101 return *this;
102 }
104 private:
105 ResourceType m_resourceType{ResourceType::NOT_SET};
106
107 Scope m_scope;
108
109 Aws::Vector<RecommendationPreferenceName> m_recommendationPreferenceNames;
110 bool m_resourceTypeHasBeenSet = false;
111 bool m_scopeHasBeenSet = false;
112 bool m_recommendationPreferenceNamesHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ComputeOptimizer
117} // namespace Aws
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
DeleteRecommendationPreferencesRequest & WithRecommendationPreferenceNames(RecommendationPreferenceNamesT &&value)
DeleteRecommendationPreferencesRequest & AddRecommendationPreferenceNames(RecommendationPreferenceName value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteRecommendationPreferencesRequest & WithResourceType(ResourceType value)
AWS_COMPUTEOPTIMIZER_API DeleteRecommendationPreferencesRequest()=default
const Aws::Vector< RecommendationPreferenceName > & GetRecommendationPreferenceNames() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector