/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Batch { namespace Model { /** *

The ulimit settings to pass to the container.

This * object isn't applicable to jobs that are running on Fargate resources.

*

See Also:

AWS API * Reference

*/ class Ulimit { public: AWS_BATCH_API Ulimit(); AWS_BATCH_API Ulimit(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API Ulimit& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The hard limit for the ulimit type.

*/ inline int GetHardLimit() const{ return m_hardLimit; } /** *

The hard limit for the ulimit type.

*/ inline bool HardLimitHasBeenSet() const { return m_hardLimitHasBeenSet; } /** *

The hard limit for the ulimit type.

*/ inline void SetHardLimit(int value) { m_hardLimitHasBeenSet = true; m_hardLimit = value; } /** *

The hard limit for the ulimit type.

*/ inline Ulimit& WithHardLimit(int value) { SetHardLimit(value); return *this;} /** *

The type of the ulimit.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The type of the ulimit.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The type of the ulimit.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The type of the ulimit.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The type of the ulimit.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The type of the ulimit.

*/ inline Ulimit& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The type of the ulimit.

*/ inline Ulimit& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The type of the ulimit.

*/ inline Ulimit& WithName(const char* value) { SetName(value); return *this;} /** *

The soft limit for the ulimit type.

*/ inline int GetSoftLimit() const{ return m_softLimit; } /** *

The soft limit for the ulimit type.

*/ inline bool SoftLimitHasBeenSet() const { return m_softLimitHasBeenSet; } /** *

The soft limit for the ulimit type.

*/ inline void SetSoftLimit(int value) { m_softLimitHasBeenSet = true; m_softLimit = value; } /** *

The soft limit for the ulimit type.

*/ inline Ulimit& WithSoftLimit(int value) { SetSoftLimit(value); return *this;} private: int m_hardLimit; bool m_hardLimitHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_softLimit; bool m_softLimitHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws