@Override
    public Builder toBuilder() {
        Builder builder = builder()
                .idKeyword(idKeyword)
                .schemaKeyword(schemaKeyword)
                .rootSchema(rootSchema)
                .extensions(extensions);
        definitions.forEach(builder::putDefinition);
        return builder;
    }
Returns a builder used to create a {@link SchemaDocument}.

@return Returns the created builder.
smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/SchemaDocument.java