AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SystemResourceLimits.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GreengrassV2 {
17namespace Model {
18
28 public:
29 AWS_GREENGRASSV2_API SystemResourceLimits() = default;
30 AWS_GREENGRASSV2_API SystemResourceLimits(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline long long GetMemory() const { return m_memory; }
40 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
41 inline void SetMemory(long long value) {
42 m_memoryHasBeenSet = true;
43 m_memory = value;
44 }
45 inline SystemResourceLimits& WithMemory(long long value) {
46 SetMemory(value);
47 return *this;
48 }
50
52
62 inline double GetCpus() const { return m_cpus; }
63 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
64 inline void SetCpus(double value) {
65 m_cpusHasBeenSet = true;
66 m_cpus = value;
67 }
68 inline SystemResourceLimits& WithCpus(double value) {
69 SetCpus(value);
70 return *this;
71 }
73 private:
74 long long m_memory{0};
75
76 double m_cpus{0.0};
77 bool m_memoryHasBeenSet = false;
78 bool m_cpusHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace GreengrassV2
83} // namespace Aws
AWS_GREENGRASSV2_API SystemResourceLimits()=default
SystemResourceLimits & WithCpus(double value)
SystemResourceLimits & WithMemory(long long value)
AWS_GREENGRASSV2_API SystemResourceLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API SystemResourceLimits(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue