public CustomResourceDefinitionArgs build() {
            $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable();
            $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable();
            if ($.spec == null) {
                throw new MissingRequiredPropertyException("CustomResourceDefinitionArgs", "spec");
            }
            return $;
        }
@param spec spec describes how the user wants the resources to appear

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionArgs.java