AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Capacity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SnowDeviceManagement {
20namespace Model {
21
28class Capacity {
29 public:
30 AWS_SNOWDEVICEMANAGEMENT_API Capacity() = default;
31 AWS_SNOWDEVICEMANAGEMENT_API Capacity(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SNOWDEVICEMANAGEMENT_API Capacity& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetAvailable() const { return m_available; }
40 inline bool AvailableHasBeenSet() const { return m_availableHasBeenSet; }
41 inline void SetAvailable(long long value) {
42 m_availableHasBeenSet = true;
43 m_available = value;
44 }
45 inline Capacity& WithAvailable(long long value) {
46 SetAvailable(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 Capacity& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline long long GetTotal() const { return m_total; }
74 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
75 inline void SetTotal(long long value) {
76 m_totalHasBeenSet = true;
77 m_total = value;
78 }
79 inline Capacity& WithTotal(long long value) {
80 SetTotal(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetUnit() const { return m_unit; }
90 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
91 template <typename UnitT = Aws::String>
92 void SetUnit(UnitT&& value) {
93 m_unitHasBeenSet = true;
94 m_unit = std::forward<UnitT>(value);
95 }
96 template <typename UnitT = Aws::String>
97 Capacity& WithUnit(UnitT&& value) {
98 SetUnit(std::forward<UnitT>(value));
99 return *this;
100 }
102
104
107 inline long long GetUsed() const { return m_used; }
108 inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; }
109 inline void SetUsed(long long value) {
110 m_usedHasBeenSet = true;
111 m_used = value;
112 }
113 inline Capacity& WithUsed(long long value) {
114 SetUsed(value);
115 return *this;
116 }
118 private:
119 long long m_available{0};
120
121 Aws::String m_name;
122
123 long long m_total{0};
124
125 Aws::String m_unit;
126
127 long long m_used{0};
128 bool m_availableHasBeenSet = false;
129 bool m_nameHasBeenSet = false;
130 bool m_totalHasBeenSet = false;
131 bool m_unitHasBeenSet = false;
132 bool m_usedHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace SnowDeviceManagement
137} // namespace Aws
const Aws::String & GetName() const
Definition Capacity.h:55
Capacity & WithUsed(long long value)
Definition Capacity.h:113
Capacity & WithTotal(long long value)
Definition Capacity.h:79
AWS_SNOWDEVICEMANAGEMENT_API Capacity()=default
Capacity & WithAvailable(long long value)
Definition Capacity.h:45
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SNOWDEVICEMANAGEMENT_API Capacity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWDEVICEMANAGEMENT_API Capacity(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition Capacity.h:89
Capacity & WithUnit(UnitT &&value)
Definition Capacity.h:97
Capacity & WithName(NameT &&value)
Definition Capacity.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue