AWS SDK for C++  1.9.71
AWS SDK for C++
Ulimit.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
38  {
39  public:
40  Ulimit();
44 
45 
49  inline const UlimitName& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const UlimitName& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(UlimitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline Ulimit& WithName(const UlimitName& value) { SetName(value); return *this;}
70 
74  inline Ulimit& WithName(UlimitName&& value) { SetName(std::move(value)); return *this;}
75 
76 
80  inline int GetSoftLimit() const{ return m_softLimit; }
81 
85  inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; }
86 
90  inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
91 
95  inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
96 
97 
101  inline int GetHardLimit() const{ return m_hardLimit; }
102 
106  inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; }
107 
111  inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; }
112 
116  inline Ulimit& WithHardLimit(int value) { SetHardLimit(value); return *this;}
117 
118  private:
119 
120  UlimitName m_name;
121  bool m_nameHasBeenSet;
122 
123  int m_softLimit;
124  bool m_softLimitHasBeenSet;
125 
126  int m_hardLimit;
127  bool m_hardLimitHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace ECS
132 } // namespace Aws
Aws::ECS::Model::Ulimit::GetHardLimit
int GetHardLimit() const
Definition: Ulimit.h:101
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Ulimit
Definition: Ulimit.h:38
Aws::ECS::Model::Ulimit::Ulimit
Ulimit()
Aws::ECS::Model::Ulimit::HardLimitHasBeenSet
bool HardLimitHasBeenSet() const
Definition: Ulimit.h:106
Aws::ECS::Model::Ulimit::WithSoftLimit
Ulimit & WithSoftLimit(int value)
Definition: Ulimit.h:95
Aws::ECS::Model::Ulimit::WithName
Ulimit & WithName(UlimitName &&value)
Definition: Ulimit.h:74
Aws::ECS::Model::Ulimit::GetName
const UlimitName & GetName() const
Definition: Ulimit.h:49
UlimitName.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Ulimit::SetSoftLimit
void SetSoftLimit(int value)
Definition: Ulimit.h:90
Aws::ECS::Model::Ulimit::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Ulimit.h:54
Aws::ECS::Model::Ulimit::operator=
Ulimit & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Ulimit::SetName
void SetName(UlimitName &&value)
Definition: Ulimit.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::Ulimit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Ulimit::GetSoftLimit
int GetSoftLimit() const
Definition: Ulimit.h:80
Aws::ECS::Model::Ulimit::WithName
Ulimit & WithName(const UlimitName &value)
Definition: Ulimit.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Ulimit::SoftLimitHasBeenSet
bool SoftLimitHasBeenSet() const
Definition: Ulimit.h:85
Aws::ECS::Model::UlimitName
UlimitName
Definition: UlimitName.h:17
Aws::ECS::Model::Ulimit::Ulimit
Ulimit(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Ulimit::WithHardLimit
Ulimit & WithHardLimit(int value)
Definition: Ulimit.h:116
Aws::ECS::Model::Ulimit::SetName
void SetName(const UlimitName &value)
Definition: Ulimit.h:59
Aws::ECS::Model::Ulimit::SetHardLimit
void SetHardLimit(int value)
Definition: Ulimit.h:111
ECS_EXPORTS.h