AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Capacity.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_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 SnowDeviceManagement
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SNOWDEVICEMANAGEMENT_API Capacity() = default;
36 AWS_SNOWDEVICEMANAGEMENT_API Capacity(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SNOWDEVICEMANAGEMENT_API Capacity& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetAvailable() const { return m_available; }
46 inline bool AvailableHasBeenSet() const { return m_availableHasBeenSet; }
47 inline void SetAvailable(long long value) { m_availableHasBeenSet = true; m_available = value; }
48 inline Capacity& WithAvailable(long long value) { SetAvailable(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 Capacity& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline long long GetTotal() const { return m_total; }
68 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
69 inline void SetTotal(long long value) { m_totalHasBeenSet = true; m_total = value; }
70 inline Capacity& WithTotal(long long value) { SetTotal(value); return *this;}
72
74
77 inline const Aws::String& GetUnit() const { return m_unit; }
78 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
79 template<typename UnitT = Aws::String>
80 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
81 template<typename UnitT = Aws::String>
82 Capacity& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
84
86
89 inline long long GetUsed() const { return m_used; }
90 inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; }
91 inline void SetUsed(long long value) { m_usedHasBeenSet = true; m_used = value; }
92 inline Capacity& WithUsed(long long value) { SetUsed(value); return *this;}
94 private:
95
96 long long m_available{0};
97 bool m_availableHasBeenSet = false;
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 long long m_total{0};
103 bool m_totalHasBeenSet = false;
104
105 Aws::String m_unit;
106 bool m_unitHasBeenSet = false;
107
108 long long m_used{0};
109 bool m_usedHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SnowDeviceManagement
114} // namespace Aws
const Aws::String & GetName() const
Definition Capacity.h:55
Capacity & WithUsed(long long value)
Definition Capacity.h:92
Capacity & WithTotal(long long value)
Definition Capacity.h:70
AWS_SNOWDEVICEMANAGEMENT_API Capacity()=default
Capacity & WithAvailable(long long value)
Definition Capacity.h:48
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:77
Capacity & WithUnit(UnitT &&value)
Definition Capacity.h:82
Capacity & WithName(NameT &&value)
Definition Capacity.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue