public Builder required(Collection<String> required) {
            if (required == null) {
                this.required.clear();
            } else {
                this.required = new ArrayList<>(required);
            }
            return this;
        }
Abstract class used to build Schema components.
smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/Schema.java