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/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 Batch
22{
23namespace Model
24{
25
35 class Ulimit
36 {
37 public:
38 AWS_BATCH_API Ulimit() = default;
39 AWS_BATCH_API Ulimit(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Ulimit& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetHardLimit() const { return m_hardLimit; }
49 inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
50 inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; }
51 inline Ulimit& WithHardLimit(int value) { SetHardLimit(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
67 template<typename NameT = Aws::String>
68 Ulimit& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
70
72
75 inline int GetSoftLimit() const { return m_softLimit; }
76 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
77 inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
78 inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
80 private:
81
82 int m_hardLimit{0};
83 bool m_hardLimitHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 int m_softLimit{0};
89 bool m_softLimitHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Batch
94} // namespace Aws
int GetHardLimit() const
Definition Ulimit.h:48
Ulimit & WithHardLimit(int value)
Definition Ulimit.h:51
AWS_BATCH_API Ulimit()=default
bool HardLimitHasBeenSet() const
Definition Ulimit.h:49
void SetHardLimit(int value)
Definition Ulimit.h:50
const Aws::String & GetName() const
Definition Ulimit.h:63
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
bool SoftLimitHasBeenSet() const
Definition Ulimit.h:76
void SetName(NameT &&value)
Definition Ulimit.h:66
Ulimit & WithName(NameT &&value)
Definition Ulimit.h:68
Ulimit & WithSoftLimit(int value)
Definition Ulimit.h:78
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:75
bool NameHasBeenSet() const
Definition Ulimit.h:64
void SetSoftLimit(int value)
Definition Ulimit.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue