Interface AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder,,AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails> SdkBuilder<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder,,AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails> SdkPojo
- Enclosing class:
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails
@Mutable
@NotThreadSafe
public static interface AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder
extends SdkPojo, CopyableBuilder<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder,AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>
-
Method Summary
Modifier and TypeMethodDescriptioncontainerPort(Integer containerPort) The port number on the container that is bound to the user-specified or automatically assigned host port.The port number on the container instance to reserve for the container.The protocol used for the port mapping.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
containerPort
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder containerPort(Integer 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 istcp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-