AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Ulimit.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/UlimitName.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
34class Ulimit {
35 public:
36 AWS_ECS_API Ulimit() = default;
37 AWS_ECS_API Ulimit(Aws::Utils::Json::JsonView jsonValue);
40
42
45 inline UlimitName GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(UlimitName value) {
48 m_nameHasBeenSet = true;
49 m_name = value;
50 }
51 inline Ulimit& WithName(UlimitName value) {
52 SetName(value);
53 return *this;
54 }
56
58
63 inline int GetSoftLimit() const { return m_softLimit; }
64 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
65 inline void SetSoftLimit(int value) {
66 m_softLimitHasBeenSet = true;
67 m_softLimit = value;
68 }
69 inline Ulimit& WithSoftLimit(int value) {
70 SetSoftLimit(value);
71 return *this;
72 }
74
76
81 inline int GetHardLimit() const { return m_hardLimit; }
82 inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
83 inline void SetHardLimit(int value) {
84 m_hardLimitHasBeenSet = true;
85 m_hardLimit = value;
86 }
87 inline Ulimit& WithHardLimit(int value) {
88 SetHardLimit(value);
89 return *this;
90 }
92 private:
94
95 int m_softLimit{0};
96
97 int m_hardLimit{0};
98 bool m_nameHasBeenSet = false;
99 bool m_softLimitHasBeenSet = false;
100 bool m_hardLimitHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ECS
105} // namespace Aws
void SetHardLimit(int value)
Definition Ulimit.h:83
Ulimit & WithHardLimit(int value)
Definition Ulimit.h:87
AWS_ECS_API Ulimit()=default
AWS_ECS_API Ulimit & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(UlimitName value)
Definition Ulimit.h:47
Ulimit & WithSoftLimit(int value)
Definition Ulimit.h:69
bool SoftLimitHasBeenSet() const
Definition Ulimit.h:64
UlimitName GetName() const
Definition Ulimit.h:45
void SetSoftLimit(int value)
Definition Ulimit.h:65
int GetSoftLimit() const
Definition Ulimit.h:63
bool NameHasBeenSet() const
Definition Ulimit.h:46
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Ulimit(Aws::Utils::Json::JsonView jsonValue)
int GetHardLimit() const
Definition Ulimit.h:81
bool HardLimitHasBeenSet() const
Definition Ulimit.h:82
Ulimit & WithName(UlimitName value)
Definition Ulimit.h:51
Aws::Utils::Json::JsonValue JsonValue