AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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
38 class Ulimit
39 {
40 public:
41 AWS_ECS_API Ulimit() = default;
42 AWS_ECS_API Ulimit(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline UlimitName GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(UlimitName value) { m_nameHasBeenSet = true; m_name = value; }
54 inline Ulimit& WithName(UlimitName value) { SetName(value); return *this;}
56
58
63 inline int GetSoftLimit() const { return m_softLimit; }
64 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
65 inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
66 inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
68
70
75 inline int GetHardLimit() const { return m_hardLimit; }
76 inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
77 inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; }
78 inline Ulimit& WithHardLimit(int value) { SetHardLimit(value); return *this;}
80 private:
81
83 bool m_nameHasBeenSet = false;
84
85 int m_softLimit{0};
86 bool m_softLimitHasBeenSet = false;
87
88 int m_hardLimit{0};
89 bool m_hardLimitHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ECS
94} // namespace Aws
void SetHardLimit(int value)
Definition Ulimit.h:77
Ulimit & WithHardLimit(int value)
Definition Ulimit.h:78
AWS_ECS_API Ulimit()=default
AWS_ECS_API Ulimit & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(UlimitName value)
Definition Ulimit.h:53
Ulimit & WithSoftLimit(int value)
Definition Ulimit.h:66
bool SoftLimitHasBeenSet() const
Definition Ulimit.h:64
UlimitName GetName() const
Definition Ulimit.h:51
void SetSoftLimit(int value)
Definition Ulimit.h:65
int GetSoftLimit() const
Definition Ulimit.h:63
bool NameHasBeenSet() const
Definition Ulimit.h:52
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Ulimit(Aws::Utils::Json::JsonView jsonValue)
int GetHardLimit() const
Definition Ulimit.h:75
bool HardLimitHasBeenSet() const
Definition Ulimit.h:76
Ulimit & WithName(UlimitName value)
Definition Ulimit.h:54
Aws::Utils::Json::JsonValue JsonValue