AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendedAction.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/IssueDetails.h>
12#include <aws/rds/model/RecommendedActionParameter.h>
13#include <aws/rds/model/ContextAttribute.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace RDS
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_RDS_API RecommendedAction();
41 AWS_RDS_API RecommendedAction(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetActionId() const{ return m_actionId; }
53 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
54 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
55 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
56 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
57 inline RecommendedAction& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
58 inline RecommendedAction& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
59 inline RecommendedAction& WithActionId(const char* value) { SetActionId(value); return *this;}
61
63
67 inline const Aws::String& GetTitle() const{ return m_title; }
68 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
69 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
70 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
71 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
72 inline RecommendedAction& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
73 inline RecommendedAction& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
74 inline RecommendedAction& WithTitle(const char* value) { SetTitle(value); return *this;}
76
78
82 inline const Aws::String& GetDescription() const{ return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
85 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
86 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
87 inline RecommendedAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
88 inline RecommendedAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
89 inline RecommendedAction& WithDescription(const char* value) { SetDescription(value); return *this;}
91
93
96 inline const Aws::String& GetOperation() const{ return m_operation; }
97 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
98 inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
99 inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
100 inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
101 inline RecommendedAction& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
102 inline RecommendedAction& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
103 inline RecommendedAction& WithOperation(const char* value) { SetOperation(value); return *this;}
105
107
110 inline const Aws::Vector<RecommendedActionParameter>& GetParameters() const{ return m_parameters; }
111 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
112 inline void SetParameters(const Aws::Vector<RecommendedActionParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
113 inline void SetParameters(Aws::Vector<RecommendedActionParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
116 inline RecommendedAction& AddParameters(const RecommendedActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
117 inline RecommendedAction& AddParameters(RecommendedActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
119
121
129 inline const Aws::Vector<Aws::String>& GetApplyModes() const{ return m_applyModes; }
130 inline bool ApplyModesHasBeenSet() const { return m_applyModesHasBeenSet; }
131 inline void SetApplyModes(const Aws::Vector<Aws::String>& value) { m_applyModesHasBeenSet = true; m_applyModes = value; }
132 inline void SetApplyModes(Aws::Vector<Aws::String>&& value) { m_applyModesHasBeenSet = true; m_applyModes = std::move(value); }
133 inline RecommendedAction& WithApplyModes(const Aws::Vector<Aws::String>& value) { SetApplyModes(value); return *this;}
134 inline RecommendedAction& WithApplyModes(Aws::Vector<Aws::String>&& value) { SetApplyModes(std::move(value)); return *this;}
135 inline RecommendedAction& AddApplyModes(const Aws::String& value) { m_applyModesHasBeenSet = true; m_applyModes.push_back(value); return *this; }
136 inline RecommendedAction& AddApplyModes(Aws::String&& value) { m_applyModesHasBeenSet = true; m_applyModes.push_back(std::move(value)); return *this; }
137 inline RecommendedAction& AddApplyModes(const char* value) { m_applyModesHasBeenSet = true; m_applyModes.push_back(value); return *this; }
139
141
146 inline const Aws::String& GetStatus() const{ return m_status; }
147 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
149 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
150 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
151 inline RecommendedAction& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
152 inline RecommendedAction& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
153 inline RecommendedAction& WithStatus(const char* value) { SetStatus(value); return *this;}
155
157
160 inline const IssueDetails& GetIssueDetails() const{ return m_issueDetails; }
161 inline bool IssueDetailsHasBeenSet() const { return m_issueDetailsHasBeenSet; }
162 inline void SetIssueDetails(const IssueDetails& value) { m_issueDetailsHasBeenSet = true; m_issueDetails = value; }
163 inline void SetIssueDetails(IssueDetails&& value) { m_issueDetailsHasBeenSet = true; m_issueDetails = std::move(value); }
164 inline RecommendedAction& WithIssueDetails(const IssueDetails& value) { SetIssueDetails(value); return *this;}
165 inline RecommendedAction& WithIssueDetails(IssueDetails&& value) { SetIssueDetails(std::move(value)); return *this;}
167
169
172 inline const Aws::Vector<ContextAttribute>& GetContextAttributes() const{ return m_contextAttributes; }
173 inline bool ContextAttributesHasBeenSet() const { return m_contextAttributesHasBeenSet; }
174 inline void SetContextAttributes(const Aws::Vector<ContextAttribute>& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes = value; }
175 inline void SetContextAttributes(Aws::Vector<ContextAttribute>&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes = std::move(value); }
178 inline RecommendedAction& AddContextAttributes(const ContextAttribute& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.push_back(value); return *this; }
179 inline RecommendedAction& AddContextAttributes(ContextAttribute&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.push_back(std::move(value)); return *this; }
181 private:
182
183 Aws::String m_actionId;
184 bool m_actionIdHasBeenSet = false;
185
186 Aws::String m_title;
187 bool m_titleHasBeenSet = false;
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
192 Aws::String m_operation;
193 bool m_operationHasBeenSet = false;
194
196 bool m_parametersHasBeenSet = false;
197
198 Aws::Vector<Aws::String> m_applyModes;
199 bool m_applyModesHasBeenSet = false;
200
201 Aws::String m_status;
202 bool m_statusHasBeenSet = false;
203
204 IssueDetails m_issueDetails;
205 bool m_issueDetailsHasBeenSet = false;
206
207 Aws::Vector<ContextAttribute> m_contextAttributes;
208 bool m_contextAttributesHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace RDS
213} // 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