AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMountPoint(const Aws::String& value) { m_mountPointHasBeenSet = true; m_mountPoint = value; }
47 inline void SetMountPoint(Aws::String&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::move(value); }
48 inline void SetMountPoint(const char* value) { m_mountPointHasBeenSet = true; m_mountPoint.assign(value); }
49 inline VolumeConfiguration& WithMountPoint(const Aws::String& value) { SetMountPoint(value); return *this;}
50 inline VolumeConfiguration& WithMountPoint(Aws::String&& value) { SetMountPoint(std::move(value)); return *this;}
51 inline VolumeConfiguration& WithMountPoint(const char* value) { SetMountPoint(value); return *this;}
53
55
59 inline int GetRaidLevel() const{ return m_raidLevel; }
60 inline bool RaidLevelHasBeenSet() const { return m_raidLevelHasBeenSet; }
61 inline void SetRaidLevel(int value) { m_raidLevelHasBeenSet = true; m_raidLevel = value; }
62 inline VolumeConfiguration& WithRaidLevel(int value) { SetRaidLevel(value); return *this;}
64
66
69 inline int GetNumberOfDisks() const{ return m_numberOfDisks; }
70 inline bool NumberOfDisksHasBeenSet() const { return m_numberOfDisksHasBeenSet; }
71 inline void SetNumberOfDisks(int value) { m_numberOfDisksHasBeenSet = true; m_numberOfDisks = value; }
72 inline VolumeConfiguration& WithNumberOfDisks(int value) { SetNumberOfDisks(value); return *this;}
74
76
79 inline int GetSize() const{ return m_size; }
80 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
81 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
82 inline VolumeConfiguration& WithSize(int value) { SetSize(value); return *this;}
84
86
100 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
101 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
102 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
103 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
104 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
105 inline VolumeConfiguration& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
106 inline VolumeConfiguration& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
107 inline VolumeConfiguration& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
109
111
114 inline int GetIops() const{ return m_iops; }
115 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
116 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
117 inline VolumeConfiguration& WithIops(int value) { SetIops(value); return *this;}
119
121
127 inline bool GetEncrypted() const{ return m_encrypted; }
128 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
129 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
130 inline VolumeConfiguration& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
132 private:
133
134 Aws::String m_mountPoint;
135 bool m_mountPointHasBeenSet = false;
136
137 int m_raidLevel;
138 bool m_raidLevelHasBeenSet = false;
139
140 int m_numberOfDisks;
141 bool m_numberOfDisksHasBeenSet = false;
142
143 int m_size;
144 bool m_sizeHasBeenSet = false;
145
146 Aws::String m_volumeType;
147 bool m_volumeTypeHasBeenSet = false;
148
149 int m_iops;
150 bool m_iopsHasBeenSet = false;
151
152 bool m_encrypted;
153 bool m_encryptedHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace OpsWorks
158} // namespace Aws
VolumeConfiguration & WithSize(int value)
VolumeConfiguration & WithMountPoint(const char *value)
VolumeConfiguration & WithMountPoint(const Aws::String &value)
VolumeConfiguration & WithVolumeType(const char *value)
VolumeConfiguration & WithNumberOfDisks(int value)
VolumeConfiguration & WithMountPoint(Aws::String &&value)
void SetMountPoint(const Aws::String &value)
VolumeConfiguration & WithIops(int value)
void SetVolumeType(const Aws::String &value)
AWS_OPSWORKS_API VolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
VolumeConfiguration & WithVolumeType(const Aws::String &value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
VolumeConfiguration & WithEncrypted(bool value)
VolumeConfiguration & WithVolumeType(Aws::String &&value)
AWS_OPSWORKS_API VolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
VolumeConfiguration & WithRaidLevel(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue