public Optional<String> version() {
        return Optional.ofNullable(this.version);
    }
@return version is the API version of the defined custom resource. The custom resources are served under `/apis/&lt;group&gt;/&lt;version&gt;/...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead.
sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpec.java