AWS SDK for C++  1.9.14
AWS SDK for C++
PendingMaintenanceAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetAction() const{ return m_action; }
46 
50  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 
55  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
56 
60  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
61 
65  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
66 
70  inline PendingMaintenanceAction& WithAction(const Aws::String& value) { SetAction(value); return *this;}
71 
75  inline PendingMaintenanceAction& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
76 
80  inline PendingMaintenanceAction& WithAction(const char* value) { SetAction(value); return *this;}
81 
82 
86  inline const Aws::String& GetDescription() const{ return m_description; }
87 
91  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 
96  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 
101  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 
106  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 
111  inline PendingMaintenanceAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 
116  inline PendingMaintenanceAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
117 
121  inline PendingMaintenanceAction& WithDescription(const char* value) { SetDescription(value); return *this;}
122 
123 
127  inline const Aws::Utils::DateTime& GetCurrentApplyDate() const{ return m_currentApplyDate; }
128 
132  inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; }
133 
137  inline void SetCurrentApplyDate(const Aws::Utils::DateTime& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = value; }
138 
142  inline void SetCurrentApplyDate(Aws::Utils::DateTime&& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = std::move(value); }
143 
147  inline PendingMaintenanceAction& WithCurrentApplyDate(const Aws::Utils::DateTime& value) { SetCurrentApplyDate(value); return *this;}
148 
152  inline PendingMaintenanceAction& WithCurrentApplyDate(Aws::Utils::DateTime&& value) { SetCurrentApplyDate(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_action;
157  bool m_actionHasBeenSet;
158 
159  Aws::String m_description;
160  bool m_descriptionHasBeenSet;
161 
162  Aws::Utils::DateTime m_currentApplyDate;
163  bool m_currentApplyDateHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace Lightsail
168 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::PendingMaintenanceAction::WithAction
PendingMaintenanceAction & WithAction(const char *value)
Definition: PendingMaintenanceAction.h:80
Aws::Lightsail::Model::PendingMaintenanceAction::PendingMaintenanceAction
PendingMaintenanceAction()
Aws::Lightsail::Model::PendingMaintenanceAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::PendingMaintenanceAction::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PendingMaintenanceAction.h:91
Aws::Lightsail::Model::PendingMaintenanceAction::PendingMaintenanceAction
PendingMaintenanceAction(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::PendingMaintenanceAction::SetAction
void SetAction(const Aws::String &value)
Definition: PendingMaintenanceAction.h:55
Aws::Lightsail::Model::PendingMaintenanceAction::WithDescription
PendingMaintenanceAction & WithDescription(Aws::String &&value)
Definition: PendingMaintenanceAction.h:116
Aws::Lightsail::Model::PendingMaintenanceAction::SetDescription
void SetDescription(Aws::String &&value)
Definition: PendingMaintenanceAction.h:101
Aws::Lightsail::Model::PendingMaintenanceAction::GetCurrentApplyDate
const Aws::Utils::DateTime & GetCurrentApplyDate() const
Definition: PendingMaintenanceAction.h:127
DateTime.h
Aws::Lightsail::Model::PendingMaintenanceAction::SetAction
void SetAction(const char *value)
Definition: PendingMaintenanceAction.h:65
Aws::Lightsail::Model::PendingMaintenanceAction::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: PendingMaintenanceAction.h:50
Aws::Lightsail::Model::PendingMaintenanceAction::GetDescription
const Aws::String & GetDescription() const
Definition: PendingMaintenanceAction.h:86
Aws::Lightsail::Model::PendingMaintenanceAction::CurrentApplyDateHasBeenSet
bool CurrentApplyDateHasBeenSet() const
Definition: PendingMaintenanceAction.h:132
Aws::Lightsail::Model::PendingMaintenanceAction::SetDescription
void SetDescription(const char *value)
Definition: PendingMaintenanceAction.h:106
Aws::Lightsail::Model::PendingMaintenanceAction::SetDescription
void SetDescription(const Aws::String &value)
Definition: PendingMaintenanceAction.h:96
Aws::Lightsail::Model::PendingMaintenanceAction::GetAction
const Aws::String & GetAction() const
Definition: PendingMaintenanceAction.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::PendingMaintenanceAction::operator=
PendingMaintenanceAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::PendingMaintenanceAction::SetAction
void SetAction(Aws::String &&value)
Definition: PendingMaintenanceAction.h:60
Aws::Lightsail::Model::PendingMaintenanceAction::SetCurrentApplyDate
void SetCurrentApplyDate(const Aws::Utils::DateTime &value)
Definition: PendingMaintenanceAction.h:137
Aws::Lightsail::Model::PendingMaintenanceAction::SetCurrentApplyDate
void SetCurrentApplyDate(Aws::Utils::DateTime &&value)
Definition: PendingMaintenanceAction.h:142
Lightsail_EXPORTS.h
Aws::Lightsail::Model::PendingMaintenanceAction
Definition: PendingMaintenanceAction.h:34
Aws::Lightsail::Model::PendingMaintenanceAction::WithAction
PendingMaintenanceAction & WithAction(const Aws::String &value)
Definition: PendingMaintenanceAction.h:70
Aws::Lightsail::Model::PendingMaintenanceAction::WithDescription
PendingMaintenanceAction & WithDescription(const char *value)
Definition: PendingMaintenanceAction.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::PendingMaintenanceAction::WithCurrentApplyDate
PendingMaintenanceAction & WithCurrentApplyDate(Aws::Utils::DateTime &&value)
Definition: PendingMaintenanceAction.h:152
Aws::Lightsail::Model::PendingMaintenanceAction::WithDescription
PendingMaintenanceAction & WithDescription(const Aws::String &value)
Definition: PendingMaintenanceAction.h:111
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::PendingMaintenanceAction::WithCurrentApplyDate
PendingMaintenanceAction & WithCurrentApplyDate(const Aws::Utils::DateTime &value)
Definition: PendingMaintenanceAction.h:147
Aws::Lightsail::Model::PendingMaintenanceAction::WithAction
PendingMaintenanceAction & WithAction(Aws::String &&value)
Definition: PendingMaintenanceAction.h:75