AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DBStorageConfiguration.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 DBStorageConfiguration() = default;
36 AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetStorageType() const { return m_storageType; }
46 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
47 template<typename StorageTypeT = Aws::String>
48 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
49 template<typename StorageTypeT = Aws::String>
50 DBStorageConfiguration& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
52
54
57 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
58 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
59 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
60 inline DBStorageConfiguration& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
62
64
67 inline int GetIops() const { return m_iops; }
68 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
69 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
70 inline DBStorageConfiguration& WithIops(int value) { SetIops(value); return *this;}
72
74
78 inline int GetMaxAllocatedStorage() const { return m_maxAllocatedStorage; }
79 inline bool MaxAllocatedStorageHasBeenSet() const { return m_maxAllocatedStorageHasBeenSet; }
80 inline void SetMaxAllocatedStorage(int value) { m_maxAllocatedStorageHasBeenSet = true; m_maxAllocatedStorage = value; }
81 inline DBStorageConfiguration& WithMaxAllocatedStorage(int value) { SetMaxAllocatedStorage(value); return *this;}
83
85
88 inline int GetStorageThroughput() const { return m_storageThroughput; }
89 inline bool StorageThroughputHasBeenSet() const { return m_storageThroughputHasBeenSet; }
90 inline void SetStorageThroughput(int value) { m_storageThroughputHasBeenSet = true; m_storageThroughput = value; }
91 inline DBStorageConfiguration& WithStorageThroughput(int value) { SetStorageThroughput(value); return *this;}
93 private:
94
95 Aws::String m_storageType;
96 bool m_storageTypeHasBeenSet = false;
97
98 int m_allocatedStorage{0};
99 bool m_allocatedStorageHasBeenSet = false;
100
101 int m_iops{0};
102 bool m_iopsHasBeenSet = false;
103
104 int m_maxAllocatedStorage{0};
105 bool m_maxAllocatedStorageHasBeenSet = false;
106
107 int m_storageThroughput{0};
108 bool m_storageThroughputHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ComputeOptimizer
113} // namespace Aws
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DBStorageConfiguration & WithMaxAllocatedStorage(int value)
AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration(Aws::Utils::Json::JsonView jsonValue)
DBStorageConfiguration & WithStorageThroughput(int value)
DBStorageConfiguration & WithStorageType(StorageTypeT &&value)
AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue