AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
PendingMaintenanceAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/RDS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace RDS {
21namespace Model {
22
30 public:
31 AWS_RDS_API PendingMaintenanceAction() = default;
34
35 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
55 inline const Aws::String& GetAction() const { return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 template <typename ActionT = Aws::String>
58 void SetAction(ActionT&& value) {
59 m_actionHasBeenSet = true;
60 m_action = std::forward<ActionT>(value);
61 }
62 template <typename ActionT = Aws::String>
64 SetAction(std::forward<ActionT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::Utils::DateTime& GetAutoAppliedAfterDate() const { return m_autoAppliedAfterDate; }
76 inline bool AutoAppliedAfterDateHasBeenSet() const { return m_autoAppliedAfterDateHasBeenSet; }
77 template <typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
78 void SetAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) {
79 m_autoAppliedAfterDateHasBeenSet = true;
80 m_autoAppliedAfterDate = std::forward<AutoAppliedAfterDateT>(value);
81 }
82 template <typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
83 PendingMaintenanceAction& WithAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) {
84 SetAutoAppliedAfterDate(std::forward<AutoAppliedAfterDateT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::Utils::DateTime& GetForcedApplyDate() const { return m_forcedApplyDate; }
97 inline bool ForcedApplyDateHasBeenSet() const { return m_forcedApplyDateHasBeenSet; }
98 template <typename ForcedApplyDateT = Aws::Utils::DateTime>
99 void SetForcedApplyDate(ForcedApplyDateT&& value) {
100 m_forcedApplyDateHasBeenSet = true;
101 m_forcedApplyDate = std::forward<ForcedApplyDateT>(value);
102 }
103 template <typename ForcedApplyDateT = Aws::Utils::DateTime>
105 SetForcedApplyDate(std::forward<ForcedApplyDateT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
116 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
117 template <typename OptInStatusT = Aws::String>
118 void SetOptInStatus(OptInStatusT&& value) {
119 m_optInStatusHasBeenSet = true;
120 m_optInStatus = std::forward<OptInStatusT>(value);
121 }
122 template <typename OptInStatusT = Aws::String>
124 SetOptInStatus(std::forward<OptInStatusT>(value));
125 return *this;
126 }
128
130
139 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
140 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
141 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
142 void SetCurrentApplyDate(CurrentApplyDateT&& value) {
143 m_currentApplyDateHasBeenSet = true;
144 m_currentApplyDate = std::forward<CurrentApplyDateT>(value);
145 }
146 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
147 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) {
148 SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetDescription() const { return m_description; }
158 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
159 template <typename DescriptionT = Aws::String>
160 void SetDescription(DescriptionT&& value) {
161 m_descriptionHasBeenSet = true;
162 m_description = std::forward<DescriptionT>(value);
163 }
164 template <typename DescriptionT = Aws::String>
166 SetDescription(std::forward<DescriptionT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_action;
172
173 Aws::Utils::DateTime m_autoAppliedAfterDate{};
174
175 Aws::Utils::DateTime m_forcedApplyDate{};
176
177 Aws::String m_optInStatus;
178
179 Aws::Utils::DateTime m_currentApplyDate{};
180
181 Aws::String m_description;
182 bool m_actionHasBeenSet = false;
183 bool m_autoAppliedAfterDateHasBeenSet = false;
184 bool m_forcedApplyDateHasBeenSet = false;
185 bool m_optInStatusHasBeenSet = false;
186 bool m_currentApplyDateHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace RDS
192} // namespace Aws
AWS_RDS_API PendingMaintenanceAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API PendingMaintenanceAction()=default
const Aws::Utils::DateTime & GetCurrentApplyDate() const
PendingMaintenanceAction & WithAction(ActionT &&value)
PendingMaintenanceAction & WithDescription(DescriptionT &&value)
PendingMaintenanceAction & WithAutoAppliedAfterDate(AutoAppliedAfterDateT &&value)
void SetForcedApplyDate(ForcedApplyDateT &&value)
const Aws::Utils::DateTime & GetAutoAppliedAfterDate() const
void SetAutoAppliedAfterDate(AutoAppliedAfterDateT &&value)
PendingMaintenanceAction & WithForcedApplyDate(ForcedApplyDateT &&value)
PendingMaintenanceAction & WithOptInStatus(OptInStatusT &&value)
AWS_RDS_API PendingMaintenanceAction(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PendingMaintenanceAction & WithCurrentApplyDate(CurrentApplyDateT &&value)
void SetCurrentApplyDate(CurrentApplyDateT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetForcedApplyDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream