AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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/docdb/DocDB_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace DocDB {
21namespace Model {
22
30 public:
31 AWS_DOCDB_API PendingMaintenanceAction() = default;
34
35 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_DOCDB_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
123 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
124 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
125 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
126 void SetCurrentApplyDate(CurrentApplyDateT&& value) {
127 m_currentApplyDateHasBeenSet = true;
128 m_currentApplyDate = std::forward<CurrentApplyDateT>(value);
129 }
130 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
131 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) {
132 SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetDescription() const { return m_description; }
142 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
143 template <typename DescriptionT = Aws::String>
144 void SetDescription(DescriptionT&& value) {
145 m_descriptionHasBeenSet = true;
146 m_description = std::forward<DescriptionT>(value);
147 }
148 template <typename DescriptionT = Aws::String>
150 SetDescription(std::forward<DescriptionT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_action;
156
157 Aws::Utils::DateTime m_autoAppliedAfterDate{};
158
159 Aws::Utils::DateTime m_forcedApplyDate{};
160
161 Aws::String m_optInStatus;
162
163 Aws::Utils::DateTime m_currentApplyDate{};
164
165 Aws::String m_description;
166 bool m_actionHasBeenSet = false;
167 bool m_autoAppliedAfterDateHasBeenSet = false;
168 bool m_forcedApplyDateHasBeenSet = false;
169 bool m_optInStatusHasBeenSet = false;
170 bool m_currentApplyDateHasBeenSet = false;
171 bool m_descriptionHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace DocDB
176} // namespace Aws
AWS_DOCDB_API PendingMaintenanceAction()=default
PendingMaintenanceAction & WithForcedApplyDate(ForcedApplyDateT &&value)
PendingMaintenanceAction & WithAutoAppliedAfterDate(AutoAppliedAfterDateT &&value)
const Aws::Utils::DateTime & GetAutoAppliedAfterDate() const
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_DOCDB_API PendingMaintenanceAction(const Aws::Utils::Xml::XmlNode &xmlNode)
PendingMaintenanceAction & WithOptInStatus(OptInStatusT &&value)
PendingMaintenanceAction & WithDescription(DescriptionT &&value)
PendingMaintenanceAction & WithAction(ActionT &&value)
void SetAutoAppliedAfterDate(AutoAppliedAfterDateT &&value)
const Aws::Utils::DateTime & GetForcedApplyDate() const
AWS_DOCDB_API PendingMaintenanceAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PendingMaintenanceAction & WithCurrentApplyDate(CurrentApplyDateT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetCurrentApplyDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream