Class ParameterObject.Builder
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component.Builder<ParameterObject.Builder,ParameterObject>
-
- software.amazon.smithy.openapi.model.ParameterObject.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ParameterObject>
- Enclosing class:
- ParameterObject
public static final class ParameterObject.Builder extends Component.Builder<ParameterObject.Builder,ParameterObject>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterObject.Builder
allowEmptyValue(boolean allowEmptyValue)
ParameterObject.Builder
allowReserved(boolean allowReserved)
ParameterObject
build()
Creates an immutable object that is created from the properties that have been set on the builder.ParameterObject.Builder
content(java.util.Map<java.lang.String,MediaTypeObject> content)
ParameterObject.Builder
deprecated(boolean deprecated)
ParameterObject.Builder
description(java.lang.String description)
ParameterObject.Builder
example(Node example)
ParameterObject.Builder
examples(java.util.Map<java.lang.String,Node> examples)
ParameterObject.Builder
explode(boolean explode)
ParameterObject.Builder
in(java.lang.String in)
ParameterObject.Builder
name(java.lang.String name)
ParameterObject.Builder
putContent(java.lang.String name, MediaTypeObject mediaTypeObject)
ParameterObject.Builder
putExample(java.lang.String name, Node example)
ParameterObject.Builder
required(boolean required)
ParameterObject.Builder
schema(Schema schema)
ParameterObject.Builder
style(java.lang.String style)
-
Methods inherited from class software.amazon.smithy.openapi.model.Component.Builder
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
-
-
-
-
Method Detail
-
build
public ParameterObject build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
name
public ParameterObject.Builder name(java.lang.String name)
-
in
public ParameterObject.Builder in(java.lang.String in)
-
description
public ParameterObject.Builder description(java.lang.String description)
-
required
public ParameterObject.Builder required(boolean required)
-
deprecated
public ParameterObject.Builder deprecated(boolean deprecated)
-
allowEmptyValue
public ParameterObject.Builder allowEmptyValue(boolean allowEmptyValue)
-
style
public ParameterObject.Builder style(java.lang.String style)
-
explode
public ParameterObject.Builder explode(boolean explode)
-
allowReserved
public ParameterObject.Builder allowReserved(boolean allowReserved)
-
schema
public ParameterObject.Builder schema(Schema schema)
-
example
public ParameterObject.Builder example(Node example)
-
examples
public ParameterObject.Builder examples(java.util.Map<java.lang.String,Node> examples)
-
putExample
public ParameterObject.Builder putExample(java.lang.String name, Node example)
-
content
public ParameterObject.Builder content(java.util.Map<java.lang.String,MediaTypeObject> content)
-
putContent
public ParameterObject.Builder putContent(java.lang.String name, MediaTypeObject mediaTypeObject)
-
-