public Optional<Output<List<String>>> hostnames() {
        return Optional.ofNullable(this.hostnames);
    }
@return Hostnames for the above IP address.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HostAliasArgs.java