/** * 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 SecurityHub { namespace Model { /** *

A ulimit to set in the container.

See Also:

AWS * API Reference

*/ class AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails { public: AWS_SECURITYHUB_API AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails(); AWS_SECURITYHUB_API AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_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 AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails& WithHardLimit(int value) { SetHardLimit(value); return *this;} /** *

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

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

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

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

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

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

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

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

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

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

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

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

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

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

The type of the ulimit. Valid values are as follows:

  • * core

  • cpu

  • * data

  • fsize

  • * locks

  • memlock

  • * msgqueue

  • nice

  • * nofile

  • nproc

  • * rss

  • rtprio

  • * rttime

  • sigpending

  • *

    stack

*/ inline AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails& 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 AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails& 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 SecurityHub } // namespace Aws