public static final class SchemaDocument.Builder extends java.lang.Object implements SmithyBuilder<SchemaDocument>
| Modifier and Type | Method and Description |
|---|---|
SchemaDocument |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
SchemaDocument.Builder |
extensions(ObjectNode extensions)
Adds custom key-value pairs to the resulting JSON Schema document.
|
SchemaDocument.Builder |
idKeyword(java.lang.String idKeyword)
Sets the "$id" keyword.
|
SchemaDocument.Builder |
putDefinition(java.lang.String name,
Schema schema)
Adds a scheme definition to the builder.
|
SchemaDocument.Builder |
removeDefinition(java.lang.String name)
Removes a schema definition by name.
|
SchemaDocument.Builder |
rootSchema(Schema rootSchema)
Sets the root schema.
|
SchemaDocument.Builder |
schemaKeyword(java.lang.String schemaKeyword)
Sets the "$schema" keyword.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequiredStatepublic SchemaDocument build()
SmithyBuilderbuild in interface SmithyBuilder<SchemaDocument>public SchemaDocument.Builder idKeyword(java.lang.String idKeyword)
idKeyword - ID keyword URI to set.public SchemaDocument.Builder schemaKeyword(java.lang.String schemaKeyword)
schemaKeyword - Schema keyword URI to set.public SchemaDocument.Builder rootSchema(Schema rootSchema)
rootSchema - Root schema of the document.public SchemaDocument.Builder putDefinition(java.lang.String name, Schema schema)
name - Name of the schema.schema - Schema to associate to the name.public SchemaDocument.Builder removeDefinition(java.lang.String name)
name - Name of the schema to remove.public SchemaDocument.Builder extensions(ObjectNode extensions)
extensions - Extensions to apply.