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/neptune/Neptune_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 Neptune
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NEPTUNE_API PendingMaintenanceAction() = default;
37 AWS_NEPTUNE_API PendingMaintenanceAction(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 template<typename ActionT = Aws::String>
52 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
53 template<typename ActionT = Aws::String>
54 PendingMaintenanceAction& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
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) { m_autoAppliedAfterDateHasBeenSet = true; m_autoAppliedAfterDate = std::forward<AutoAppliedAfterDateT>(value); }
68 template<typename AutoAppliedAfterDateT = Aws::Utils::DateTime>
69 PendingMaintenanceAction& WithAutoAppliedAfterDate(AutoAppliedAfterDateT&& value) { SetAutoAppliedAfterDate(std::forward<AutoAppliedAfterDateT>(value)); return *this;}
71
73
79 inline const Aws::Utils::DateTime& GetForcedApplyDate() const { return m_forcedApplyDate; }
80 inline bool ForcedApplyDateHasBeenSet() const { return m_forcedApplyDateHasBeenSet; }
81 template<typename ForcedApplyDateT = Aws::Utils::DateTime>
82 void SetForcedApplyDate(ForcedApplyDateT&& value) { m_forcedApplyDateHasBeenSet = true; m_forcedApplyDate = std::forward<ForcedApplyDateT>(value); }
83 template<typename ForcedApplyDateT = Aws::Utils::DateTime>
84 PendingMaintenanceAction& WithForcedApplyDate(ForcedApplyDateT&& value) { SetForcedApplyDate(std::forward<ForcedApplyDateT>(value)); return *this;}
86
88
92 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
93 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
94 template<typename OptInStatusT = Aws::String>
95 void SetOptInStatus(OptInStatusT&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::forward<OptInStatusT>(value); }
96 template<typename OptInStatusT = Aws::String>
97 PendingMaintenanceAction& WithOptInStatus(OptInStatusT&& value) { SetOptInStatus(std::forward<OptInStatusT>(value)); return *this;}
99
101
109 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
110 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
111 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
112 void SetCurrentApplyDate(CurrentApplyDateT&& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = std::forward<CurrentApplyDateT>(value); }
113 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
114 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) { SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value)); return *this;}
116
118
121 inline const Aws::String& GetDescription() const { return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 template<typename DescriptionT = Aws::String>
124 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
125 template<typename DescriptionT = Aws::String>
126 PendingMaintenanceAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
128 private:
129
130 Aws::String m_action;
131 bool m_actionHasBeenSet = false;
132
133 Aws::Utils::DateTime m_autoAppliedAfterDate{};
134 bool m_autoAppliedAfterDateHasBeenSet = false;
135
136 Aws::Utils::DateTime m_forcedApplyDate{};
137 bool m_forcedApplyDateHasBeenSet = false;
138
139 Aws::String m_optInStatus;
140 bool m_optInStatusHasBeenSet = false;
141
142 Aws::Utils::DateTime m_currentApplyDate{};
143 bool m_currentApplyDateHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Neptune
151} // 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