Class MediaTypeObject
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component
-
- software.amazon.smithy.openapi.model.MediaTypeObject
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<MediaTypeObject>
public final class MediaTypeObject extends Component implements ToSmithyBuilder<MediaTypeObject>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MediaTypeObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaTypeObject.Builder
builder()
protected ObjectNode.Builder
createNodeBuilder()
java.util.Map<java.lang.String,EncodingObject>
getEncoding()
java.util.Optional<ExampleObject>
getExample()
java.util.Map<java.lang.String,ExampleObject>
getExamples()
java.util.Optional<Schema>
getSchema()
MediaTypeObject.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.-
Methods inherited from class software.amazon.smithy.openapi.model.Component
equals, getExtension, getExtensions, hashCode, toNode
-
-
-
-
Method Detail
-
builder
public static MediaTypeObject.Builder builder()
-
getSchema
public java.util.Optional<Schema> getSchema()
-
getExample
public java.util.Optional<ExampleObject> getExample()
-
getExamples
public java.util.Map<java.lang.String,ExampleObject> getExamples()
-
getEncoding
public java.util.Map<java.lang.String,EncodingObject> getEncoding()
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilder
in classComponent
-
toBuilder
public MediaTypeObject.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<MediaTypeObject>
- Returns:
- a builder for type T
-
-