AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
ResourcePoolSummary.h
1
6#pragma once
7#include <aws/odb/Odb_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace odb {
17namespace Model {
18
26 public:
27 AWS_ODB_API ResourcePoolSummary() = default;
31
33
36 inline bool GetIsDisabled() const { return m_isDisabled; }
37 inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
38 inline void SetIsDisabled(bool value) {
39 m_isDisabledHasBeenSet = true;
40 m_isDisabled = value;
41 }
42 inline ResourcePoolSummary& WithIsDisabled(bool value) {
43 SetIsDisabled(value);
44 return *this;
45 }
47
49
52 inline int GetPoolSize() const { return m_poolSize; }
53 inline bool PoolSizeHasBeenSet() const { return m_poolSizeHasBeenSet; }
54 inline void SetPoolSize(int value) {
55 m_poolSizeHasBeenSet = true;
56 m_poolSize = value;
57 }
58 inline ResourcePoolSummary& WithPoolSize(int value) {
59 SetPoolSize(value);
60 return *this;
61 }
63
65
68 inline int GetPoolStorageSizeInTBs() const { return m_poolStorageSizeInTBs; }
69 inline bool PoolStorageSizeInTBsHasBeenSet() const { return m_poolStorageSizeInTBsHasBeenSet; }
70 inline void SetPoolStorageSizeInTBs(int value) {
71 m_poolStorageSizeInTBsHasBeenSet = true;
72 m_poolStorageSizeInTBs = value;
73 }
76 return *this;
77 }
79
81
84 inline double GetAvailableStorageCapacityInTBs() const { return m_availableStorageCapacityInTBs; }
85 inline bool AvailableStorageCapacityInTBsHasBeenSet() const { return m_availableStorageCapacityInTBsHasBeenSet; }
86 inline void SetAvailableStorageCapacityInTBs(double value) {
87 m_availableStorageCapacityInTBsHasBeenSet = true;
88 m_availableStorageCapacityInTBs = value;
89 }
92 return *this;
93 }
95
97
100 inline int GetTotalComputeCapacity() const { return m_totalComputeCapacity; }
101 inline bool TotalComputeCapacityHasBeenSet() const { return m_totalComputeCapacityHasBeenSet; }
102 inline void SetTotalComputeCapacity(int value) {
103 m_totalComputeCapacityHasBeenSet = true;
104 m_totalComputeCapacity = value;
105 }
108 return *this;
109 }
111
113
116 inline int GetAvailableComputeCapacity() const { return m_availableComputeCapacity; }
117 inline bool AvailableComputeCapacityHasBeenSet() const { return m_availableComputeCapacityHasBeenSet; }
118 inline void SetAvailableComputeCapacity(int value) {
119 m_availableComputeCapacityHasBeenSet = true;
120 m_availableComputeCapacity = value;
121 }
124 return *this;
125 }
127 private:
128 bool m_isDisabled{false};
129
130 int m_poolSize{0};
131
132 int m_poolStorageSizeInTBs{0};
133
134 double m_availableStorageCapacityInTBs{0.0};
135
136 int m_totalComputeCapacity{0};
137
138 int m_availableComputeCapacity{0};
139 bool m_isDisabledHasBeenSet = false;
140 bool m_poolSizeHasBeenSet = false;
141 bool m_poolStorageSizeInTBsHasBeenSet = false;
142 bool m_availableStorageCapacityInTBsHasBeenSet = false;
143 bool m_totalComputeCapacityHasBeenSet = false;
144 bool m_availableComputeCapacityHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace odb
149} // namespace Aws
AWS_ODB_API ResourcePoolSummary(Aws::Utils::Json::JsonView jsonValue)
ResourcePoolSummary & WithPoolStorageSizeInTBs(int value)
ResourcePoolSummary & WithPoolSize(int value)
ResourcePoolSummary & WithAvailableComputeCapacity(int value)
ResourcePoolSummary & WithAvailableStorageCapacityInTBs(double value)
ResourcePoolSummary & WithIsDisabled(bool value)
AWS_ODB_API ResourcePoolSummary()=default
ResourcePoolSummary & WithTotalComputeCapacity(int value)
AWS_ODB_API ResourcePoolSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue