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

The network configuration for a task or service.

See Also:

* AWS * API Reference

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

The VPC subnets and security groups that are associated with a task.

*

All specified subnets and security groups must be from the same * VPC.

*/ inline const AwsVpcConfiguration& GetAwsvpcConfiguration() const{ return m_awsvpcConfiguration; } /** *

The VPC subnets and security groups that are associated with a task.

*

All specified subnets and security groups must be from the same * VPC.

*/ inline bool AwsvpcConfigurationHasBeenSet() const { return m_awsvpcConfigurationHasBeenSet; } /** *

The VPC subnets and security groups that are associated with a task.

*

All specified subnets and security groups must be from the same * VPC.

*/ inline void SetAwsvpcConfiguration(const AwsVpcConfiguration& value) { m_awsvpcConfigurationHasBeenSet = true; m_awsvpcConfiguration = value; } /** *

The VPC subnets and security groups that are associated with a task.

*

All specified subnets and security groups must be from the same * VPC.

*/ inline void SetAwsvpcConfiguration(AwsVpcConfiguration&& value) { m_awsvpcConfigurationHasBeenSet = true; m_awsvpcConfiguration = std::move(value); } /** *

The VPC subnets and security groups that are associated with a task.

*

All specified subnets and security groups must be from the same * VPC.

*/ inline NetworkConfiguration& WithAwsvpcConfiguration(const AwsVpcConfiguration& value) { SetAwsvpcConfiguration(value); return *this;} /** *

The VPC subnets and security groups that are associated with a task.

*

All specified subnets and security groups must be from the same * VPC.

*/ inline NetworkConfiguration& WithAwsvpcConfiguration(AwsVpcConfiguration&& value) { SetAwsvpcConfiguration(std::move(value)); return *this;} private: AwsVpcConfiguration m_awsvpcConfiguration; bool m_awsvpcConfigurationHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws