AWS SDK for C++  0.14.3
AWS SDK for C++
Ulimit.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecs/ECS_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ECS
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Ulimit();
40  Ulimit(const Aws::Utils::Json::JsonValue& jsonValue);
41  Ulimit& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const UlimitName& GetName() const{ return m_name; }
48 
52  inline void SetName(const UlimitName& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(UlimitName&& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline Ulimit& WithName(const UlimitName& value) { SetName(value); return *this;}
63 
67  inline Ulimit& WithName(UlimitName&& value) { SetName(value); return *this;}
68 
72  inline int GetSoftLimit() const{ return m_softLimit; }
73 
77  inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; }
78 
82  inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;}
83 
87  inline int GetHardLimit() const{ return m_hardLimit; }
88 
92  inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; }
93 
97  inline Ulimit& WithHardLimit(int value) { SetHardLimit(value); return *this;}
98 
99  private:
100  UlimitName m_name;
101  bool m_nameHasBeenSet;
102  int m_softLimit;
103  bool m_softLimitHasBeenSet;
104  int m_hardLimit;
105  bool m_hardLimitHasBeenSet;
106  };
107 
108 } // namespace Model
109 } // namespace ECS
110 } // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
const UlimitName & GetName() const
Definition: Ulimit.h:47
Ulimit & WithSoftLimit(int value)
Definition: Ulimit.h:82
void SetHardLimit(int value)
Definition: Ulimit.h:92
Ulimit & WithName(UlimitName &&value)
Definition: Ulimit.h:67
int GetHardLimit() const
Definition: Ulimit.h:87
int GetSoftLimit() const
Definition: Ulimit.h:72
Ulimit & WithHardLimit(int value)
Definition: Ulimit.h:97
void SetName(UlimitName &&value)
Definition: Ulimit.h:57
void SetSoftLimit(int value)
Definition: Ulimit.h:77
void SetName(const UlimitName &value)
Definition: Ulimit.h:52
JSON (JavaScript Object Notation).
Ulimit & WithName(const UlimitName &value)
Definition: Ulimit.h:62