AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PendingMaintenanceAction.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/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_RDS_API PendingMaintenanceAction() = default;
39
40 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
59 inline const Aws::String& GetAction() const { return m_action; }
60 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 template<typename ActionT = Aws::String>
62 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
63 template<typename ActionT = Aws::String>
64 PendingMaintenanceAction& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
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) { m_autoAppliedAfterDateHasBeenSet = true; m_autoAppliedAfterDate = std::forward<AutoAppliedAfterDateT>(value); }
77 template<typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
78 PendingMaintenanceAction& WithAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) { SetAutoAppliedAfterDate(std::forward<AutoAppliedAfterDateT>(value)); return *this;}
80
82
88 inline const Aws::Utils::DateTime& GetForcedApplyDate() const { return m_forcedApplyDate; }
89 inline bool ForcedApplyDateHasBeenSet() const { return m_forcedApplyDateHasBeenSet; }
90 template<typename ForcedApplyDateT = Aws::Utils::DateTime>
91 void SetForcedApplyDate(ForcedApplyDateT&& value) { m_forcedApplyDateHasBeenSet = true; m_forcedApplyDate = std::forward<ForcedApplyDateT>(value); }
92 template<typename ForcedApplyDateT = Aws::Utils::DateTime>
93 PendingMaintenanceAction& WithForcedApplyDate(ForcedApplyDateT&& value) { SetForcedApplyDate(std::forward<ForcedApplyDateT>(value)); return *this;}
95
97
101 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
102 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
103 template<typename OptInStatusT = Aws::String>
104 void SetOptInStatus(OptInStatusT&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::forward<OptInStatusT>(value); }
105 template<typename OptInStatusT = Aws::String>
106 PendingMaintenanceAction& WithOptInStatus(OptInStatusT&& value) { SetOptInStatus(std::forward<OptInStatusT>(value)); return *this;}
108
110
119 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
120 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
121 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
122 void SetCurrentApplyDate(CurrentApplyDateT&& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = std::forward<CurrentApplyDateT>(value); }
123 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
124 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) { SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value)); return *this;}
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template<typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
135 template<typename DescriptionT = Aws::String>
136 PendingMaintenanceAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
138 private:
139
140 Aws::String m_action;
141 bool m_actionHasBeenSet = false;
142
143 Aws::Utils::DateTime m_autoAppliedAfterDate{};
144 bool m_autoAppliedAfterDateHasBeenSet = false;
145
146 Aws::Utils::DateTime m_forcedApplyDate{};
147 bool m_forcedApplyDateHasBeenSet = false;
148
149 Aws::String m_optInStatus;
150 bool m_optInStatusHasBeenSet = false;
151
152 Aws::Utils::DateTime m_currentApplyDate{};
153 bool m_currentApplyDateHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace RDS
161} // 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