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/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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline Ulimit& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline Ulimit& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline Ulimit& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline int GetSoftLimit() const{ return m_softLimit; }
78 inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
79 inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
80 inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
82 private:
83
84 int m_hardLimit;
85 bool m_hardLimitHasBeenSet = false;
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
90 int m_softLimit;
91 bool m_softLimitHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Batch
96} // namespace Aws
void SetName(Aws::String &&value)
Definition Ulimit.h:66
Ulimit & WithName(const Aws::String &value)
Definition Ulimit.h:68
int GetHardLimit() const
Definition Ulimit.h:48
Ulimit & WithHardLimit(int value)
Definition Ulimit.h:51
bool HardLimitHasBeenSet() const
Definition Ulimit.h:49
void SetName(const char *value)
Definition Ulimit.h:67
void SetHardLimit(int value)
Definition Ulimit.h:50
Ulimit & WithName(const char *value)
Definition Ulimit.h:70
const Aws::String & GetName() const
Definition Ulimit.h:63
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition Ulimit.h:65
bool SoftLimitHasBeenSet() const
Definition Ulimit.h:78
Ulimit & WithSoftLimit(int value)
Definition Ulimit.h:80
AWS_BATCH_API Ulimit()
AWS_BATCH_API Ulimit & operator=(Aws::Utils::Json::JsonView jsonValue)
Ulimit & WithName(Aws::String &&value)
Definition Ulimit.h:69
AWS_BATCH_API Ulimit(Aws::Utils::Json::JsonView jsonValue)
int GetSoftLimit() const
Definition Ulimit.h:77
bool NameHasBeenSet() const
Definition Ulimit.h:64
void SetSoftLimit(int value)
Definition Ulimit.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue