public void setExtraHosts(java.util.Collection<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails> extraHosts) {
        if (extraHosts == null) {
            this.extraHosts = null;
            return;
        }

        this.extraHosts = new java.util.ArrayList<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails>(extraHosts);
    }
<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.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionContainerDefinitionsDetails.java