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

The amount of ephemeral storage to allocate for the task. This parameter is * used to expand the total amount of ephemeral storage available, beyond the * default amount, for tasks hosted on Fargate. For more information, see Fargate * task storage in the Amazon ECS User Guide for Fargate.

*

For tasks using the Fargate launch type, the task requires the following * platforms:

See Also:

AWS * API Reference

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

The total amount, in GiB, of ephemeral storage to set for the task. The * minimum supported value is 21 GiB and the maximum supported value * is 200 GiB.

*/ inline int GetSizeInGiB() const{ return m_sizeInGiB; } /** *

The total amount, in GiB, of ephemeral storage to set for the task. The * minimum supported value is 21 GiB and the maximum supported value * is 200 GiB.

*/ inline bool SizeInGiBHasBeenSet() const { return m_sizeInGiBHasBeenSet; } /** *

The total amount, in GiB, of ephemeral storage to set for the task. The * minimum supported value is 21 GiB and the maximum supported value * is 200 GiB.

*/ inline void SetSizeInGiB(int value) { m_sizeInGiBHasBeenSet = true; m_sizeInGiB = value; } /** *

The total amount, in GiB, of ephemeral storage to set for the task. The * minimum supported value is 21 GiB and the maximum supported value * is 200 GiB.

*/ inline EphemeralStorage& WithSizeInGiB(int value) { SetSizeInGiB(value); return *this;} private: int m_sizeInGiB; bool m_sizeInGiBHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws