AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42 AWS_ECS_API Ulimit(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const UlimitName& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const UlimitName& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(UlimitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline Ulimit& WithName(const UlimitName& value) { SetName(value); return *this;}
56 inline Ulimit& WithName(UlimitName&& value) { SetName(std::move(value)); return *this;}
58
60
65 inline int GetSoftLimit() const{ return m_softLimit; }
66 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
67 inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
68 inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
70
72
77 inline int GetHardLimit() const{ return m_hardLimit; }
78 inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
79 inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; }
80 inline Ulimit& WithHardLimit(int value) { SetHardLimit(value); return *this;}
82 private:
83
84 UlimitName m_name;
85 bool m_nameHasBeenSet = false;
86
87 int m_softLimit;
88 bool m_softLimitHasBeenSet = false;
89
90 int m_hardLimit;
91 bool m_hardLimitHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ECS
96} // namespace Aws
Ulimit & WithName(UlimitName &&value)
Definition Ulimit.h:56
void SetHardLimit(int value)
Definition Ulimit.h:79
Ulimit & WithHardLimit(int value)
Definition Ulimit.h:80
AWS_ECS_API Ulimit & operator=(Aws::Utils::Json::JsonView jsonValue)
Ulimit & WithSoftLimit(int value)
Definition Ulimit.h:68
bool SoftLimitHasBeenSet() const
Definition Ulimit.h:66
void SetSoftLimit(int value)
Definition Ulimit.h:67
int GetSoftLimit() const
Definition Ulimit.h:65
bool NameHasBeenSet() const
Definition Ulimit.h:52
const UlimitName & GetName() const
Definition Ulimit.h:51
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:55
int GetHardLimit() const
Definition Ulimit.h:77
bool HardLimitHasBeenSet() const
Definition Ulimit.h:78
void SetName(const UlimitName &value)
Definition Ulimit.h:53
void SetName(UlimitName &&value)
Definition Ulimit.h:54
Aws::Utils::Json::JsonValue JsonValue