public AwsEcsTaskDefinitionContainerDefinitionsDetails withExtraHosts(
            java.util.Collection<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails> extraHosts) {
        setExtraHosts(extraHosts);
        return this;
    }
<p>
A list of hostnames and IP address mappings to append to the <b>/etc/hosts</b> file on the container.
</p>

@param extraHosts
       A list of hostnames and IP address mappings to append to the <b>/etc/hosts</b> file on 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