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/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_DATABASEMIGRATIONSERVICE_API PendingMaintenanceAction() = default;
39 AWS_DATABASEMIGRATIONSERVICE_API PendingMaintenanceAction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API PendingMaintenanceAction& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() 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
91 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
92 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
93 template<typename OptInStatusT = Aws::String>
94 void SetOptInStatus(OptInStatusT&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::forward<OptInStatusT>(value); }
95 template<typename OptInStatusT = Aws::String>
96 PendingMaintenanceAction& WithOptInStatus(OptInStatusT&& value) { SetOptInStatus(std::forward<OptInStatusT>(value)); return *this;}
98
100
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 DatabaseMigrationService
151} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API PendingMaintenanceAction & operator=(Aws::Utils::Json::JsonView jsonValue)
PendingMaintenanceAction & WithCurrentApplyDate(CurrentApplyDateT &&value)
PendingMaintenanceAction & WithAutoAppliedAfterDate(AutoAppliedAfterDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATABASEMIGRATIONSERVICE_API PendingMaintenanceAction(Aws::Utils::Json::JsonView jsonValue)
PendingMaintenanceAction & WithOptInStatus(OptInStatusT &&value)
AWS_DATABASEMIGRATIONSERVICE_API PendingMaintenanceAction()=default
PendingMaintenanceAction & WithDescription(DescriptionT &&value)
PendingMaintenanceAction & WithForcedApplyDate(ForcedApplyDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue