/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the network configuration for an ECS task.See Also:
* AWS
* API Reference
Specifies the Amazon 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; } /** *Specifies the Amazon 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; } /** *Specifies the Amazon 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; } /** *Specifies the Amazon 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); } /** *Specifies the Amazon 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;} /** *Specifies the Amazon 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 Scheduler } // namespace Aws