/** * 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 platform configuration for jobs that are running on Fargate resources. * Jobs that run on EC2 resources must not specify this parameter.

See * Also:

AWS * API Reference

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

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; } /** *

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; } /** *

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; } /** *

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); } /** *

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); } /** *

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline FargatePlatformConfiguration& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;} /** *

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline FargatePlatformConfiguration& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;} /** *

The Fargate platform version where the jobs are running. A platform version * is specified only for jobs that are running on Fargate resources. If one isn't * specified, the LATEST platform version is used by default. This * uses a recent, approved version of the Fargate platform for compute resources. * For more information, see Fargate * platform versions in the Amazon Elastic Container Service Developer * Guide.

*/ inline FargatePlatformConfiguration& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;} private: Aws::String m_platformVersion; bool m_platformVersionHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws