AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Volume.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpsWorks
22{
23namespace Model
24{
25
31 class Volume
32 {
33 public:
34 AWS_OPSWORKS_API Volume();
35 AWS_OPSWORKS_API Volume(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPSWORKS_API Volume& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
45 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
46 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
47 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
48 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
49 inline Volume& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
50 inline Volume& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
51 inline Volume& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
53
55
58 inline const Aws::String& GetEc2VolumeId() const{ return m_ec2VolumeId; }
59 inline bool Ec2VolumeIdHasBeenSet() const { return m_ec2VolumeIdHasBeenSet; }
60 inline void SetEc2VolumeId(const Aws::String& value) { m_ec2VolumeIdHasBeenSet = true; m_ec2VolumeId = value; }
61 inline void SetEc2VolumeId(Aws::String&& value) { m_ec2VolumeIdHasBeenSet = true; m_ec2VolumeId = std::move(value); }
62 inline void SetEc2VolumeId(const char* value) { m_ec2VolumeIdHasBeenSet = true; m_ec2VolumeId.assign(value); }
63 inline Volume& WithEc2VolumeId(const Aws::String& value) { SetEc2VolumeId(value); return *this;}
64 inline Volume& WithEc2VolumeId(Aws::String&& value) { SetEc2VolumeId(std::move(value)); return *this;}
65 inline Volume& WithEc2VolumeId(const char* value) { SetEc2VolumeId(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline Volume& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline Volume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline Volume& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const Aws::String& GetRaidArrayId() const{ return m_raidArrayId; }
87 inline bool RaidArrayIdHasBeenSet() const { return m_raidArrayIdHasBeenSet; }
88 inline void SetRaidArrayId(const Aws::String& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = value; }
89 inline void SetRaidArrayId(Aws::String&& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = std::move(value); }
90 inline void SetRaidArrayId(const char* value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId.assign(value); }
91 inline Volume& WithRaidArrayId(const Aws::String& value) { SetRaidArrayId(value); return *this;}
92 inline Volume& WithRaidArrayId(Aws::String&& value) { SetRaidArrayId(std::move(value)); return *this;}
93 inline Volume& WithRaidArrayId(const char* value) { SetRaidArrayId(value); return *this;}
95
97
100 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
101 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
102 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
103 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
104 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
105 inline Volume& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
106 inline Volume& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
107 inline Volume& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
109
111
115 inline const Aws::String& GetStatus() const{ return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
118 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
119 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
120 inline Volume& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
121 inline Volume& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
122 inline Volume& WithStatus(const char* value) { SetStatus(value); return *this;}
124
126
129 inline int GetSize() const{ return m_size; }
130 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
131 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
132 inline Volume& WithSize(int value) { SetSize(value); return *this;}
134
136
139 inline const Aws::String& GetDevice() const{ return m_device; }
140 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
141 inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
142 inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
143 inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
144 inline Volume& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
145 inline Volume& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
146 inline Volume& WithDevice(const char* value) { SetDevice(value); return *this;}
148
150
153 inline const Aws::String& GetMountPoint() const{ return m_mountPoint; }
154 inline bool MountPointHasBeenSet() const { return m_mountPointHasBeenSet; }
155 inline void SetMountPoint(const Aws::String& value) { m_mountPointHasBeenSet = true; m_mountPoint = value; }
156 inline void SetMountPoint(Aws::String&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::move(value); }
157 inline void SetMountPoint(const char* value) { m_mountPointHasBeenSet = true; m_mountPoint.assign(value); }
158 inline Volume& WithMountPoint(const Aws::String& value) { SetMountPoint(value); return *this;}
159 inline Volume& WithMountPoint(Aws::String&& value) { SetMountPoint(std::move(value)); return *this;}
160 inline Volume& WithMountPoint(const char* value) { SetMountPoint(value); return *this;}
162
164
170 inline const Aws::String& GetRegion() const{ return m_region; }
171 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
172 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
173 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
174 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
175 inline Volume& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
176 inline Volume& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
177 inline Volume& WithRegion(const char* value) { SetRegion(value); return *this;}
179
181
186 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
187 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
188 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
189 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
190 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
191 inline Volume& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
192 inline Volume& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
193 inline Volume& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
195
197
211 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
212 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
213 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
214 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
215 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
216 inline Volume& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
217 inline Volume& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
218 inline Volume& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
220
222
225 inline int GetIops() const{ return m_iops; }
226 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
227 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
228 inline Volume& WithIops(int value) { SetIops(value); return *this;}
230
232
238 inline bool GetEncrypted() const{ return m_encrypted; }
239 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
240 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
241 inline Volume& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
243 private:
244
245 Aws::String m_volumeId;
246 bool m_volumeIdHasBeenSet = false;
247
248 Aws::String m_ec2VolumeId;
249 bool m_ec2VolumeIdHasBeenSet = false;
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
254 Aws::String m_raidArrayId;
255 bool m_raidArrayIdHasBeenSet = false;
256
257 Aws::String m_instanceId;
258 bool m_instanceIdHasBeenSet = false;
259
260 Aws::String m_status;
261 bool m_statusHasBeenSet = false;
262
263 int m_size;
264 bool m_sizeHasBeenSet = false;
265
266 Aws::String m_device;
267 bool m_deviceHasBeenSet = false;
268
269 Aws::String m_mountPoint;
270 bool m_mountPointHasBeenSet = false;
271
272 Aws::String m_region;
273 bool m_regionHasBeenSet = false;
274
275 Aws::String m_availabilityZone;
276 bool m_availabilityZoneHasBeenSet = false;
277
278 Aws::String m_volumeType;
279 bool m_volumeTypeHasBeenSet = false;
280
281 int m_iops;
282 bool m_iopsHasBeenSet = false;
283
284 bool m_encrypted;
285 bool m_encryptedHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace OpsWorks
290} // namespace Aws
Volume & WithRaidArrayId(const Aws::String &value)
Definition Volume.h:91
Volume & WithMountPoint(const char *value)
Definition Volume.h:160
void SetDevice(const Aws::String &value)
Definition Volume.h:141
AWS_OPSWORKS_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
Volume & WithStatus(Aws::String &&value)
Definition Volume.h:121
void SetEc2VolumeId(const Aws::String &value)
Definition Volume.h:60
Volume & WithVolumeId(Aws::String &&value)
Definition Volume.h:50
Volume & WithRaidArrayId(Aws::String &&value)
Definition Volume.h:92
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAvailabilityZone() const
Definition Volume.h:186
Volume & WithAvailabilityZone(const char *value)
Definition Volume.h:193
const Aws::String & GetInstanceId() const
Definition Volume.h:100
bool VolumeTypeHasBeenSet() const
Definition Volume.h:212
void SetName(const Aws::String &value)
Definition Volume.h:74
void SetIops(int value)
Definition Volume.h:227
void SetEc2VolumeId(const char *value)
Definition Volume.h:62
void SetVolumeType(const char *value)
Definition Volume.h:215
const Aws::String & GetRaidArrayId() const
Definition Volume.h:86
Volume & WithMountPoint(const Aws::String &value)
Definition Volume.h:158
Volume & WithVolumeType(Aws::String &&value)
Definition Volume.h:217
void SetAvailabilityZone(Aws::String &&value)
Definition Volume.h:189
Volume & WithDevice(Aws::String &&value)
Definition Volume.h:145
bool EncryptedHasBeenSet() const
Definition Volume.h:239
Volume & WithEc2VolumeId(const Aws::String &value)
Definition Volume.h:63
void SetRegion(const Aws::String &value)
Definition Volume.h:172
void SetInstanceId(const char *value)
Definition Volume.h:104
Volume & WithVolumeType(const char *value)
Definition Volume.h:218
Volume & WithEc2VolumeId(const char *value)
Definition Volume.h:65
void SetMountPoint(const char *value)
Definition Volume.h:157
Volume & WithStatus(const Aws::String &value)
Definition Volume.h:120
void SetVolumeId(const Aws::String &value)
Definition Volume.h:46
void SetVolumeType(Aws::String &&value)
Definition Volume.h:214
Volume & WithInstanceId(Aws::String &&value)
Definition Volume.h:106
bool InstanceIdHasBeenSet() const
Definition Volume.h:101
Volume & WithName(const Aws::String &value)
Definition Volume.h:77
Volume & WithDevice(const Aws::String &value)
Definition Volume.h:144
void SetRaidArrayId(const char *value)
Definition Volume.h:90
const Aws::String & GetEc2VolumeId() const
Definition Volume.h:58
AWS_OPSWORKS_API Volume(Aws::Utils::Json::JsonView jsonValue)
Volume & WithRegion(const Aws::String &value)
Definition Volume.h:175
bool DeviceHasBeenSet() const
Definition Volume.h:140
void SetInstanceId(const Aws::String &value)
Definition Volume.h:102
const Aws::String & GetName() const
Definition Volume.h:72
void SetStatus(const char *value)
Definition Volume.h:119
Volume & WithVolumeType(const Aws::String &value)
Definition Volume.h:216
void SetEc2VolumeId(Aws::String &&value)
Definition Volume.h:61
Volume & WithName(const char *value)
Definition Volume.h:79
Volume & WithRaidArrayId(const char *value)
Definition Volume.h:93
Volume & WithStatus(const char *value)
Definition Volume.h:122
Volume & WithMountPoint(Aws::String &&value)
Definition Volume.h:159
void SetName(const char *value)
Definition Volume.h:76
bool SizeHasBeenSet() const
Definition Volume.h:130
const Aws::String & GetStatus() const
Definition Volume.h:115
Volume & WithInstanceId(const char *value)
Definition Volume.h:107
bool IopsHasBeenSet() const
Definition Volume.h:226
const Aws::String & GetMountPoint() const
Definition Volume.h:153
bool StatusHasBeenSet() const
Definition Volume.h:116
void SetDevice(Aws::String &&value)
Definition Volume.h:142
Volume & WithRegion(const char *value)
Definition Volume.h:177
void SetVolumeId(Aws::String &&value)
Definition Volume.h:47
Volume & WithIops(int value)
Definition Volume.h:228
Volume & WithEc2VolumeId(Aws::String &&value)
Definition Volume.h:64
void SetAvailabilityZone(const char *value)
Definition Volume.h:190
bool GetEncrypted() const
Definition Volume.h:238
void SetRaidArrayId(const Aws::String &value)
Definition Volume.h:88
void SetStatus(Aws::String &&value)
Definition Volume.h:118
void SetRaidArrayId(Aws::String &&value)
Definition Volume.h:89
bool RaidArrayIdHasBeenSet() const
Definition Volume.h:87
bool AvailabilityZoneHasBeenSet() const
Definition Volume.h:187
void SetRegion(Aws::String &&value)
Definition Volume.h:173
Volume & WithVolumeId(const Aws::String &value)
Definition Volume.h:49
Volume & WithVolumeId(const char *value)
Definition Volume.h:51
void SetMountPoint(Aws::String &&value)
Definition Volume.h:156
Volume & WithRegion(Aws::String &&value)
Definition Volume.h:176
void SetMountPoint(const Aws::String &value)
Definition Volume.h:155
Volume & WithInstanceId(const Aws::String &value)
Definition Volume.h:105
Volume & WithAvailabilityZone(Aws::String &&value)
Definition Volume.h:192
AWS_OPSWORKS_API Volume()
bool MountPointHasBeenSet() const
Definition Volume.h:154
bool NameHasBeenSet() const
Definition Volume.h:73
Volume & WithSize(int value)
Definition Volume.h:132
Volume & WithDevice(const char *value)
Definition Volume.h:146
bool VolumeIdHasBeenSet() const
Definition Volume.h:45
Volume & WithEncrypted(bool value)
Definition Volume.h:241
void SetEncrypted(bool value)
Definition Volume.h:240
void SetDevice(const char *value)
Definition Volume.h:143
void SetVolumeId(const char *value)
Definition Volume.h:48
const Aws::String & GetDevice() const
Definition Volume.h:139
const Aws::String & GetVolumeType() const
Definition Volume.h:211
void SetName(Aws::String &&value)
Definition Volume.h:75
void SetStatus(const Aws::String &value)
Definition Volume.h:117
const Aws::String & GetRegion() const
Definition Volume.h:170
void SetVolumeType(const Aws::String &value)
Definition Volume.h:213
void SetAvailabilityZone(const Aws::String &value)
Definition Volume.h:188
void SetRegion(const char *value)
Definition Volume.h:174
Volume & WithAvailabilityZone(const Aws::String &value)
Definition Volume.h:191
const Aws::String & GetVolumeId() const
Definition Volume.h:44
Volume & WithName(Aws::String &&value)
Definition Volume.h:78
bool RegionHasBeenSet() const
Definition Volume.h:171
bool Ec2VolumeIdHasBeenSet() const
Definition Volume.h:59
void SetSize(int value)
Definition Volume.h:131
void SetInstanceId(Aws::String &&value)
Definition Volume.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue