@Stability(value=Experimental) public static final class JsonSchema.Builder extends Object implements software.amazon.jsii.Builder<JsonSchema>
JsonSchema
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public JsonSchema.Builder additionalItems(List<? extends JsonSchema> additionalItems)
JsonSchema.getAdditionalItems()
additionalItems
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder additionalProperties(Boolean additionalProperties)
JsonSchema.getAdditionalProperties()
additionalProperties
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder additionalProperties(JsonSchema additionalProperties)
JsonSchema.getAdditionalProperties()
additionalProperties
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder allOf(List<? extends JsonSchema> allOf)
JsonSchema.getAllOf()
allOf
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder anyOf(List<? extends JsonSchema> anyOf)
JsonSchema.getAnyOf()
anyOf
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder contains(JsonSchema contains)
JsonSchema.getContains()
contains
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder contains(List<? extends JsonSchema> contains)
JsonSchema.getContains()
contains
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder defaultValue(Object defaultValue)
JsonSchema.getDefaultValue()
defaultValue
- The default value if you use an enum.this
@Stability(value=Experimental) public JsonSchema.Builder definitions(Map<String,? extends JsonSchema> definitions)
JsonSchema.getDefinitions()
definitions
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder dependencies(Map<String,? extends Object> dependencies)
JsonSchema.getDependencies()
dependencies
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder description(String description)
JsonSchema.getDescription()
description
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder enumValue(List<? extends Object> enumValue)
JsonSchema.getEnumValue()
enumValue
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder exclusiveMaximum(Boolean exclusiveMaximum)
JsonSchema.getExclusiveMaximum()
exclusiveMaximum
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder exclusiveMinimum(Boolean exclusiveMinimum)
JsonSchema.getExclusiveMinimum()
exclusiveMinimum
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder format(String format)
JsonSchema.getFormat()
format
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder id(String id)
JsonSchema.getId()
id
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder items(JsonSchema items)
JsonSchema.getItems()
items
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder items(List<? extends JsonSchema> items)
JsonSchema.getItems()
items
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder maximum(Number maximum)
JsonSchema.getMaximum()
maximum
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder maxItems(Number maxItems)
JsonSchema.getMaxItems()
maxItems
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder maxLength(Number maxLength)
JsonSchema.getMaxLength()
maxLength
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder maxProperties(Number maxProperties)
JsonSchema.getMaxProperties()
maxProperties
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder minimum(Number minimum)
JsonSchema.getMinimum()
minimum
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder minItems(Number minItems)
JsonSchema.getMinItems()
minItems
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder minLength(Number minLength)
JsonSchema.getMinLength()
minLength
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder minProperties(Number minProperties)
JsonSchema.getMinProperties()
minProperties
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder multipleOf(Number multipleOf)
JsonSchema.getMultipleOf()
multipleOf
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder not(JsonSchema not)
JsonSchema.getNot()
not
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder oneOf(List<? extends JsonSchema> oneOf)
JsonSchema.getOneOf()
oneOf
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder pattern(String pattern)
JsonSchema.getPattern()
pattern
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder patternProperties(Map<String,? extends JsonSchema> patternProperties)
JsonSchema.getPatternProperties()
patternProperties
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder properties(Map<String,? extends JsonSchema> properties)
JsonSchema.getProperties()
properties
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder propertyNames(JsonSchema propertyNames)
JsonSchema.getPropertyNames()
propertyNames
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder ref(String ref)
JsonSchema.getRef()
ref
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder required(List<String> required)
JsonSchema.getRequired()
required
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder schema(JsonSchemaVersion schema)
JsonSchema.getSchema()
schema
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder title(String title)
JsonSchema.getTitle()
title
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder type(JsonSchemaType type)
JsonSchema.getType()
type
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder type(List<? extends JsonSchemaType> type)
JsonSchema.getType()
type
- the value to be set.this
@Stability(value=Experimental) public JsonSchema.Builder uniqueItems(Boolean uniqueItems)
JsonSchema.getUniqueItems()
uniqueItems
- the value to be set.this
@Stability(value=Experimental) public JsonSchema build()
build
in interface software.amazon.jsii.Builder<JsonSchema>
JsonSchema
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.