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/docdb/DocDB_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 DocDB
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DOCDB_API PendingMaintenanceAction() = default;
39
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_DOCDB_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
105 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
106 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
107 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
108 void SetCurrentApplyDate(CurrentApplyDateT&& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = std::forward<CurrentApplyDateT>(value); }
109 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
110 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) { SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value)); return *this;}
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template<typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
121 template<typename DescriptionT = Aws::String>
122 PendingMaintenanceAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
124 private:
125
126 Aws::String m_action;
127 bool m_actionHasBeenSet = false;
128
129 Aws::Utils::DateTime m_autoAppliedAfterDate{};
130 bool m_autoAppliedAfterDateHasBeenSet = false;
131
132 Aws::Utils::DateTime m_forcedApplyDate{};
133 bool m_forcedApplyDateHasBeenSet = false;
134
135 Aws::String m_optInStatus;
136 bool m_optInStatusHasBeenSet = false;
137
138 Aws::Utils::DateTime m_currentApplyDate{};
139 bool m_currentApplyDateHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace DocDB
147} // 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