AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VolumeConfiguration.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
32 {
33 public:
34 AWS_OPSWORKS_API VolumeConfiguration() = default;
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetMountPoint() const { return m_mountPoint; }
45 inline bool MountPointHasBeenSet() const { return m_mountPointHasBeenSet; }
46 template<typename MountPointT = Aws::String>
47 void SetMountPoint(MountPointT&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::forward<MountPointT>(value); }
48 template<typename MountPointT = Aws::String>
49 VolumeConfiguration& WithMountPoint(MountPointT&& value) { SetMountPoint(std::forward<MountPointT>(value)); return *this;}
51
53
57 inline int GetRaidLevel() const { return m_raidLevel; }
58 inline bool RaidLevelHasBeenSet() const { return m_raidLevelHasBeenSet; }
59 inline void SetRaidLevel(int value) { m_raidLevelHasBeenSet = true; m_raidLevel = value; }
60 inline VolumeConfiguration& WithRaidLevel(int value) { SetRaidLevel(value); return *this;}
62
64
67 inline int GetNumberOfDisks() const { return m_numberOfDisks; }
68 inline bool NumberOfDisksHasBeenSet() const { return m_numberOfDisksHasBeenSet; }
69 inline void SetNumberOfDisks(int value) { m_numberOfDisksHasBeenSet = true; m_numberOfDisks = value; }
70 inline VolumeConfiguration& WithNumberOfDisks(int value) { SetNumberOfDisks(value); return *this;}
72
74
77 inline int GetSize() const { return m_size; }
78 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
79 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
80 inline VolumeConfiguration& WithSize(int value) { SetSize(value); return *this;}
82
84
98 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
99 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
100 template<typename VolumeTypeT = Aws::String>
101 void SetVolumeType(VolumeTypeT&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
102 template<typename VolumeTypeT = Aws::String>
103 VolumeConfiguration& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
105
107
110 inline int GetIops() const { return m_iops; }
111 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
112 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
113 inline VolumeConfiguration& WithIops(int value) { SetIops(value); return *this;}
115
117
123 inline bool GetEncrypted() const { return m_encrypted; }
124 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
125 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
126 inline VolumeConfiguration& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
128 private:
129
130 Aws::String m_mountPoint;
131 bool m_mountPointHasBeenSet = false;
132
133 int m_raidLevel{0};
134 bool m_raidLevelHasBeenSet = false;
135
136 int m_numberOfDisks{0};
137 bool m_numberOfDisksHasBeenSet = false;
138
139 int m_size{0};
140 bool m_sizeHasBeenSet = false;
141
142 Aws::String m_volumeType;
143 bool m_volumeTypeHasBeenSet = false;
144
145 int m_iops{0};
146 bool m_iopsHasBeenSet = false;
147
148 bool m_encrypted{false};
149 bool m_encryptedHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace OpsWorks
154} // namespace Aws
VolumeConfiguration & WithSize(int value)
VolumeConfiguration & WithNumberOfDisks(int value)
VolumeConfiguration & WithIops(int value)
AWS_OPSWORKS_API VolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API VolumeConfiguration()=default
VolumeConfiguration & WithMountPoint(MountPointT &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
VolumeConfiguration & WithEncrypted(bool value)
AWS_OPSWORKS_API VolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
VolumeConfiguration & WithRaidLevel(int value)
VolumeConfiguration & WithVolumeType(VolumeTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue