Interface AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder,AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>, SdkBuilder<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder,AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>, SdkPojo
Enclosing class:
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails

public static interface AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder extends SdkPojo, CopyableBuilder<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder,AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>
  • Method Details

    • containerPort

      The port number on the container that is bound to the user-specified or automatically assigned host port.

      Parameters:
      containerPort - The port number on the container that is bound to the user-specified or automatically assigned host port.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostPort

      The port number on the container instance to reserve for the container.

      Parameters:
      hostPort - The port number on the container instance to reserve for the container.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      The protocol used for the port mapping. The default is tcp.

      Parameters:
      protocol - The protocol used for the port mapping. The default is tcp.
      Returns:
      Returns a reference to this object so that method calls can be chained together.