AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteRecommendationPreferencesRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
9#include <aws/compute-optimizer/model/ResourceType.h>
10#include <aws/compute-optimizer/model/Scope.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/compute-optimizer/model/RecommendationPreferenceName.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ComputeOptimizer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COMPUTEOPTIMIZER_API DeleteRecommendationPreferencesRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DeleteRecommendationPreferences"; }
34
35 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
36
37 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
48 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
49 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
51 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
53 inline DeleteRecommendationPreferencesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
55
57
66 inline const Scope& GetScope() const{ return m_scope; }
67 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
68 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
69 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
70 inline DeleteRecommendationPreferencesRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
71 inline DeleteRecommendationPreferencesRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
73
75
78 inline const Aws::Vector<RecommendationPreferenceName>& GetRecommendationPreferenceNames() const{ return m_recommendationPreferenceNames; }
79 inline bool RecommendationPreferenceNamesHasBeenSet() const { return m_recommendationPreferenceNamesHasBeenSet; }
80 inline void SetRecommendationPreferenceNames(const Aws::Vector<RecommendationPreferenceName>& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames = value; }
81 inline void SetRecommendationPreferenceNames(Aws::Vector<RecommendationPreferenceName>&& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames = std::move(value); }
84 inline DeleteRecommendationPreferencesRequest& AddRecommendationPreferenceNames(const RecommendationPreferenceName& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames.push_back(value); return *this; }
85 inline DeleteRecommendationPreferencesRequest& AddRecommendationPreferenceNames(RecommendationPreferenceName&& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames.push_back(std::move(value)); return *this; }
87 private:
88
89 ResourceType m_resourceType;
90 bool m_resourceTypeHasBeenSet = false;
91
92 Scope m_scope;
93 bool m_scopeHasBeenSet = false;
94
95 Aws::Vector<RecommendationPreferenceName> m_recommendationPreferenceNames;
96 bool m_recommendationPreferenceNamesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ComputeOptimizer
101} // namespace Aws
void SetRecommendationPreferenceNames(Aws::Vector< RecommendationPreferenceName > &&value)
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
DeleteRecommendationPreferencesRequest & AddRecommendationPreferenceNames(const RecommendationPreferenceName &value)
DeleteRecommendationPreferencesRequest & WithRecommendationPreferenceNames(Aws::Vector< RecommendationPreferenceName > &&value)
DeleteRecommendationPreferencesRequest & WithRecommendationPreferenceNames(const Aws::Vector< RecommendationPreferenceName > &value)
void SetRecommendationPreferenceNames(const Aws::Vector< RecommendationPreferenceName > &value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteRecommendationPreferencesRequest & WithResourceType(ResourceType &&value)
const Aws::Vector< RecommendationPreferenceName > & GetRecommendationPreferenceNames() const
DeleteRecommendationPreferencesRequest & WithResourceType(const ResourceType &value)
DeleteRecommendationPreferencesRequest & AddRecommendationPreferenceNames(RecommendationPreferenceName &&value)
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