AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Ulimit.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
37 class Ulimit
38 {
39 public:
44
45
49 inline const UlimitName& GetName() const{ return m_name; }
50
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55
59 inline void SetName(const UlimitName& value) { m_nameHasBeenSet = true; m_name = value; }
60
64 inline void SetName(UlimitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65
69 inline Ulimit& WithName(const UlimitName& value) { SetName(value); return *this;}
70
74 inline Ulimit& WithName(UlimitName&& value) { SetName(std::move(value)); return *this;}
75
76
80 inline int GetSoftLimit() const{ return m_softLimit; }
81
85 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
86
90 inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
91
95 inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
96
97
101 inline int GetHardLimit() const{ return m_hardLimit; }
102
106 inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
107
111 inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; }
112
116 inline Ulimit& WithHardLimit(int value) { SetHardLimit(value); return *this;}
117
118 private:
119
120 UlimitName m_name;
121 bool m_nameHasBeenSet = false;
122
123 int m_softLimit;
124 bool m_softLimitHasBeenSet = false;
125
126 int m_hardLimit;
127 bool m_hardLimitHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace ECS
132} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Ulimit & WithName(UlimitName &&value)
Definition: Ulimit.h:74
void SetHardLimit(int value)
Definition: Ulimit.h:111
Ulimit & WithHardLimit(int value)
Definition: Ulimit.h:116
AWS_ECS_API Ulimit & operator=(Aws::Utils::Json::JsonView jsonValue)
Ulimit & WithSoftLimit(int value)
Definition: Ulimit.h:95
bool SoftLimitHasBeenSet() const
Definition: Ulimit.h:85
void SetSoftLimit(int value)
Definition: Ulimit.h:90
int GetSoftLimit() const
Definition: Ulimit.h:80
bool NameHasBeenSet() const
Definition: Ulimit.h:54
const UlimitName & GetName() const
Definition: Ulimit.h:49
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Ulimit(Aws::Utils::Json::JsonView jsonValue)
Ulimit & WithName(const UlimitName &value)
Definition: Ulimit.h:69
int GetHardLimit() const
Definition: Ulimit.h:101
bool HardLimitHasBeenSet() const
Definition: Ulimit.h:106
void SetName(const UlimitName &value)
Definition: Ulimit.h:59
void SetName(UlimitName &&value)
Definition: Ulimit.h:64