AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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/neptune/Neptune_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Neptune {
21namespace Model {
22
30 public:
31 AWS_NEPTUNE_API PendingMaintenanceAction() = default;
32 AWS_NEPTUNE_API PendingMaintenanceAction(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetAction() const { return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 template <typename ActionT = Aws::String>
46 void SetAction(ActionT&& value) {
47 m_actionHasBeenSet = true;
48 m_action = std::forward<ActionT>(value);
49 }
50 template <typename ActionT = Aws::String>
52 SetAction(std::forward<ActionT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::Utils::DateTime& GetAutoAppliedAfterDate() const { return m_autoAppliedAfterDate; }
65 inline bool AutoAppliedAfterDateHasBeenSet() const { return m_autoAppliedAfterDateHasBeenSet; }
66 template <typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
67 void SetAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) {
68 m_autoAppliedAfterDateHasBeenSet = true;
69 m_autoAppliedAfterDate = std::forward<AutoAppliedAfterDateT>(value);
70 }
71 template <typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
72 PendingMaintenanceAction& WithAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) {
73 SetAutoAppliedAfterDate(std::forward<AutoAppliedAfterDateT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::Utils::DateTime& GetForcedApplyDate() const { return m_forcedApplyDate; }
86 inline bool ForcedApplyDateHasBeenSet() const { return m_forcedApplyDateHasBeenSet; }
87 template <typename ForcedApplyDateT = Aws::Utils::DateTime>
88 void SetForcedApplyDate(ForcedApplyDateT&& value) {
89 m_forcedApplyDateHasBeenSet = true;
90 m_forcedApplyDate = std::forward<ForcedApplyDateT>(value);
91 }
92 template <typename ForcedApplyDateT = Aws::Utils::DateTime>
93 PendingMaintenanceAction& WithForcedApplyDate(ForcedApplyDateT&& value) {
94 SetForcedApplyDate(std::forward<ForcedApplyDateT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
105 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
106 template <typename OptInStatusT = Aws::String>
107 void SetOptInStatus(OptInStatusT&& value) {
108 m_optInStatusHasBeenSet = true;
109 m_optInStatus = std::forward<OptInStatusT>(value);
110 }
111 template <typename OptInStatusT = Aws::String>
113 SetOptInStatus(std::forward<OptInStatusT>(value));
114 return *this;
115 }
117
119
127 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
128 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
129 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
130 void SetCurrentApplyDate(CurrentApplyDateT&& value) {
131 m_currentApplyDateHasBeenSet = true;
132 m_currentApplyDate = std::forward<CurrentApplyDateT>(value);
133 }
134 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
135 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) {
136 SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetDescription() const { return m_description; }
146 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
147 template <typename DescriptionT = Aws::String>
148 void SetDescription(DescriptionT&& value) {
149 m_descriptionHasBeenSet = true;
150 m_description = std::forward<DescriptionT>(value);
151 }
152 template <typename DescriptionT = Aws::String>
154 SetDescription(std::forward<DescriptionT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_action;
160 bool m_actionHasBeenSet = false;
161
162 Aws::Utils::DateTime m_autoAppliedAfterDate{};
163 bool m_autoAppliedAfterDateHasBeenSet = false;
164
165 Aws::Utils::DateTime m_forcedApplyDate{};
166 bool m_forcedApplyDateHasBeenSet = false;
167
168 Aws::String m_optInStatus;
169 bool m_optInStatusHasBeenSet = false;
170
171 Aws::Utils::DateTime m_currentApplyDate{};
172 bool m_currentApplyDateHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace Neptune
180} // namespace Aws
PendingMaintenanceAction & WithDescription(DescriptionT &&value)
AWS_NEPTUNE_API PendingMaintenanceAction(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetAutoAppliedAfterDate() const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PendingMaintenanceAction & WithOptInStatus(OptInStatusT &&value)
AWS_NEPTUNE_API PendingMaintenanceAction()=default
const Aws::Utils::DateTime & GetForcedApplyDate() const
PendingMaintenanceAction & WithAction(ActionT &&value)
void SetAutoAppliedAfterDate(AutoAppliedAfterDateT &&value)
const Aws::Utils::DateTime & GetCurrentApplyDate() const
PendingMaintenanceAction & WithCurrentApplyDate(CurrentApplyDateT &&value)
PendingMaintenanceAction & WithForcedApplyDate(ForcedApplyDateT &&value)
PendingMaintenanceAction & WithAutoAppliedAfterDate(AutoAppliedAfterDateT &&value)
AWS_NEPTUNE_API PendingMaintenanceAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream