AWS SDK for C++  1.9.105
AWS SDK for C++
VolumeConfiguration.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 OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetMountPoint() const{ return m_mountPoint; }
44 
48  inline bool MountPointHasBeenSet() const { return m_mountPointHasBeenSet; }
49 
53  inline void SetMountPoint(const Aws::String& value) { m_mountPointHasBeenSet = true; m_mountPoint = value; }
54 
58  inline void SetMountPoint(Aws::String&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::move(value); }
59 
63  inline void SetMountPoint(const char* value) { m_mountPointHasBeenSet = true; m_mountPoint.assign(value); }
64 
68  inline VolumeConfiguration& WithMountPoint(const Aws::String& value) { SetMountPoint(value); return *this;}
69 
73  inline VolumeConfiguration& WithMountPoint(Aws::String&& value) { SetMountPoint(std::move(value)); return *this;}
74 
78  inline VolumeConfiguration& WithMountPoint(const char* value) { SetMountPoint(value); return *this;}
79 
80 
85  inline int GetRaidLevel() const{ return m_raidLevel; }
86 
91  inline bool RaidLevelHasBeenSet() const { return m_raidLevelHasBeenSet; }
92 
97  inline void SetRaidLevel(int value) { m_raidLevelHasBeenSet = true; m_raidLevel = value; }
98 
103  inline VolumeConfiguration& WithRaidLevel(int value) { SetRaidLevel(value); return *this;}
104 
105 
109  inline int GetNumberOfDisks() const{ return m_numberOfDisks; }
110 
114  inline bool NumberOfDisksHasBeenSet() const { return m_numberOfDisksHasBeenSet; }
115 
119  inline void SetNumberOfDisks(int value) { m_numberOfDisksHasBeenSet = true; m_numberOfDisks = value; }
120 
124  inline VolumeConfiguration& WithNumberOfDisks(int value) { SetNumberOfDisks(value); return *this;}
125 
126 
130  inline int GetSize() const{ return m_size; }
131 
135  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
136 
140  inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
141 
145  inline VolumeConfiguration& WithSize(int value) { SetSize(value); return *this;}
146 
147 
162  inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
163 
178  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
179 
194  inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
195 
210  inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
211 
226  inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
227 
242  inline VolumeConfiguration& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
243 
258  inline VolumeConfiguration& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
259 
274  inline VolumeConfiguration& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
275 
276 
280  inline int GetIops() const{ return m_iops; }
281 
285  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
286 
290  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
291 
295  inline VolumeConfiguration& WithIops(int value) { SetIops(value); return *this;}
296 
297 
304  inline bool GetEncrypted() const{ return m_encrypted; }
305 
312  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
313 
320  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
321 
328  inline VolumeConfiguration& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
329 
330  private:
331 
332  Aws::String m_mountPoint;
333  bool m_mountPointHasBeenSet;
334 
335  int m_raidLevel;
336  bool m_raidLevelHasBeenSet;
337 
338  int m_numberOfDisks;
339  bool m_numberOfDisksHasBeenSet;
340 
341  int m_size;
342  bool m_sizeHasBeenSet;
343 
344  Aws::String m_volumeType;
345  bool m_volumeTypeHasBeenSet;
346 
347  int m_iops;
348  bool m_iopsHasBeenSet;
349 
350  bool m_encrypted;
351  bool m_encryptedHasBeenSet;
352  };
353 
354 } // namespace Model
355 } // namespace OpsWorks
356 } // namespace Aws
Aws::OpsWorks::Model::VolumeConfiguration::SetIops
void SetIops(int value)
Definition: VolumeConfiguration.h:290
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::VolumeConfiguration::SetVolumeType
void SetVolumeType(Aws::String &&value)
Definition: VolumeConfiguration.h:210
Aws::OpsWorks::Model::VolumeConfiguration::WithMountPoint
VolumeConfiguration & WithMountPoint(const char *value)
Definition: VolumeConfiguration.h:78
Aws::OpsWorks::Model::VolumeConfiguration::WithMountPoint
VolumeConfiguration & WithMountPoint(const Aws::String &value)
Definition: VolumeConfiguration.h:68
Aws::OpsWorks::Model::VolumeConfiguration::WithRaidLevel
VolumeConfiguration & WithRaidLevel(int value)
Definition: VolumeConfiguration.h:103
Aws::OpsWorks::Model::VolumeConfiguration::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: VolumeConfiguration.h:285
Aws::OpsWorks::Model::VolumeConfiguration::SetMountPoint
void SetMountPoint(const Aws::String &value)
Definition: VolumeConfiguration.h:53
Aws::OpsWorks::Model::VolumeConfiguration::WithVolumeType
VolumeConfiguration & WithVolumeType(const Aws::String &value)
Definition: VolumeConfiguration.h:242
Aws::OpsWorks::Model::VolumeConfiguration::WithVolumeType
VolumeConfiguration & WithVolumeType(Aws::String &&value)
Definition: VolumeConfiguration.h:258
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::VolumeConfiguration::GetIops
int GetIops() const
Definition: VolumeConfiguration.h:280
Aws::OpsWorks::Model::VolumeConfiguration::GetVolumeType
const Aws::String & GetVolumeType() const
Definition: VolumeConfiguration.h:162
Aws::OpsWorks::Model::VolumeConfiguration::MountPointHasBeenSet
bool MountPointHasBeenSet() const
Definition: VolumeConfiguration.h:48
Aws::OpsWorks::Model::VolumeConfiguration::RaidLevelHasBeenSet
bool RaidLevelHasBeenSet() const
Definition: VolumeConfiguration.h:91
Aws::OpsWorks::Model::VolumeConfiguration::SetRaidLevel
void SetRaidLevel(int value)
Definition: VolumeConfiguration.h:97
Aws::OpsWorks::Model::VolumeConfiguration::WithEncrypted
VolumeConfiguration & WithEncrypted(bool value)
Definition: VolumeConfiguration.h:328
Aws::OpsWorks::Model::VolumeConfiguration::WithSize
VolumeConfiguration & WithSize(int value)
Definition: VolumeConfiguration.h:145
Aws::OpsWorks::Model::VolumeConfiguration::VolumeConfiguration
VolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::VolumeConfiguration::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: VolumeConfiguration.h:135
Aws::OpsWorks::Model::VolumeConfiguration::WithMountPoint
VolumeConfiguration & WithMountPoint(Aws::String &&value)
Definition: VolumeConfiguration.h:73
Aws::OpsWorks::Model::VolumeConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::VolumeConfiguration::GetMountPoint
const Aws::String & GetMountPoint() const
Definition: VolumeConfiguration.h:43
Aws::OpsWorks::Model::VolumeConfiguration::SetEncrypted
void SetEncrypted(bool value)
Definition: VolumeConfiguration.h:320
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::VolumeConfiguration::SetVolumeType
void SetVolumeType(const char *value)
Definition: VolumeConfiguration.h:226
Aws::OpsWorks::Model::VolumeConfiguration::SetSize
void SetSize(int value)
Definition: VolumeConfiguration.h:140
Aws::OpsWorks::Model::VolumeConfiguration::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: VolumeConfiguration.h:178
Aws::OpsWorks::Model::VolumeConfiguration::SetMountPoint
void SetMountPoint(Aws::String &&value)
Definition: VolumeConfiguration.h:58
Aws::OpsWorks::Model::VolumeConfiguration::SetMountPoint
void SetMountPoint(const char *value)
Definition: VolumeConfiguration.h:63
Aws::OpsWorks::Model::VolumeConfiguration::GetEncrypted
bool GetEncrypted() const
Definition: VolumeConfiguration.h:304
Aws::OpsWorks::Model::VolumeConfiguration::SetNumberOfDisks
void SetNumberOfDisks(int value)
Definition: VolumeConfiguration.h:119
Aws::OpsWorks::Model::VolumeConfiguration::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: VolumeConfiguration.h:312
Aws::OpsWorks::Model::VolumeConfiguration::GetSize
int GetSize() const
Definition: VolumeConfiguration.h:130
Aws::OpsWorks::Model::VolumeConfiguration::VolumeConfiguration
VolumeConfiguration()
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::VolumeConfiguration::GetRaidLevel
int GetRaidLevel() const
Definition: VolumeConfiguration.h:85
Aws::OpsWorks::Model::VolumeConfiguration::SetVolumeType
void SetVolumeType(const Aws::String &value)
Definition: VolumeConfiguration.h:194
Aws::OpsWorks::Model::VolumeConfiguration::operator=
VolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::VolumeConfiguration::GetNumberOfDisks
int GetNumberOfDisks() const
Definition: VolumeConfiguration.h:109
Aws::OpsWorks::Model::VolumeConfiguration::WithIops
VolumeConfiguration & WithIops(int value)
Definition: VolumeConfiguration.h:295
Aws::OpsWorks::Model::VolumeConfiguration::WithVolumeType
VolumeConfiguration & WithVolumeType(const char *value)
Definition: VolumeConfiguration.h:274
Aws::OpsWorks::Model::VolumeConfiguration
Definition: VolumeConfiguration.h:32
Aws::OpsWorks::Model::VolumeConfiguration::NumberOfDisksHasBeenSet
bool NumberOfDisksHasBeenSet() const
Definition: VolumeConfiguration.h:114
Aws::OpsWorks::Model::VolumeConfiguration::WithNumberOfDisks
VolumeConfiguration & WithNumberOfDisks(int value)
Definition: VolumeConfiguration.h:124