public Optional<String> hostname() {
        return Optional.ofNullable(this.hostname);
    }
@return hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation.
sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPatch.java