AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RecommendedAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/ContextAttribute.h>
12#include <aws/rds/model/IssueDetails.h>
13#include <aws/rds/model/RecommendedActionParameter.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS {
24namespace Model {
25
34 public:
35 AWS_RDS_API RecommendedAction() = default;
36 AWS_RDS_API RecommendedAction(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetActionId() const { return m_actionId; }
47 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
48 template <typename ActionIdT = Aws::String>
49 void SetActionId(ActionIdT&& value) {
50 m_actionIdHasBeenSet = true;
51 m_actionId = std::forward<ActionIdT>(value);
52 }
53 template <typename ActionIdT = Aws::String>
54 RecommendedAction& WithActionId(ActionIdT&& value) {
55 SetActionId(std::forward<ActionIdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetTitle() const { return m_title; }
66 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
67 template <typename TitleT = Aws::String>
68 void SetTitle(TitleT&& value) {
69 m_titleHasBeenSet = true;
70 m_title = std::forward<TitleT>(value);
71 }
72 template <typename TitleT = Aws::String>
73 RecommendedAction& WithTitle(TitleT&& value) {
74 SetTitle(std::forward<TitleT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 RecommendedAction& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetOperation() const { return m_operation; }
103 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
104 template <typename OperationT = Aws::String>
105 void SetOperation(OperationT&& value) {
106 m_operationHasBeenSet = true;
107 m_operation = std::forward<OperationT>(value);
108 }
109 template <typename OperationT = Aws::String>
110 RecommendedAction& WithOperation(OperationT&& value) {
111 SetOperation(std::forward<OperationT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<RecommendedActionParameter>& GetParameters() const { return m_parameters; }
121 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
122 template <typename ParametersT = Aws::Vector<RecommendedActionParameter>>
123 void SetParameters(ParametersT&& value) {
124 m_parametersHasBeenSet = true;
125 m_parameters = std::forward<ParametersT>(value);
126 }
127 template <typename ParametersT = Aws::Vector<RecommendedActionParameter>>
128 RecommendedAction& WithParameters(ParametersT&& value) {
129 SetParameters(std::forward<ParametersT>(value));
130 return *this;
131 }
132 template <typename ParametersT = RecommendedActionParameter>
133 RecommendedAction& AddParameters(ParametersT&& value) {
134 m_parametersHasBeenSet = true;
135 m_parameters.emplace_back(std::forward<ParametersT>(value));
136 return *this;
137 }
139
141
149 inline const Aws::Vector<Aws::String>& GetApplyModes() const { return m_applyModes; }
150 inline bool ApplyModesHasBeenSet() const { return m_applyModesHasBeenSet; }
151 template <typename ApplyModesT = Aws::Vector<Aws::String>>
152 void SetApplyModes(ApplyModesT&& value) {
153 m_applyModesHasBeenSet = true;
154 m_applyModes = std::forward<ApplyModesT>(value);
155 }
156 template <typename ApplyModesT = Aws::Vector<Aws::String>>
157 RecommendedAction& WithApplyModes(ApplyModesT&& value) {
158 SetApplyModes(std::forward<ApplyModesT>(value));
159 return *this;
160 }
161 template <typename ApplyModesT = Aws::String>
162 RecommendedAction& AddApplyModes(ApplyModesT&& value) {
163 m_applyModesHasBeenSet = true;
164 m_applyModes.emplace_back(std::forward<ApplyModesT>(value));
165 return *this;
166 }
168
170
175 inline const Aws::String& GetStatus() const { return m_status; }
176 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
177 template <typename StatusT = Aws::String>
178 void SetStatus(StatusT&& value) {
179 m_statusHasBeenSet = true;
180 m_status = std::forward<StatusT>(value);
181 }
182 template <typename StatusT = Aws::String>
183 RecommendedAction& WithStatus(StatusT&& value) {
184 SetStatus(std::forward<StatusT>(value));
185 return *this;
186 }
188
190
193 inline const IssueDetails& GetIssueDetails() const { return m_issueDetails; }
194 inline bool IssueDetailsHasBeenSet() const { return m_issueDetailsHasBeenSet; }
195 template <typename IssueDetailsT = IssueDetails>
196 void SetIssueDetails(IssueDetailsT&& value) {
197 m_issueDetailsHasBeenSet = true;
198 m_issueDetails = std::forward<IssueDetailsT>(value);
199 }
200 template <typename IssueDetailsT = IssueDetails>
201 RecommendedAction& WithIssueDetails(IssueDetailsT&& value) {
202 SetIssueDetails(std::forward<IssueDetailsT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Vector<ContextAttribute>& GetContextAttributes() const { return m_contextAttributes; }
212 inline bool ContextAttributesHasBeenSet() const { return m_contextAttributesHasBeenSet; }
213 template <typename ContextAttributesT = Aws::Vector<ContextAttribute>>
214 void SetContextAttributes(ContextAttributesT&& value) {
215 m_contextAttributesHasBeenSet = true;
216 m_contextAttributes = std::forward<ContextAttributesT>(value);
217 }
218 template <typename ContextAttributesT = Aws::Vector<ContextAttribute>>
219 RecommendedAction& WithContextAttributes(ContextAttributesT&& value) {
220 SetContextAttributes(std::forward<ContextAttributesT>(value));
221 return *this;
222 }
223 template <typename ContextAttributesT = ContextAttribute>
224 RecommendedAction& AddContextAttributes(ContextAttributesT&& value) {
225 m_contextAttributesHasBeenSet = true;
226 m_contextAttributes.emplace_back(std::forward<ContextAttributesT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_actionId;
232
233 Aws::String m_title;
234
235 Aws::String m_description;
236
237 Aws::String m_operation;
238
240
241 Aws::Vector<Aws::String> m_applyModes;
242
243 Aws::String m_status;
244
245 IssueDetails m_issueDetails;
246
247 Aws::Vector<ContextAttribute> m_contextAttributes;
248 bool m_actionIdHasBeenSet = false;
249 bool m_titleHasBeenSet = false;
250 bool m_descriptionHasBeenSet = false;
251 bool m_operationHasBeenSet = false;
252 bool m_parametersHasBeenSet = false;
253 bool m_applyModesHasBeenSet = false;
254 bool m_statusHasBeenSet = false;
255 bool m_issueDetailsHasBeenSet = false;
256 bool m_contextAttributesHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace RDS
261} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream