/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A port mapping for the container.See Also:
AWS
* API Reference
The port number on the container that is bound to the user-specified or * automatically assigned host port.
*/ inline int GetContainerPort() const{ return m_containerPort; } /** *The port number on the container that is bound to the user-specified or * automatically assigned host port.
*/ inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; } /** *The port number on the container that is bound to the user-specified or * automatically assigned host port.
*/ inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; } /** *The port number on the container that is bound to the user-specified or * automatically assigned host port.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails& WithContainerPort(int value) { SetContainerPort(value); return *this;} /** *The port number on the container instance to reserve for the container.
*/ inline int GetHostPort() const{ return m_hostPort; } /** *The port number on the container instance to reserve for the container.
*/ inline bool HostPortHasBeenSet() const { return m_hostPortHasBeenSet; } /** *The port number on the container instance to reserve for the container.
*/ inline void SetHostPort(int value) { m_hostPortHasBeenSet = true; m_hostPort = value; } /** *The port number on the container instance to reserve for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails& WithHostPort(int value) { SetHostPort(value); return *this;} /** *The protocol used for the port mapping. The default is tcp
.
The protocol used for the port mapping. The default is tcp
.
The protocol used for the port mapping. The default is tcp
.
The protocol used for the port mapping. The default is tcp
.
The protocol used for the port mapping. The default is tcp
.
The protocol used for the port mapping. The default is tcp
.
The protocol used for the port mapping. The default is tcp
.
The protocol used for the port mapping. The default is tcp
.