AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerMemoryLimits.h
1
6#pragma once
7#include <aws/gamelift/GameLift_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 GameLift
20{
21namespace Model
22{
23
32 {
33 public:
34 AWS_GAMELIFT_API ContainerMemoryLimits();
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
50 inline int GetSoftLimit() const{ return m_softLimit; }
51 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
52 inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
53 inline ContainerMemoryLimits& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
55
57
64 inline int GetHardLimit() const{ return m_hardLimit; }
65 inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
66 inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; }
67 inline ContainerMemoryLimits& WithHardLimit(int value) { SetHardLimit(value); return *this;}
69 private:
70
71 int m_softLimit;
72 bool m_softLimitHasBeenSet = false;
73
74 int m_hardLimit;
75 bool m_hardLimitHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace GameLift
80} // namespace Aws
ContainerMemoryLimits & WithHardLimit(int value)
AWS_GAMELIFT_API ContainerMemoryLimits(Aws::Utils::Json::JsonView jsonValue)
ContainerMemoryLimits & WithSoftLimit(int value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API ContainerMemoryLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue