public List<HostAlias> hostAliases() {
        return this.hostAliases == null ? List.of() : this.hostAliases;
    }
@return HostAliases is an optional list of hosts and IPs that will be injected into the pod&#39;s hosts file if specified.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpec.java