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

This structure specifies the network configuration for an ECS * task.

See Also:

AWS * API Reference

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

Use this structure to specify the VPC subnets and security groups for the * task, and whether a public IP address is to be used. This structure is relevant * only for ECS tasks that use the awsvpc network mode.

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

Use this structure to specify the VPC subnets and security groups for the * task, and whether a public IP address is to be used. This structure is relevant * only for ECS tasks that use the awsvpc network mode.

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

Use this structure to specify the VPC subnets and security groups for the * task, and whether a public IP address is to be used. This structure is relevant * only for ECS tasks that use the awsvpc network mode.

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

Use this structure to specify the VPC subnets and security groups for the * task, and whether a public IP address is to be used. This structure is relevant * only for ECS tasks that use the awsvpc network mode.

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

Use this structure to specify the VPC subnets and security groups for the * task, and whether a public IP address is to be used. This structure is relevant * only for ECS tasks that use the awsvpc network mode.

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

Use this structure to specify the VPC subnets and security groups for the * task, and whether a public IP address is to be used. This structure is relevant * only for ECS tasks that use the awsvpc network mode.

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