AWS SDK for C++  1.9.105
AWS SDK for C++
AddOn.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  AddOn();
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline AddOn& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline AddOn& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline AddOn& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetStatus() const{ return m_status; }
86 
90  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
91 
95  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
96 
100  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
101 
105  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
106 
110  inline AddOn& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
111 
115  inline AddOn& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
116 
120  inline AddOn& WithStatus(const char* value) { SetStatus(value); return *this;}
121 
122 
129  inline const Aws::String& GetSnapshotTimeOfDay() const{ return m_snapshotTimeOfDay; }
130 
137  inline bool SnapshotTimeOfDayHasBeenSet() const { return m_snapshotTimeOfDayHasBeenSet; }
138 
145  inline void SetSnapshotTimeOfDay(const Aws::String& value) { m_snapshotTimeOfDayHasBeenSet = true; m_snapshotTimeOfDay = value; }
146 
153  inline void SetSnapshotTimeOfDay(Aws::String&& value) { m_snapshotTimeOfDayHasBeenSet = true; m_snapshotTimeOfDay = std::move(value); }
154 
161  inline void SetSnapshotTimeOfDay(const char* value) { m_snapshotTimeOfDayHasBeenSet = true; m_snapshotTimeOfDay.assign(value); }
162 
169  inline AddOn& WithSnapshotTimeOfDay(const Aws::String& value) { SetSnapshotTimeOfDay(value); return *this;}
170 
177  inline AddOn& WithSnapshotTimeOfDay(Aws::String&& value) { SetSnapshotTimeOfDay(std::move(value)); return *this;}
178 
185  inline AddOn& WithSnapshotTimeOfDay(const char* value) { SetSnapshotTimeOfDay(value); return *this;}
186 
187 
194  inline const Aws::String& GetNextSnapshotTimeOfDay() const{ return m_nextSnapshotTimeOfDay; }
195 
202  inline bool NextSnapshotTimeOfDayHasBeenSet() const { return m_nextSnapshotTimeOfDayHasBeenSet; }
203 
210  inline void SetNextSnapshotTimeOfDay(const Aws::String& value) { m_nextSnapshotTimeOfDayHasBeenSet = true; m_nextSnapshotTimeOfDay = value; }
211 
218  inline void SetNextSnapshotTimeOfDay(Aws::String&& value) { m_nextSnapshotTimeOfDayHasBeenSet = true; m_nextSnapshotTimeOfDay = std::move(value); }
219 
226  inline void SetNextSnapshotTimeOfDay(const char* value) { m_nextSnapshotTimeOfDayHasBeenSet = true; m_nextSnapshotTimeOfDay.assign(value); }
227 
234  inline AddOn& WithNextSnapshotTimeOfDay(const Aws::String& value) { SetNextSnapshotTimeOfDay(value); return *this;}
235 
242  inline AddOn& WithNextSnapshotTimeOfDay(Aws::String&& value) { SetNextSnapshotTimeOfDay(std::move(value)); return *this;}
243 
250  inline AddOn& WithNextSnapshotTimeOfDay(const char* value) { SetNextSnapshotTimeOfDay(value); return *this;}
251 
252  private:
253 
254  Aws::String m_name;
255  bool m_nameHasBeenSet;
256 
257  Aws::String m_status;
258  bool m_statusHasBeenSet;
259 
260  Aws::String m_snapshotTimeOfDay;
261  bool m_snapshotTimeOfDayHasBeenSet;
262 
263  Aws::String m_nextSnapshotTimeOfDay;
264  bool m_nextSnapshotTimeOfDayHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace Lightsail
269 } // namespace Aws
Aws::Lightsail::Model::AddOn::WithName
AddOn & WithName(const char *value)
Definition: AddOn.h:79
Aws::Lightsail::Model::AddOn::SetName
void SetName(const char *value)
Definition: AddOn.h:64
Aws::Lightsail::Model::AddOn::SetSnapshotTimeOfDay
void SetSnapshotTimeOfDay(const char *value)
Definition: AddOn.h:161
Aws::Lightsail::Model::AddOn::GetStatus
const Aws::String & GetStatus() const
Definition: AddOn.h:85
Aws::Lightsail::Model::AddOn::SnapshotTimeOfDayHasBeenSet
bool SnapshotTimeOfDayHasBeenSet() const
Definition: AddOn.h:137
Aws::Lightsail::Model::AddOn::SetStatus
void SetStatus(Aws::String &&value)
Definition: AddOn.h:100
Aws::Lightsail::Model::AddOn::GetName
const Aws::String & GetName() const
Definition: AddOn.h:44
Aws::Lightsail::Model::AddOn::SetName
void SetName(const Aws::String &value)
Definition: AddOn.h:54
Aws::Lightsail::Model::AddOn::WithSnapshotTimeOfDay
AddOn & WithSnapshotTimeOfDay(Aws::String &&value)
Definition: AddOn.h:177
Aws::Lightsail::Model::AddOn::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::AddOn::operator=
AddOn & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AddOn::SetNextSnapshotTimeOfDay
void SetNextSnapshotTimeOfDay(const Aws::String &value)
Definition: AddOn.h:210
Aws::Lightsail::Model::AddOn::WithNextSnapshotTimeOfDay
AddOn & WithNextSnapshotTimeOfDay(const char *value)
Definition: AddOn.h:250
Aws::Lightsail::Model::AddOn::WithName
AddOn & WithName(const Aws::String &value)
Definition: AddOn.h:69
Aws::Lightsail::Model::AddOn::SetNextSnapshotTimeOfDay
void SetNextSnapshotTimeOfDay(Aws::String &&value)
Definition: AddOn.h:218
Aws::Lightsail::Model::AddOn::AddOn
AddOn()
Aws::Lightsail::Model::AddOn::WithName
AddOn & WithName(Aws::String &&value)
Definition: AddOn.h:74
Aws::Lightsail::Model::AddOn::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AddOn.h:49
Aws::Lightsail::Model::AddOn::SetSnapshotTimeOfDay
void SetSnapshotTimeOfDay(const Aws::String &value)
Definition: AddOn.h:145
Aws::Lightsail::Model::AddOn::WithStatus
AddOn & WithStatus(const char *value)
Definition: AddOn.h:120
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Lightsail::Model::AddOn::WithStatus
AddOn & WithStatus(const Aws::String &value)
Definition: AddOn.h:110
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::AddOn::AddOn
AddOn(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AddOn::GetNextSnapshotTimeOfDay
const Aws::String & GetNextSnapshotTimeOfDay() const
Definition: AddOn.h:194
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AddOn::WithSnapshotTimeOfDay
AddOn & WithSnapshotTimeOfDay(const Aws::String &value)
Definition: AddOn.h:169
Aws::Lightsail::Model::AddOn::SetNextSnapshotTimeOfDay
void SetNextSnapshotTimeOfDay(const char *value)
Definition: AddOn.h:226
Aws::Lightsail::Model::AddOn::SetSnapshotTimeOfDay
void SetSnapshotTimeOfDay(Aws::String &&value)
Definition: AddOn.h:153
Aws::Lightsail::Model::AddOn::WithNextSnapshotTimeOfDay
AddOn & WithNextSnapshotTimeOfDay(const Aws::String &value)
Definition: AddOn.h:234
Aws::Lightsail::Model::AddOn::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AddOn.h:90
Aws::Lightsail::Model::AddOn::WithNextSnapshotTimeOfDay
AddOn & WithNextSnapshotTimeOfDay(Aws::String &&value)
Definition: AddOn.h:242
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AddOn::SetName
void SetName(Aws::String &&value)
Definition: AddOn.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::AddOn::WithStatus
AddOn & WithStatus(Aws::String &&value)
Definition: AddOn.h:115
Aws::Lightsail::Model::AddOn::SetStatus
void SetStatus(const Aws::String &value)
Definition: AddOn.h:95
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AddOn::NextSnapshotTimeOfDayHasBeenSet
bool NextSnapshotTimeOfDayHasBeenSet() const
Definition: AddOn.h:202
Aws::Lightsail::Model::AddOn::GetSnapshotTimeOfDay
const Aws::String & GetSnapshotTimeOfDay() const
Definition: AddOn.h:129
Aws::Lightsail::Model::AddOn::WithSnapshotTimeOfDay
AddOn & WithSnapshotTimeOfDay(const char *value)
Definition: AddOn.h:185
Aws::Lightsail::Model::AddOn::SetStatus
void SetStatus(const char *value)
Definition: AddOn.h:105
Aws::Lightsail::Model::AddOn
Definition: AddOn.h:33