public void setPortMappings(java.util.Collection<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails> portMappings) {
        if (portMappings == null) {
            this.portMappings = null;
            return;
        }

        this.portMappings = new java.util.ArrayList<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>(portMappings);
    }
<p>
The list of port mappings for the container.
</p>

@param portMappings
       The list of port mappings for the container.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionContainerDefinitionsDetails.java