AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SystemResourceLimits.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GreengrassV2
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_GREENGRASSV2_API SystemResourceLimits();
36 AWS_GREENGRASSV2_API SystemResourceLimits(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline long long GetMemory() const{ return m_memory; }
47 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
48 inline void SetMemory(long long value) { m_memoryHasBeenSet = true; m_memory = value; }
49 inline SystemResourceLimits& WithMemory(long long value) { SetMemory(value); return *this;}
51
53
63 inline double GetCpus() const{ return m_cpus; }
64 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
65 inline void SetCpus(double value) { m_cpusHasBeenSet = true; m_cpus = value; }
66 inline SystemResourceLimits& WithCpus(double value) { SetCpus(value); return *this;}
68 private:
69
70 long long m_memory;
71 bool m_memoryHasBeenSet = false;
72
73 double m_cpus;
74 bool m_cpusHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace GreengrassV2
79} // namespace Aws
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