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/compute-optimizer/ComputeOptimizer_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 ComputeOptimizer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COMPUTEOPTIMIZER_API VolumeConfiguration();
36 AWS_COMPUTEOPTIMIZER_API VolumeConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPUTEOPTIMIZER_API VolumeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
49 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
50 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
51 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
52 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
53 inline VolumeConfiguration& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
54 inline VolumeConfiguration& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
55 inline VolumeConfiguration& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
57
59
62 inline int GetVolumeSize() const{ return m_volumeSize; }
63 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
64 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
65 inline VolumeConfiguration& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
67
69
72 inline int GetVolumeBaselineIOPS() const{ return m_volumeBaselineIOPS; }
73 inline bool VolumeBaselineIOPSHasBeenSet() const { return m_volumeBaselineIOPSHasBeenSet; }
74 inline void SetVolumeBaselineIOPS(int value) { m_volumeBaselineIOPSHasBeenSet = true; m_volumeBaselineIOPS = value; }
75 inline VolumeConfiguration& WithVolumeBaselineIOPS(int value) { SetVolumeBaselineIOPS(value); return *this;}
77
79
82 inline int GetVolumeBurstIOPS() const{ return m_volumeBurstIOPS; }
83 inline bool VolumeBurstIOPSHasBeenSet() const { return m_volumeBurstIOPSHasBeenSet; }
84 inline void SetVolumeBurstIOPS(int value) { m_volumeBurstIOPSHasBeenSet = true; m_volumeBurstIOPS = value; }
85 inline VolumeConfiguration& WithVolumeBurstIOPS(int value) { SetVolumeBurstIOPS(value); return *this;}
87
89
92 inline int GetVolumeBaselineThroughput() const{ return m_volumeBaselineThroughput; }
93 inline bool VolumeBaselineThroughputHasBeenSet() const { return m_volumeBaselineThroughputHasBeenSet; }
94 inline void SetVolumeBaselineThroughput(int value) { m_volumeBaselineThroughputHasBeenSet = true; m_volumeBaselineThroughput = value; }
97
99
102 inline int GetVolumeBurstThroughput() const{ return m_volumeBurstThroughput; }
103 inline bool VolumeBurstThroughputHasBeenSet() const { return m_volumeBurstThroughputHasBeenSet; }
104 inline void SetVolumeBurstThroughput(int value) { m_volumeBurstThroughputHasBeenSet = true; m_volumeBurstThroughput = value; }
107
109
112 inline bool GetRootVolume() const{ return m_rootVolume; }
113 inline bool RootVolumeHasBeenSet() const { return m_rootVolumeHasBeenSet; }
114 inline void SetRootVolume(bool value) { m_rootVolumeHasBeenSet = true; m_rootVolume = value; }
115 inline VolumeConfiguration& WithRootVolume(bool value) { SetRootVolume(value); return *this;}
117 private:
118
119 Aws::String m_volumeType;
120 bool m_volumeTypeHasBeenSet = false;
121
122 int m_volumeSize;
123 bool m_volumeSizeHasBeenSet = false;
124
125 int m_volumeBaselineIOPS;
126 bool m_volumeBaselineIOPSHasBeenSet = false;
127
128 int m_volumeBurstIOPS;
129 bool m_volumeBurstIOPSHasBeenSet = false;
130
131 int m_volumeBaselineThroughput;
132 bool m_volumeBaselineThroughputHasBeenSet = false;
133
134 int m_volumeBurstThroughput;
135 bool m_volumeBurstThroughputHasBeenSet = false;
136
137 bool m_rootVolume;
138 bool m_rootVolumeHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ComputeOptimizer
143} // namespace Aws
VolumeConfiguration & WithVolumeBurstIOPS(int value)
VolumeConfiguration & WithVolumeBaselineIOPS(int value)
VolumeConfiguration & WithVolumeType(Aws::String &&value)
VolumeConfiguration & WithVolumeBurstThroughput(int value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API VolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
VolumeConfiguration & WithVolumeBaselineThroughput(int value)
VolumeConfiguration & WithVolumeType(const char *value)
VolumeConfiguration & WithVolumeType(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API VolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue