AWS SDK for C++  1.9.129
AWS SDK for C++
SystemResourceLimits.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace GreengrassV2
20 {
21 namespace Model
22 {
23 
33  {
34  public:
39 
40 
45  inline long long GetMemory() const{ return m_memory; }
46 
51  inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
52 
57  inline void SetMemory(long long value) { m_memoryHasBeenSet = true; m_memory = value; }
58 
63  inline SystemResourceLimits& WithMemory(long long value) { SetMemory(value); return *this;}
64 
65 
76  inline double GetCpus() const{ return m_cpus; }
77 
88  inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
89 
100  inline void SetCpus(double value) { m_cpusHasBeenSet = true; m_cpus = value; }
101 
112  inline SystemResourceLimits& WithCpus(double value) { SetCpus(value); return *this;}
113 
114  private:
115 
116  long long m_memory;
117  bool m_memoryHasBeenSet;
118 
119  double m_cpus;
120  bool m_cpusHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace GreengrassV2
125 } // namespace Aws
Aws::GreengrassV2::Model::SystemResourceLimits::operator=
SystemResourceLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::SystemResourceLimits::SystemResourceLimits
SystemResourceLimits(Aws::Utils::Json::JsonView jsonValue)
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::SystemResourceLimits::SetMemory
void SetMemory(long long value)
Definition: SystemResourceLimits.h:57
Aws::GreengrassV2::Model::SystemResourceLimits::GetMemory
long long GetMemory() const
Definition: SystemResourceLimits.h:45
Aws::GreengrassV2::Model::SystemResourceLimits::GetCpus
double GetCpus() const
Definition: SystemResourceLimits.h:76
Aws::GreengrassV2::Model::SystemResourceLimits::SystemResourceLimits
SystemResourceLimits()
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::SystemResourceLimits::SetCpus
void SetCpus(double value)
Definition: SystemResourceLimits.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::SystemResourceLimits::CpusHasBeenSet
bool CpusHasBeenSet() const
Definition: SystemResourceLimits.h:88
Aws::GreengrassV2::Model::SystemResourceLimits
Definition: SystemResourceLimits.h:33
Aws::GreengrassV2::Model::SystemResourceLimits::WithMemory
SystemResourceLimits & WithMemory(long long value)
Definition: SystemResourceLimits.h:63
Aws::GreengrassV2::Model::SystemResourceLimits::WithCpus
SystemResourceLimits & WithCpus(double value)
Definition: SystemResourceLimits.h:112
Aws::GreengrassV2::Model::SystemResourceLimits::MemoryHasBeenSet
bool MemoryHasBeenSet() const
Definition: SystemResourceLimits.h:51
Aws::GreengrassV2::Model::SystemResourceLimits::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const