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/lightsail/Lightsail_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 Lightsail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LIGHTSAIL_API PendingMaintenanceAction() = default;
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 template<typename ActionT = Aws::String>
49 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
50 template<typename ActionT = Aws::String>
51 PendingMaintenanceAction& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 PendingMaintenanceAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetCurrentApplyDate() const { return m_currentApplyDate; }
71 inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
72 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
73 void SetCurrentApplyDate(CurrentApplyDateT&& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = std::forward<CurrentApplyDateT>(value); }
74 template<typename CurrentApplyDateT = Aws::Utils::DateTime>
75 PendingMaintenanceAction& WithCurrentApplyDate(CurrentApplyDateT&& value) { SetCurrentApplyDate(std::forward<CurrentApplyDateT>(value)); return *this;}
77 private:
78
79 Aws::String m_action;
80 bool m_actionHasBeenSet = false;
81
82 Aws::String m_description;
83 bool m_descriptionHasBeenSet = false;
84
85 Aws::Utils::DateTime m_currentApplyDate{};
86 bool m_currentApplyDateHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Lightsail
91} // 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