AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PendingMaintenanceAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
30 public:
31 AWS_LIGHTSAIL_API PendingMaintenanceAction() = default;
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 template <typename ActionT = Aws::String>
43 void SetAction(ActionT&& value) {
44 m_actionHasBeenSet = true;
45 m_action = std::forward<ActionT>(value);
46 }
47 template <typename ActionT = Aws::String>
49 SetAction(std::forward<ActionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
77 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
78 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
79 void SetCurrentApplyDate(CurrentApplyDateT&& value) {
80 m_currentApplyDateHasBeenSet = true;
81 m_currentApplyDate = std::forward<CurrentApplyDateT>(value);
82 }
83 template <typename CurrentApplyDateT = Aws::Utils::DateTime>
84 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) {
85 SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_action;
91 bool m_actionHasBeenSet = false;
92
93 Aws::String m_description;
94 bool m_descriptionHasBeenSet = false;
95
96 Aws::Utils::DateTime m_currentApplyDate{};
97 bool m_currentApplyDateHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Lightsail
102} // namespace Aws
PendingMaintenanceAction & WithDescription(DescriptionT &&value)
AWS_LIGHTSAIL_API PendingMaintenanceAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API PendingMaintenanceAction()=default
const Aws::Utils::DateTime & GetCurrentApplyDate() const
PendingMaintenanceAction & WithAction(ActionT &&value)
PendingMaintenanceAction & WithCurrentApplyDate(CurrentApplyDateT &&value)
AWS_LIGHTSAIL_API PendingMaintenanceAction(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue