Class MediaTypeObject.Builder
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component.Builder<MediaTypeObject.Builder,MediaTypeObject>
-
- software.amazon.smithy.openapi.model.MediaTypeObject.Builder
-
- All Implemented Interfaces:
SmithyBuilder<MediaTypeObject>
- Enclosing class:
- MediaTypeObject
public static final class MediaTypeObject.Builder extends Component.Builder<MediaTypeObject.Builder,MediaTypeObject>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, ExampleObject example)
MediaTypeObject.Builder
schema(Schema schema)
-
Methods inherited from class software.amazon.smithy.openapi.model.Component.Builder
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
-
-
-
-
Method Detail
-
build
public MediaTypeObject 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
-
schema
public MediaTypeObject.Builder schema(Schema schema)
-
example
public MediaTypeObject.Builder example(Node example)
-
examples
public MediaTypeObject.Builder examples(java.util.Map<java.lang.String,Node> examples)
-
putExample
public MediaTypeObject.Builder putExample(java.lang.String name, ExampleObject example)
-
encoding
public MediaTypeObject.Builder encoding(java.util.Map<java.lang.String,EncodingObject> encoding)
-
putEncoding
public MediaTypeObject.Builder putEncoding(java.lang.String name, EncodingObject encodingObject)
-
-