public static final class Schema.Builder extends java.lang.Object implements SmithyBuilder<Schema>
Modifier and Type | Method and Description |
---|---|
Schema.Builder |
additionalProperties(Schema additionalProperties) |
Schema.Builder |
allOf(java.util.List<Schema> allOf) |
Schema.Builder |
anyOf(java.util.List<Schema> anyOf) |
Schema |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
Schema.Builder |
comment(java.lang.String comment) |
Schema.Builder |
constValue(Node constValue) |
Schema.Builder |
contentEncoding(java.lang.String contentEncoding) |
Schema.Builder |
contentMediaType(java.lang.String contentMediaType) |
Schema.Builder |
defaultValue(Node defaultValue) |
Schema.Builder |
description(java.lang.String description) |
Schema.Builder |
disableProperty(java.lang.String propertyName)
Disables a specific JSON schema property by name.
|
Schema.Builder |
enumValues(java.util.Collection<java.lang.String> enumValues) |
Schema.Builder |
examples(Node examples) |
Schema.Builder |
exclusiveMaximum(java.lang.Number exclusiveMaximum) |
Schema.Builder |
exclusiveMinimum(java.lang.Number exclusiveMinimum) |
Schema.Builder |
extensions(java.util.Map<java.lang.String,Node> extensions) |
Schema.Builder |
format(java.lang.String format) |
java.util.Optional<java.lang.String> |
getFormat() |
Schema.Builder |
items(Schema items) |
Schema.Builder |
maximum(java.lang.Number maximum) |
Schema.Builder |
maxItems(java.lang.Integer maxItems) |
Schema.Builder |
maxLength(java.lang.Long maxLength) |
Schema.Builder |
maxProperties(java.lang.Integer maxProperties) |
Schema.Builder |
minimum(java.lang.Number minimum) |
Schema.Builder |
minItems(java.lang.Integer minItems) |
Schema.Builder |
minLength(java.lang.Long minLength) |
Schema.Builder |
minProperties(java.lang.Integer minProperties) |
Schema.Builder |
multipleOf(java.lang.Number multipleOf) |
Schema.Builder |
not(Schema not) |
Schema.Builder |
oneOf(java.util.List<Schema> oneOf) |
Schema.Builder |
pattern(java.lang.String pattern) |
Schema.Builder |
patternProperties(java.util.Map<java.lang.String,Schema> patternProperties) |
Schema.Builder |
properties(java.util.Map<java.lang.String,Schema> properties) |
Schema.Builder |
propertyNames(Schema propertyNames) |
Schema.Builder |
putExtension(java.lang.String key,
ToNode value) |
Schema.Builder |
putPatternProperty(java.lang.String key,
Schema value) |
Schema.Builder |
putProperty(java.lang.String key,
Schema value) |
Schema.Builder |
readOnly(boolean readOnly) |
Schema.Builder |
ref(java.lang.String ref) |
Schema.Builder |
removeExtension(java.lang.String key) |
Schema.Builder |
removePatternProperty(java.lang.String key) |
Schema.Builder |
removeProperty(java.lang.String key) |
Schema.Builder |
required(java.util.Collection<java.lang.String> required) |
Schema.Builder |
title(java.lang.String title) |
Schema.Builder |
type(java.lang.String type) |
Schema.Builder |
uniqueItems(boolean uniqueItems) |
Schema.Builder |
writeOnly(boolean writeOnly) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public Schema build()
SmithyBuilder
build
in interface SmithyBuilder<Schema>
public Schema.Builder ref(java.lang.String ref)
public Schema.Builder type(java.lang.String type)
public Schema.Builder defaultValue(Node defaultValue)
public Schema.Builder enumValues(java.util.Collection<java.lang.String> enumValues)
public Schema.Builder constValue(Node constValue)
public Schema.Builder multipleOf(java.lang.Number multipleOf)
public Schema.Builder maximum(java.lang.Number maximum)
public Schema.Builder exclusiveMaximum(java.lang.Number exclusiveMaximum)
public Schema.Builder minimum(java.lang.Number minimum)
public Schema.Builder exclusiveMinimum(java.lang.Number exclusiveMinimum)
public Schema.Builder maxLength(java.lang.Long maxLength)
public Schema.Builder minLength(java.lang.Long minLength)
public Schema.Builder pattern(java.lang.String pattern)
public Schema.Builder items(Schema items)
public Schema.Builder maxItems(java.lang.Integer maxItems)
public Schema.Builder minItems(java.lang.Integer minItems)
public Schema.Builder uniqueItems(boolean uniqueItems)
public Schema.Builder maxProperties(java.lang.Integer maxProperties)
public Schema.Builder minProperties(java.lang.Integer minProperties)
public Schema.Builder required(java.util.Collection<java.lang.String> required)
public Schema.Builder properties(java.util.Map<java.lang.String,Schema> properties)
public Schema.Builder putProperty(java.lang.String key, Schema value)
public Schema.Builder removeProperty(java.lang.String key)
public Schema.Builder additionalProperties(Schema additionalProperties)
public Schema.Builder propertyNames(Schema propertyNames)
public Schema.Builder patternProperties(java.util.Map<java.lang.String,Schema> patternProperties)
public Schema.Builder putPatternProperty(java.lang.String key, Schema value)
public Schema.Builder removePatternProperty(java.lang.String key)
public Schema.Builder allOf(java.util.List<Schema> allOf)
public Schema.Builder anyOf(java.util.List<Schema> anyOf)
public Schema.Builder oneOf(java.util.List<Schema> oneOf)
public Schema.Builder not(Schema not)
public Schema.Builder title(java.lang.String title)
public Schema.Builder description(java.lang.String description)
public java.util.Optional<java.lang.String> getFormat()
public Schema.Builder format(java.lang.String format)
public Schema.Builder readOnly(boolean readOnly)
public Schema.Builder writeOnly(boolean writeOnly)
public Schema.Builder comment(java.lang.String comment)
public Schema.Builder contentEncoding(java.lang.String contentEncoding)
public Schema.Builder contentMediaType(java.lang.String contentMediaType)
public Schema.Builder examples(Node examples)
public Schema.Builder extensions(java.util.Map<java.lang.String,Node> extensions)
public Schema.Builder putExtension(java.lang.String key, ToNode value)
public Schema.Builder removeExtension(java.lang.String key)
public Schema.Builder disableProperty(java.lang.String propertyName)
propertyName
- Property name to remove (e.g., "propertyNames").