AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyDBRecommendationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/RecommendedActionUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
22 public:
23 AWS_RDS_API ModifyDBRecommendationRequest() = 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 "ModifyDBRecommendation"; }
30
31 AWS_RDS_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
42 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
43 template <typename RecommendationIdT = Aws::String>
44 void SetRecommendationId(RecommendationIdT&& value) {
45 m_recommendationIdHasBeenSet = true;
46 m_recommendationId = std::forward<RecommendationIdT>(value);
47 }
48 template <typename RecommendationIdT = Aws::String>
50 SetRecommendationId(std::forward<RecommendationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLocale() const { return m_locale; }
60 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
61 template <typename LocaleT = Aws::String>
62 void SetLocale(LocaleT&& value) {
63 m_localeHasBeenSet = true;
64 m_locale = std::forward<LocaleT>(value);
65 }
66 template <typename LocaleT = Aws::String>
68 SetLocale(std::forward<LocaleT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 template <typename StatusT = Aws::String>
81 void SetStatus(StatusT&& value) {
82 m_statusHasBeenSet = true;
83 m_status = std::forward<StatusT>(value);
84 }
85 template <typename StatusT = Aws::String>
87 SetStatus(std::forward<StatusT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Vector<RecommendedActionUpdate>& GetRecommendedActionUpdates() const { return m_recommendedActionUpdates; }
98 inline bool RecommendedActionUpdatesHasBeenSet() const { return m_recommendedActionUpdatesHasBeenSet; }
99 template <typename RecommendedActionUpdatesT = Aws::Vector<RecommendedActionUpdate>>
100 void SetRecommendedActionUpdates(RecommendedActionUpdatesT&& value) {
101 m_recommendedActionUpdatesHasBeenSet = true;
102 m_recommendedActionUpdates = std::forward<RecommendedActionUpdatesT>(value);
103 }
104 template <typename RecommendedActionUpdatesT = Aws::Vector<RecommendedActionUpdate>>
106 SetRecommendedActionUpdates(std::forward<RecommendedActionUpdatesT>(value));
107 return *this;
108 }
109 template <typename RecommendedActionUpdatesT = RecommendedActionUpdate>
110 ModifyDBRecommendationRequest& AddRecommendedActionUpdates(RecommendedActionUpdatesT&& value) {
111 m_recommendedActionUpdatesHasBeenSet = true;
112 m_recommendedActionUpdates.emplace_back(std::forward<RecommendedActionUpdatesT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_recommendationId;
118
119 Aws::String m_locale;
120
121 Aws::String m_status;
122
123 Aws::Vector<RecommendedActionUpdate> m_recommendedActionUpdates;
124 bool m_recommendationIdHasBeenSet = false;
125 bool m_localeHasBeenSet = false;
126 bool m_statusHasBeenSet = false;
127 bool m_recommendedActionUpdatesHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace RDS
132} // namespace Aws
ModifyDBRecommendationRequest & WithLocale(LocaleT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< RecommendedActionUpdate > & GetRecommendedActionUpdates() const
ModifyDBRecommendationRequest & AddRecommendedActionUpdates(RecommendedActionUpdatesT &&value)
ModifyDBRecommendationRequest & WithRecommendedActionUpdates(RecommendedActionUpdatesT &&value)
virtual const char * GetServiceRequestName() const override
ModifyDBRecommendationRequest & WithStatus(StatusT &&value)
void SetRecommendedActionUpdates(RecommendedActionUpdatesT &&value)
ModifyDBRecommendationRequest & WithRecommendationId(RecommendationIdT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector