public static final class MediaTypeObject.Builder extends Component.Builder<MediaTypeObject.Builder,MediaTypeObject>
Modifier and Type | Method and Description |
---|---|
MediaTypeObject |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
MediaTypeObject.Builder |
encoding(java.util.Map<java.lang.String,EncodingObject> encoding) |
MediaTypeObject.Builder |
example(Node example) |
MediaTypeObject.Builder |
examples(java.util.Map<java.lang.String,Node> examples) |
MediaTypeObject.Builder |
putEncoding(java.lang.String name,
EncodingObject encodingObject) |
MediaTypeObject.Builder |
putExample(java.lang.String name,
Node example) |
MediaTypeObject.Builder |
schema(Schema schema) |
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public MediaTypeObject build()
SmithyBuilder
public MediaTypeObject.Builder schema(Schema schema)
public MediaTypeObject.Builder example(Node example)
public MediaTypeObject.Builder examples(java.util.Map<java.lang.String,Node> examples)
public MediaTypeObject.Builder putExample(java.lang.String name, Node example)
public MediaTypeObject.Builder encoding(java.util.Map<java.lang.String,EncodingObject> encoding)
public MediaTypeObject.Builder putEncoding(java.lang.String name, EncodingObject encodingObject)