AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename VolumeIdT = Aws::String>
47 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
48 template<typename VolumeIdT = Aws::String>
49 Volume& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetEc2VolumeId() const { return m_ec2VolumeId; }
57 inline bool Ec2VolumeIdHasBeenSet() const { return m_ec2VolumeIdHasBeenSet; }
58 template<typename Ec2VolumeIdT = Aws::String>
59 void SetEc2VolumeId(Ec2VolumeIdT&& value) { m_ec2VolumeIdHasBeenSet = true; m_ec2VolumeId = std::forward<Ec2VolumeIdT>(value); }
60 template<typename Ec2VolumeIdT = Aws::String>
61 Volume& WithEc2VolumeId(Ec2VolumeIdT&& value) { SetEc2VolumeId(std::forward<Ec2VolumeIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 Volume& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetRaidArrayId() const { return m_raidArrayId; }
81 inline bool RaidArrayIdHasBeenSet() const { return m_raidArrayIdHasBeenSet; }
82 template<typename RaidArrayIdT = Aws::String>
83 void SetRaidArrayId(RaidArrayIdT&& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = std::forward<RaidArrayIdT>(value); }
84 template<typename RaidArrayIdT = Aws::String>
85 Volume& WithRaidArrayId(RaidArrayIdT&& value) { SetRaidArrayId(std::forward<RaidArrayIdT>(value)); return *this;}
87
89
92 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
93 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
94 template<typename InstanceIdT = Aws::String>
95 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
96 template<typename InstanceIdT = Aws::String>
97 Volume& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
99
101
105 inline const Aws::String& GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 template<typename StatusT = Aws::String>
108 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
109 template<typename StatusT = Aws::String>
110 Volume& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
112
114
117 inline int GetSize() const { return m_size; }
118 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
119 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
120 inline Volume& WithSize(int value) { SetSize(value); return *this;}
122
124
127 inline const Aws::String& GetDevice() const { return m_device; }
128 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
129 template<typename DeviceT = Aws::String>
130 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
131 template<typename DeviceT = Aws::String>
132 Volume& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
134
136
139 inline const Aws::String& GetMountPoint() const { return m_mountPoint; }
140 inline bool MountPointHasBeenSet() const { return m_mountPointHasBeenSet; }
141 template<typename MountPointT = Aws::String>
142 void SetMountPoint(MountPointT&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::forward<MountPointT>(value); }
143 template<typename MountPointT = Aws::String>
144 Volume& WithMountPoint(MountPointT&& value) { SetMountPoint(std::forward<MountPointT>(value)); return *this;}
146
148
154 inline const Aws::String& GetRegion() const { return m_region; }
155 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
156 template<typename RegionT = Aws::String>
157 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
158 template<typename RegionT = Aws::String>
159 Volume& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
161
163
168 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
169 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
170 template<typename AvailabilityZoneT = Aws::String>
171 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
172 template<typename AvailabilityZoneT = Aws::String>
173 Volume& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
175
177
191 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
192 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
193 template<typename VolumeTypeT = Aws::String>
194 void SetVolumeType(VolumeTypeT&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
195 template<typename VolumeTypeT = Aws::String>
196 Volume& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
198
200
203 inline int GetIops() const { return m_iops; }
204 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
205 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
206 inline Volume& WithIops(int value) { SetIops(value); return *this;}
208
210
216 inline bool GetEncrypted() const { return m_encrypted; }
217 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
218 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
219 inline Volume& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
221 private:
222
223 Aws::String m_volumeId;
224 bool m_volumeIdHasBeenSet = false;
225
226 Aws::String m_ec2VolumeId;
227 bool m_ec2VolumeIdHasBeenSet = false;
228
229 Aws::String m_name;
230 bool m_nameHasBeenSet = false;
231
232 Aws::String m_raidArrayId;
233 bool m_raidArrayIdHasBeenSet = false;
234
235 Aws::String m_instanceId;
236 bool m_instanceIdHasBeenSet = false;
237
238 Aws::String m_status;
239 bool m_statusHasBeenSet = false;
240
241 int m_size{0};
242 bool m_sizeHasBeenSet = false;
243
244 Aws::String m_device;
245 bool m_deviceHasBeenSet = false;
246
247 Aws::String m_mountPoint;
248 bool m_mountPointHasBeenSet = false;
249
250 Aws::String m_region;
251 bool m_regionHasBeenSet = false;
252
253 Aws::String m_availabilityZone;
254 bool m_availabilityZoneHasBeenSet = false;
255
256 Aws::String m_volumeType;
257 bool m_volumeTypeHasBeenSet = false;
258
259 int m_iops{0};
260 bool m_iopsHasBeenSet = false;
261
262 bool m_encrypted{false};
263 bool m_encryptedHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace OpsWorks
268} // namespace Aws
Volume & WithName(NameT &&value)
Definition Volume.h:73
AWS_OPSWORKS_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEc2VolumeId(Ec2VolumeIdT &&value)
Definition Volume.h:59
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAvailabilityZone() const
Definition Volume.h:168
Volume & WithDevice(DeviceT &&value)
Definition Volume.h:132
Volume & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Volume.h:173
Volume & WithInstanceId(InstanceIdT &&value)
Definition Volume.h:97
const Aws::String & GetInstanceId() const
Definition Volume.h:92
bool VolumeTypeHasBeenSet() const
Definition Volume.h:192
void SetIops(int value)
Definition Volume.h:205
void SetDevice(DeviceT &&value)
Definition Volume.h:130
Volume & WithRaidArrayId(RaidArrayIdT &&value)
Definition Volume.h:85
const Aws::String & GetRaidArrayId() const
Definition Volume.h:80
bool EncryptedHasBeenSet() const
Definition Volume.h:217
void SetInstanceId(InstanceIdT &&value)
Definition Volume.h:95
Volume & WithVolumeType(VolumeTypeT &&value)
Definition Volume.h:196
bool InstanceIdHasBeenSet() const
Definition Volume.h:93
const Aws::String & GetEc2VolumeId() const
Definition Volume.h:56
AWS_OPSWORKS_API Volume(Aws::Utils::Json::JsonView jsonValue)
bool DeviceHasBeenSet() const
Definition Volume.h:128
const Aws::String & GetName() const
Definition Volume.h:68
Volume & WithEc2VolumeId(Ec2VolumeIdT &&value)
Definition Volume.h:61
Volume & WithStatus(StatusT &&value)
Definition Volume.h:110
bool SizeHasBeenSet() const
Definition Volume.h:118
const Aws::String & GetStatus() const
Definition Volume.h:105
Volume & WithVolumeId(VolumeIdT &&value)
Definition Volume.h:49
bool IopsHasBeenSet() const
Definition Volume.h:204
void SetRegion(RegionT &&value)
Definition Volume.h:157
const Aws::String & GetMountPoint() const
Definition Volume.h:139
bool StatusHasBeenSet() const
Definition Volume.h:106
Volume & WithIops(int value)
Definition Volume.h:206
bool GetEncrypted() const
Definition Volume.h:216
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Volume.h:171
void SetName(NameT &&value)
Definition Volume.h:71
bool RaidArrayIdHasBeenSet() const
Definition Volume.h:81
bool AvailabilityZoneHasBeenSet() const
Definition Volume.h:169
AWS_OPSWORKS_API Volume()=default
Volume & WithMountPoint(MountPointT &&value)
Definition Volume.h:144
bool MountPointHasBeenSet() const
Definition Volume.h:140
bool NameHasBeenSet() const
Definition Volume.h:69
void SetVolumeType(VolumeTypeT &&value)
Definition Volume.h:194
Volume & WithSize(int value)
Definition Volume.h:120
bool VolumeIdHasBeenSet() const
Definition Volume.h:45
Volume & WithEncrypted(bool value)
Definition Volume.h:219
void SetEncrypted(bool value)
Definition Volume.h:218
const Aws::String & GetDevice() const
Definition Volume.h:127
const Aws::String & GetVolumeType() const
Definition Volume.h:191
void SetVolumeId(VolumeIdT &&value)
Definition Volume.h:47
const Aws::String & GetRegion() const
Definition Volume.h:154
const Aws::String & GetVolumeId() const
Definition Volume.h:44
void SetStatus(StatusT &&value)
Definition Volume.h:108
bool RegionHasBeenSet() const
Definition Volume.h:155
bool Ec2VolumeIdHasBeenSet() const
Definition Volume.h:57
void SetSize(int value)
Definition Volume.h:119
Volume & WithRegion(RegionT &&value)
Definition Volume.h:159
void SetMountPoint(MountPointT &&value)
Definition Volume.h:142
void SetRaidArrayId(RaidArrayIdT &&value)
Definition Volume.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue