AWS SDK for C++  1.9.105
AWS SDK for C++
EbsBlockDevice.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 OpsWorks
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
48 
52  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
53 
57  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
58 
62  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
63 
67  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
68 
72  inline EbsBlockDevice& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
73 
77  inline EbsBlockDevice& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
78 
82  inline EbsBlockDevice& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
83 
84 
90  inline int GetIops() const{ return m_iops; }
91 
97  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
98 
104  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
105 
111  inline EbsBlockDevice& WithIops(int value) { SetIops(value); return *this;}
112 
113 
118  inline int GetVolumeSize() const{ return m_volumeSize; }
119 
124  inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
125 
130  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
131 
136  inline EbsBlockDevice& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
137 
138 
149  inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
150 
161  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
162 
173  inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
174 
185  inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
186 
197  inline EbsBlockDevice& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
198 
209  inline EbsBlockDevice& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
210 
211 
215  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
216 
220  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
221 
225  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
226 
230  inline EbsBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
231 
232  private:
233 
234  Aws::String m_snapshotId;
235  bool m_snapshotIdHasBeenSet;
236 
237  int m_iops;
238  bool m_iopsHasBeenSet;
239 
240  int m_volumeSize;
241  bool m_volumeSizeHasBeenSet;
242 
243  VolumeType m_volumeType;
244  bool m_volumeTypeHasBeenSet;
245 
246  bool m_deleteOnTermination;
247  bool m_deleteOnTerminationHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace OpsWorks
252 } // namespace Aws
Aws::OpsWorks::Model::EbsBlockDevice::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: EbsBlockDevice.h:62
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::EbsBlockDevice::WithDeleteOnTermination
EbsBlockDevice & WithDeleteOnTermination(bool value)
Definition: EbsBlockDevice.h:230
Aws::OpsWorks::Model::EbsBlockDevice::SetVolumeSize
void SetVolumeSize(int value)
Definition: EbsBlockDevice.h:130
Aws::OpsWorks::Model::EbsBlockDevice::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: EbsBlockDevice.h:97
Aws::OpsWorks::Model::EbsBlockDevice::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: EbsBlockDevice.h:225
Aws::OpsWorks::Model::EbsBlockDevice::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: EbsBlockDevice.h:161
Aws::OpsWorks::Model::EbsBlockDevice::SetVolumeType
void SetVolumeType(VolumeType &&value)
Definition: EbsBlockDevice.h:185
Aws::OpsWorks::Model::EbsBlockDevice::WithVolumeType
EbsBlockDevice & WithVolumeType(VolumeType &&value)
Definition: EbsBlockDevice.h:209
Aws::OpsWorks::Model::VolumeType
VolumeType
Definition: VolumeType.h:17
Aws::OpsWorks::Model::EbsBlockDevice::WithVolumeSize
EbsBlockDevice & WithVolumeSize(int value)
Definition: EbsBlockDevice.h:136
Aws::OpsWorks::Model::EbsBlockDevice::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: EbsBlockDevice.h:57
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::EbsBlockDevice::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::EbsBlockDevice::WithVolumeType
EbsBlockDevice & WithVolumeType(const VolumeType &value)
Definition: EbsBlockDevice.h:197
Aws::OpsWorks::Model::EbsBlockDevice::EbsBlockDevice
EbsBlockDevice()
Aws::OpsWorks::Model::EbsBlockDevice::WithSnapshotId
EbsBlockDevice & WithSnapshotId(const char *value)
Definition: EbsBlockDevice.h:82
Aws::OpsWorks::Model::EbsBlockDevice::EbsBlockDevice
EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::EbsBlockDevice::WithIops
EbsBlockDevice & WithIops(int value)
Definition: EbsBlockDevice.h:111
Aws::OpsWorks::Model::EbsBlockDevice::operator=
EbsBlockDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::EbsBlockDevice::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: EbsBlockDevice.h:52
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::EbsBlockDevice::GetVolumeSize
int GetVolumeSize() const
Definition: EbsBlockDevice.h:118
Aws::OpsWorks::Model::EbsBlockDevice::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: EbsBlockDevice.h:47
VolumeType.h
Aws::OpsWorks::Model::EbsBlockDevice::GetVolumeType
const VolumeType & GetVolumeType() const
Definition: EbsBlockDevice.h:149
Aws::OpsWorks::Model::EbsBlockDevice::SetIops
void SetIops(int value)
Definition: EbsBlockDevice.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::EbsBlockDevice::WithSnapshotId
EbsBlockDevice & WithSnapshotId(Aws::String &&value)
Definition: EbsBlockDevice.h:77
Aws::OpsWorks::Model::EbsBlockDevice
Definition: EbsBlockDevice.h:36
Aws::OpsWorks::Model::EbsBlockDevice::SetVolumeType
void SetVolumeType(const VolumeType &value)
Definition: EbsBlockDevice.h:173
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::EbsBlockDevice::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: EbsBlockDevice.h:215
Aws::OpsWorks::Model::EbsBlockDevice::VolumeSizeHasBeenSet
bool VolumeSizeHasBeenSet() const
Definition: EbsBlockDevice.h:124
Aws::OpsWorks::Model::EbsBlockDevice::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: EbsBlockDevice.h:67
Aws::OpsWorks::Model::EbsBlockDevice::WithSnapshotId
EbsBlockDevice & WithSnapshotId(const Aws::String &value)
Definition: EbsBlockDevice.h:72
Aws::OpsWorks::Model::EbsBlockDevice::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: EbsBlockDevice.h:220
Aws::OpsWorks::Model::EbsBlockDevice::GetIops
int GetIops() const
Definition: EbsBlockDevice.h:90