private static ResourceArgs makeArgs(CustomResourceArgsBase args) {
        Objects.requireNonNull(args, "args must not be null");
        if (args.otherFields().isEmpty() || args.otherFields().get().isEmpty()) {
            // optimization: if there are no "other" fields, we can just return the args as-is.
            // Otherwise we generate a subclass of ResourceArgs that includes the "other" fields.
            return args;
        }
        return Util.generateResourceArgs(args, args.otherFields().get());
    }
@param name The _unique_ name of the resulting resource.
@param args The arguments to use to populate this resource's properties.
@param options A bag of options that control this resource's behavior.
sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/CustomResource.java