AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActionIdT = Aws::String>
55 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
56 template<typename ActionIdT = Aws::String>
57 RecommendedAction& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
69 template<typename TitleT = Aws::String>
70 RecommendedAction& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
72
74
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 RecommendedAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
90 inline const Aws::String& GetOperation() const { return m_operation; }
91 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
92 template<typename OperationT = Aws::String>
93 void SetOperation(OperationT&& value) { m_operationHasBeenSet = true; m_operation = std::forward<OperationT>(value); }
94 template<typename OperationT = Aws::String>
95 RecommendedAction& WithOperation(OperationT&& value) { SetOperation(std::forward<OperationT>(value)); return *this;}
97
99
102 inline const Aws::Vector<RecommendedActionParameter>& GetParameters() const { return m_parameters; }
103 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
104 template<typename ParametersT = Aws::Vector<RecommendedActionParameter>>
105 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
106 template<typename ParametersT = Aws::Vector<RecommendedActionParameter>>
107 RecommendedAction& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
108 template<typename ParametersT = RecommendedActionParameter>
109 RecommendedAction& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
111
113
121 inline const Aws::Vector<Aws::String>& GetApplyModes() const { return m_applyModes; }
122 inline bool ApplyModesHasBeenSet() const { return m_applyModesHasBeenSet; }
123 template<typename ApplyModesT = Aws::Vector<Aws::String>>
124 void SetApplyModes(ApplyModesT&& value) { m_applyModesHasBeenSet = true; m_applyModes = std::forward<ApplyModesT>(value); }
125 template<typename ApplyModesT = Aws::Vector<Aws::String>>
126 RecommendedAction& WithApplyModes(ApplyModesT&& value) { SetApplyModes(std::forward<ApplyModesT>(value)); return *this;}
127 template<typename ApplyModesT = Aws::String>
128 RecommendedAction& AddApplyModes(ApplyModesT&& value) { m_applyModesHasBeenSet = true; m_applyModes.emplace_back(std::forward<ApplyModesT>(value)); return *this; }
130
132
137 inline const Aws::String& GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 template<typename StatusT = Aws::String>
140 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
141 template<typename StatusT = Aws::String>
142 RecommendedAction& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
144
146
149 inline const IssueDetails& GetIssueDetails() const { return m_issueDetails; }
150 inline bool IssueDetailsHasBeenSet() const { return m_issueDetailsHasBeenSet; }
151 template<typename IssueDetailsT = IssueDetails>
152 void SetIssueDetails(IssueDetailsT&& value) { m_issueDetailsHasBeenSet = true; m_issueDetails = std::forward<IssueDetailsT>(value); }
153 template<typename IssueDetailsT = IssueDetails>
154 RecommendedAction& WithIssueDetails(IssueDetailsT&& value) { SetIssueDetails(std::forward<IssueDetailsT>(value)); return *this;}
156
158
161 inline const Aws::Vector<ContextAttribute>& GetContextAttributes() const { return m_contextAttributes; }
162 inline bool ContextAttributesHasBeenSet() const { return m_contextAttributesHasBeenSet; }
163 template<typename ContextAttributesT = Aws::Vector<ContextAttribute>>
164 void SetContextAttributes(ContextAttributesT&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes = std::forward<ContextAttributesT>(value); }
165 template<typename ContextAttributesT = Aws::Vector<ContextAttribute>>
166 RecommendedAction& WithContextAttributes(ContextAttributesT&& value) { SetContextAttributes(std::forward<ContextAttributesT>(value)); return *this;}
167 template<typename ContextAttributesT = ContextAttribute>
168 RecommendedAction& AddContextAttributes(ContextAttributesT&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace_back(std::forward<ContextAttributesT>(value)); return *this; }
170 private:
171
172 Aws::String m_actionId;
173 bool m_actionIdHasBeenSet = false;
174
175 Aws::String m_title;
176 bool m_titleHasBeenSet = false;
177
178 Aws::String m_description;
179 bool m_descriptionHasBeenSet = false;
180
181 Aws::String m_operation;
182 bool m_operationHasBeenSet = false;
183
185 bool m_parametersHasBeenSet = false;
186
187 Aws::Vector<Aws::String> m_applyModes;
188 bool m_applyModesHasBeenSet = false;
189
190 Aws::String m_status;
191 bool m_statusHasBeenSet = false;
192
193 IssueDetails m_issueDetails;
194 bool m_issueDetailsHasBeenSet = false;
195
196 Aws::Vector<ContextAttribute> m_contextAttributes;
197 bool m_contextAttributesHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace RDS
202} // 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