public Optional<APIServiceSpec> spec() {
        return Optional.ofNullable(this.spec);
    }
@return Spec contains information for locating and communicating with a server
sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIService.java