AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Disk.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 <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/DiskState.h>
14#include <aws/lightsail/model/AutoMountStatus.h>
15#include <aws/lightsail/model/Tag.h>
16#include <aws/lightsail/model/AddOn.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Lightsail
30{
31namespace Model
32{
33
39 class Disk
40 {
41 public:
42 AWS_LIGHTSAIL_API Disk();
43 AWS_LIGHTSAIL_API Disk(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LIGHTSAIL_API Disk& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline Disk& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline Disk& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline Disk& WithName(const char* value) { SetName(value); return *this;}
61
63
66 inline const Aws::String& GetArn() const{ return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
70 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
71 inline Disk& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline Disk& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline Disk& WithArn(const char* value) { SetArn(value); return *this;}
75
77
82 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
83 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
84 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
85 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
86 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
87 inline Disk& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
88 inline Disk& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
89 inline Disk& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
99 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
100 inline Disk& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
101 inline Disk& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
103
105
108 inline const ResourceLocation& GetLocation() const{ return m_location; }
109 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
110 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
111 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
112 inline Disk& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
113 inline Disk& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
115
117
120 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
121 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
122 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
123 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
124 inline Disk& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
125 inline Disk& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
127
129
135 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
138 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 inline Disk& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
140 inline Disk& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
141 inline Disk& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
142 inline Disk& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
144
146
149 inline const Aws::Vector<AddOn>& GetAddOns() const{ return m_addOns; }
150 inline bool AddOnsHasBeenSet() const { return m_addOnsHasBeenSet; }
151 inline void SetAddOns(const Aws::Vector<AddOn>& value) { m_addOnsHasBeenSet = true; m_addOns = value; }
152 inline void SetAddOns(Aws::Vector<AddOn>&& value) { m_addOnsHasBeenSet = true; m_addOns = std::move(value); }
153 inline Disk& WithAddOns(const Aws::Vector<AddOn>& value) { SetAddOns(value); return *this;}
154 inline Disk& WithAddOns(Aws::Vector<AddOn>&& value) { SetAddOns(std::move(value)); return *this;}
155 inline Disk& AddAddOns(const AddOn& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(value); return *this; }
156 inline Disk& AddAddOns(AddOn&& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(std::move(value)); return *this; }
158
160
163 inline int GetSizeInGb() const{ return m_sizeInGb; }
164 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
165 inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
166 inline Disk& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
168
170
174 inline bool GetIsSystemDisk() const{ return m_isSystemDisk; }
175 inline bool IsSystemDiskHasBeenSet() const { return m_isSystemDiskHasBeenSet; }
176 inline void SetIsSystemDisk(bool value) { m_isSystemDiskHasBeenSet = true; m_isSystemDisk = value; }
177 inline Disk& WithIsSystemDisk(bool value) { SetIsSystemDisk(value); return *this;}
179
181
184 inline int GetIops() const{ return m_iops; }
185 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
186 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
187 inline Disk& WithIops(int value) { SetIops(value); return *this;}
189
191
194 inline const Aws::String& GetPath() const{ return m_path; }
195 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
196 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
197 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
198 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
199 inline Disk& WithPath(const Aws::String& value) { SetPath(value); return *this;}
200 inline Disk& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
201 inline Disk& WithPath(const char* value) { SetPath(value); return *this;}
203
205
208 inline const DiskState& GetState() const{ return m_state; }
209 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
210 inline void SetState(const DiskState& value) { m_stateHasBeenSet = true; m_state = value; }
211 inline void SetState(DiskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
212 inline Disk& WithState(const DiskState& value) { SetState(value); return *this;}
213 inline Disk& WithState(DiskState&& value) { SetState(std::move(value)); return *this;}
215
217
220 inline const Aws::String& GetAttachedTo() const{ return m_attachedTo; }
221 inline bool AttachedToHasBeenSet() const { return m_attachedToHasBeenSet; }
222 inline void SetAttachedTo(const Aws::String& value) { m_attachedToHasBeenSet = true; m_attachedTo = value; }
223 inline void SetAttachedTo(Aws::String&& value) { m_attachedToHasBeenSet = true; m_attachedTo = std::move(value); }
224 inline void SetAttachedTo(const char* value) { m_attachedToHasBeenSet = true; m_attachedTo.assign(value); }
225 inline Disk& WithAttachedTo(const Aws::String& value) { SetAttachedTo(value); return *this;}
226 inline Disk& WithAttachedTo(Aws::String&& value) { SetAttachedTo(std::move(value)); return *this;}
227 inline Disk& WithAttachedTo(const char* value) { SetAttachedTo(value); return *this;}
229
231
234 inline bool GetIsAttached() const{ return m_isAttached; }
235 inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; }
236 inline void SetIsAttached(bool value) { m_isAttachedHasBeenSet = true; m_isAttached = value; }
237 inline Disk& WithIsAttached(bool value) { SetIsAttached(value); return *this;}
239
241
246 inline const AutoMountStatus& GetAutoMountStatus() const{ return m_autoMountStatus; }
247 inline bool AutoMountStatusHasBeenSet() const { return m_autoMountStatusHasBeenSet; }
248 inline void SetAutoMountStatus(const AutoMountStatus& value) { m_autoMountStatusHasBeenSet = true; m_autoMountStatus = value; }
249 inline void SetAutoMountStatus(AutoMountStatus&& value) { m_autoMountStatusHasBeenSet = true; m_autoMountStatus = std::move(value); }
250 inline Disk& WithAutoMountStatus(const AutoMountStatus& value) { SetAutoMountStatus(value); return *this;}
251 inline Disk& WithAutoMountStatus(AutoMountStatus&& value) { SetAutoMountStatus(std::move(value)); return *this;}
253 private:
254
255 Aws::String m_name;
256 bool m_nameHasBeenSet = false;
257
258 Aws::String m_arn;
259 bool m_arnHasBeenSet = false;
260
261 Aws::String m_supportCode;
262 bool m_supportCodeHasBeenSet = false;
263
264 Aws::Utils::DateTime m_createdAt;
265 bool m_createdAtHasBeenSet = false;
266
267 ResourceLocation m_location;
268 bool m_locationHasBeenSet = false;
269
270 ResourceType m_resourceType;
271 bool m_resourceTypeHasBeenSet = false;
272
273 Aws::Vector<Tag> m_tags;
274 bool m_tagsHasBeenSet = false;
275
276 Aws::Vector<AddOn> m_addOns;
277 bool m_addOnsHasBeenSet = false;
278
279 int m_sizeInGb;
280 bool m_sizeInGbHasBeenSet = false;
281
282 bool m_isSystemDisk;
283 bool m_isSystemDiskHasBeenSet = false;
284
285 int m_iops;
286 bool m_iopsHasBeenSet = false;
287
288 Aws::String m_path;
289 bool m_pathHasBeenSet = false;
290
291 DiskState m_state;
292 bool m_stateHasBeenSet = false;
293
294 Aws::String m_attachedTo;
295 bool m_attachedToHasBeenSet = false;
296
297 bool m_isAttached;
298 bool m_isAttachedHasBeenSet = false;
299
300 AutoMountStatus m_autoMountStatus;
301 bool m_autoMountStatusHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace Lightsail
306} // namespace Aws
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Disk.h:98
Disk & WithAddOns(const Aws::Vector< AddOn > &value)
Definition Disk.h:153
const Aws::String & GetPath() const
Definition Disk.h:194
void SetSupportCode(const char *value)
Definition Disk.h:86
Disk & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Disk.h:100
AWS_LIGHTSAIL_API Disk(Aws::Utils::Json::JsonView jsonValue)
Disk & WithName(const Aws::String &value)
Definition Disk.h:57
Disk & WithState(DiskState &&value)
Definition Disk.h:213
AWS_LIGHTSAIL_API Disk & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSupportCode(Aws::String &&value)
Definition Disk.h:85
const Aws::String & GetAttachedTo() const
Definition Disk.h:220
bool AutoMountStatusHasBeenSet() const
Definition Disk.h:247
bool TagsHasBeenSet() const
Definition Disk.h:136
bool AddOnsHasBeenSet() const
Definition Disk.h:150
void SetResourceType(ResourceType &&value)
Definition Disk.h:123
void SetIsSystemDisk(bool value)
Definition Disk.h:176
void SetSupportCode(const Aws::String &value)
Definition Disk.h:84
const Aws::String & GetName() const
Definition Disk.h:52
void SetAttachedTo(const Aws::String &value)
Definition Disk.h:222
Disk & AddAddOns(AddOn &&value)
Definition Disk.h:156
Disk & WithAttachedTo(Aws::String &&value)
Definition Disk.h:226
bool IsSystemDiskHasBeenSet() const
Definition Disk.h:175
Disk & WithSupportCode(const char *value)
Definition Disk.h:89
const Aws::String & GetSupportCode() const
Definition Disk.h:82
Disk & WithTags(const Aws::Vector< Tag > &value)
Definition Disk.h:139
void SetAutoMountStatus(AutoMountStatus &&value)
Definition Disk.h:249
bool IsAttachedHasBeenSet() const
Definition Disk.h:235
bool AttachedToHasBeenSet() const
Definition Disk.h:221
Disk & WithSupportCode(const Aws::String &value)
Definition Disk.h:87
void SetAddOns(const Aws::Vector< AddOn > &value)
Definition Disk.h:151
Disk & WithAttachedTo(const Aws::String &value)
Definition Disk.h:225
Disk & WithArn(Aws::String &&value)
Definition Disk.h:72
Disk & WithResourceType(ResourceType &&value)
Definition Disk.h:125
bool SupportCodeHasBeenSet() const
Definition Disk.h:83
bool PathHasBeenSet() const
Definition Disk.h:195
Disk & WithName(const char *value)
Definition Disk.h:59
void SetName(Aws::String &&value)
Definition Disk.h:55
bool IopsHasBeenSet() const
Definition Disk.h:185
bool GetIsSystemDisk() const
Definition Disk.h:174
const Aws::Vector< Tag > & GetTags() const
Definition Disk.h:135
Disk & AddTags(Tag &&value)
Definition Disk.h:142
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Disk.h:96
bool NameHasBeenSet() const
Definition Disk.h:53
bool ResourceTypeHasBeenSet() const
Definition Disk.h:121
Disk & WithLocation(ResourceLocation &&value)
Definition Disk.h:113
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Disk.h:99
Disk & WithSupportCode(Aws::String &&value)
Definition Disk.h:88
int GetSizeInGb() const
Definition Disk.h:163
void SetAttachedTo(Aws::String &&value)
Definition Disk.h:223
void SetAutoMountStatus(const AutoMountStatus &value)
Definition Disk.h:248
Disk & WithIops(int value)
Definition Disk.h:187
void SetPath(const Aws::String &value)
Definition Disk.h:196
void SetState(DiskState &&value)
Definition Disk.h:211
bool SizeInGbHasBeenSet() const
Definition Disk.h:164
void SetLocation(const ResourceLocation &value)
Definition Disk.h:110
bool LocationHasBeenSet() const
Definition Disk.h:109
Disk & WithName(Aws::String &&value)
Definition Disk.h:58
Disk & WithPath(const Aws::String &value)
Definition Disk.h:199
void SetIsAttached(bool value)
Definition Disk.h:236
Disk & WithSizeInGb(int value)
Definition Disk.h:166
Disk & WithResourceType(const ResourceType &value)
Definition Disk.h:124
void SetState(const DiskState &value)
Definition Disk.h:210
void SetPath(Aws::String &&value)
Definition Disk.h:197
void SetTags(const Aws::Vector< Tag > &value)
Definition Disk.h:137
void SetArn(const Aws::String &value)
Definition Disk.h:68
void SetArn(Aws::String &&value)
Definition Disk.h:69
Disk & WithIsSystemDisk(bool value)
Definition Disk.h:177
Disk & WithIsAttached(bool value)
Definition Disk.h:237
void SetTags(Aws::Vector< Tag > &&value)
Definition Disk.h:138
Disk & WithAddOns(Aws::Vector< AddOn > &&value)
Definition Disk.h:154
const DiskState & GetState() const
Definition Disk.h:208
void SetName(const char *value)
Definition Disk.h:56
const Aws::String & GetArn() const
Definition Disk.h:66
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API Disk()
void SetName(const Aws::String &value)
Definition Disk.h:54
const ResourceType & GetResourceType() const
Definition Disk.h:120
void SetPath(const char *value)
Definition Disk.h:198
bool StateHasBeenSet() const
Definition Disk.h:209
void SetIops(int value)
Definition Disk.h:186
void SetSizeInGb(int value)
Definition Disk.h:165
const ResourceLocation & GetLocation() const
Definition Disk.h:108
void SetLocation(ResourceLocation &&value)
Definition Disk.h:111
Disk & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Disk.h:101
Disk & AddTags(const Tag &value)
Definition Disk.h:141
Disk & WithTags(Aws::Vector< Tag > &&value)
Definition Disk.h:140
void SetArn(const char *value)
Definition Disk.h:70
bool GetIsAttached() const
Definition Disk.h:234
Disk & WithArn(const char *value)
Definition Disk.h:73
Disk & WithLocation(const ResourceLocation &value)
Definition Disk.h:112
Disk & WithAutoMountStatus(const AutoMountStatus &value)
Definition Disk.h:250
void SetAddOns(Aws::Vector< AddOn > &&value)
Definition Disk.h:152
Disk & AddAddOns(const AddOn &value)
Definition Disk.h:155
Disk & WithAttachedTo(const char *value)
Definition Disk.h:227
const AutoMountStatus & GetAutoMountStatus() const
Definition Disk.h:246
Disk & WithAutoMountStatus(AutoMountStatus &&value)
Definition Disk.h:251
bool ArnHasBeenSet() const
Definition Disk.h:67
Disk & WithPath(Aws::String &&value)
Definition Disk.h:200
void SetResourceType(const ResourceType &value)
Definition Disk.h:122
Disk & WithPath(const char *value)
Definition Disk.h:201
bool CreatedAtHasBeenSet() const
Definition Disk.h:97
Disk & WithState(const DiskState &value)
Definition Disk.h:212
void SetAttachedTo(const char *value)
Definition Disk.h:224
const Aws::Vector< AddOn > & GetAddOns() const
Definition Disk.h:149
Disk & WithArn(const Aws::String &value)
Definition Disk.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue