public AwsEcsTaskDefinitionContainerDefinitionsDetails withPortMappings(
            java.util.Collection<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails> portMappings) {
        setPortMappings(portMappings);
        return this;
    }
<p>
The list of port mappings for the container.
</p>

@param portMappings
       The list of port mappings for the container.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionContainerDefinitionsDetails.java