public Builder patternProperties(Map<String, Schema> patternProperties) {
            this.patternProperties.clear();

            if (patternProperties != null) {
                patternProperties.forEach(this::putPatternProperty);
            }

            return this;
        }
Abstract class used to build Schema components.
smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/Schema.java