AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline Capacity& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline Capacity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline Capacity& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline long long GetTotal() const{ return m_total; }
70 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
71 inline void SetTotal(long long value) { m_totalHasBeenSet = true; m_total = value; }
72 inline Capacity& WithTotal(long long value) { SetTotal(value); return *this;}
74
76
79 inline const Aws::String& GetUnit() const{ return m_unit; }
80 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
81 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
82 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
83 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
84 inline Capacity& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
85 inline Capacity& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
86 inline Capacity& WithUnit(const char* value) { SetUnit(value); return *this;}
88
90
93 inline long long GetUsed() const{ return m_used; }
94 inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; }
95 inline void SetUsed(long long value) { m_usedHasBeenSet = true; m_used = value; }
96 inline Capacity& WithUsed(long long value) { SetUsed(value); return *this;}
98 private:
99
100 long long m_available;
101 bool m_availableHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 long long m_total;
107 bool m_totalHasBeenSet = false;
108
109 Aws::String m_unit;
110 bool m_unitHasBeenSet = false;
111
112 long long m_used;
113 bool m_usedHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace SnowDeviceManagement
118} // namespace Aws
const Aws::String & GetName() const
Definition Capacity.h:55
AWS_SNOWDEVICEMANAGEMENT_API Capacity()
Capacity & WithName(const char *value)
Definition Capacity.h:62
Capacity & WithUnit(const Aws::String &value)
Definition Capacity.h:84
void SetName(const Aws::String &value)
Definition Capacity.h:57
Capacity & WithUsed(long long value)
Definition Capacity.h:96
Capacity & WithTotal(long long value)
Definition Capacity.h:72
Capacity & WithName(Aws::String &&value)
Definition Capacity.h:61
Capacity & WithUnit(Aws::String &&value)
Definition Capacity.h:85
Capacity & WithName(const Aws::String &value)
Definition Capacity.h:60
void SetUnit(Aws::String &&value)
Definition Capacity.h:82
Capacity & WithUnit(const char *value)
Definition Capacity.h:86
Capacity & WithAvailable(long long value)
Definition Capacity.h:48
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition Capacity.h:58
AWS_SNOWDEVICEMANAGEMENT_API Capacity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(const Aws::String &value)
Definition Capacity.h:81
AWS_SNOWDEVICEMANAGEMENT_API Capacity(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition Capacity.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue