AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Ulimit.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch {
20namespace Model {
21
31class Ulimit {
32 public:
33 AWS_BATCH_API Ulimit() = default;
34 AWS_BATCH_API Ulimit(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BATCH_API Ulimit& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetHardLimit() const { return m_hardLimit; }
43 inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
44 inline void SetHardLimit(int value) {
45 m_hardLimitHasBeenSet = true;
46 m_hardLimit = value;
47 }
48 inline Ulimit& WithHardLimit(int value) {
49 SetHardLimit(value);
50 return *this;
51 }
53
55
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 Ulimit& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline int GetSoftLimit() const { return m_softLimit; }
82 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
83 inline void SetSoftLimit(int value) {
84 m_softLimitHasBeenSet = true;
85 m_softLimit = value;
86 }
87 inline Ulimit& WithSoftLimit(int value) {
88 SetSoftLimit(value);
89 return *this;
90 }
92 private:
93 int m_hardLimit{0};
94
95 Aws::String m_name;
96
97 int m_softLimit{0};
98 bool m_hardLimitHasBeenSet = false;
99 bool m_nameHasBeenSet = false;
100 bool m_softLimitHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Batch
105} // namespace Aws
int GetHardLimit() const
Definition Ulimit.h:42
Ulimit & WithHardLimit(int value)
Definition Ulimit.h:48
AWS_BATCH_API Ulimit()=default
bool HardLimitHasBeenSet() const
Definition Ulimit.h:43
void SetHardLimit(int value)
Definition Ulimit.h:44
const Aws::String & GetName() const
Definition Ulimit.h:63
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
bool SoftLimitHasBeenSet() const
Definition Ulimit.h:82
void SetName(NameT &&value)
Definition Ulimit.h:66
Ulimit & WithName(NameT &&value)
Definition Ulimit.h:71
Ulimit & WithSoftLimit(int value)
Definition Ulimit.h:87
AWS_BATCH_API Ulimit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Ulimit(Aws::Utils::Json::JsonView jsonValue)
int GetSoftLimit() const
Definition Ulimit.h:81
bool NameHasBeenSet() const
Definition Ulimit.h:64
void SetSoftLimit(int value)
Definition Ulimit.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue