AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
53 inline const Aws::String& GetAction() const { return m_action; }
54 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
55 template <typename ActionT = Aws::String>
56 void SetAction(ActionT&& value) {
57 m_actionHasBeenSet = true;
58 m_action = std::forward<ActionT>(value);
59 }
60 template <typename ActionT = Aws::String>
62 SetAction(std::forward<ActionT>(value));
63 return *this;
64 }
66
68
73 inline const Aws::Utils::DateTime& GetAutoAppliedAfterDate() const { return m_autoAppliedAfterDate; }
74 inline bool AutoAppliedAfterDateHasBeenSet() const { return m_autoAppliedAfterDateHasBeenSet; }
75 template <typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
76 void SetAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) {
77 m_autoAppliedAfterDateHasBeenSet = true;
78 m_autoAppliedAfterDate = std::forward<AutoAppliedAfterDateT>(value);
79 }
80 template <typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
81 PendingMaintenanceAction& WithAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) {
82 SetAutoAppliedAfterDate(std::forward<AutoAppliedAfterDateT>(value));
83 return *this;
84 }
86
88
94 inline const Aws::Utils::DateTime& GetForcedApplyDate() const { return m_forcedApplyDate; }
95 inline bool ForcedApplyDateHasBeenSet() const { return m_forcedApplyDateHasBeenSet; }
96 template <typename ForcedApplyDateT = Aws::Utils::DateTime>
97 void SetForcedApplyDate(ForcedApplyDateT&& value) {
98 m_forcedApplyDateHasBeenSet = true;
99 m_forcedApplyDate = std::forward<ForcedApplyDateT>(value);
100 }
101 template <typename ForcedApplyDateT = Aws::Utils::DateTime>
103 SetForcedApplyDate(std::forward<ForcedApplyDateT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
114 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
115 template <typename OptInStatusT = Aws::String>
116 void SetOptInStatus(OptInStatusT&& value) {
117 m_optInStatusHasBeenSet = true;
118 m_optInStatus = std::forward<OptInStatusT>(value);
119 }
120 template <typename OptInStatusT = Aws::String>
122 SetOptInStatus(std::forward<OptInStatusT>(value));
123 return *this;
124 }
126
128
137 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
138 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
139 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
140 void SetCurrentApplyDate(CurrentApplyDateT&& value) {
141 m_currentApplyDateHasBeenSet = true;
142 m_currentApplyDate = std::forward<CurrentApplyDateT>(value);
143 }
144 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
145 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) {
146 SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetDescription() const { return m_description; }
156 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
157 template <typename DescriptionT = Aws::String>
158 void SetDescription(DescriptionT&& value) {
159 m_descriptionHasBeenSet = true;
160 m_description = std::forward<DescriptionT>(value);
161 }
162 template <typename DescriptionT = Aws::String>
164 SetDescription(std::forward<DescriptionT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_action;
170
171 Aws::Utils::DateTime m_autoAppliedAfterDate{};
172
173 Aws::Utils::DateTime m_forcedApplyDate{};
174
175 Aws::String m_optInStatus;
176
177 Aws::Utils::DateTime m_currentApplyDate{};
178
179 Aws::String m_description;
180 bool m_actionHasBeenSet = false;
181 bool m_autoAppliedAfterDateHasBeenSet = false;
182 bool m_forcedApplyDateHasBeenSet = false;
183 bool m_optInStatusHasBeenSet = false;
184 bool m_currentApplyDateHasBeenSet = false;
185 bool m_descriptionHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace RDS
190} // 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