Interface OpenApiRequestBody
-
- All Known Subinterfaces:
OpenApi30RequestBody,OpenApi31RequestBody
- All Known Implementing Classes:
OpenApi30RequestBodyImpl,OpenApi31RequestBodyImpl
public interface OpenApiRequestBody extends Node
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddContent(String name, OpenApiMediaType value)voidclearContent()OpenApiMediaTypecreateMediaType()Map<String,OpenApiMediaType>getContent()StringgetDescription()voidinsertContent(String name, OpenApiMediaType value, int atIndex)BooleanisRequired()voidremoveContent(String name)voidsetDescription(String value)voidsetRequired(Boolean value)-
Methods inherited from interface io.apicurio.datamodels.models.Node
addExtraProperty, attach, clearNodeAttributes, emptyClone, getExtraProperty, getExtraPropertyNames, getNodeAttribute, getNodeAttributeNames, hasExtraProperties, isAttached, mapPropertyName, modelId, parent, parentPropertyName, parentPropertyType, removeExtraProperty, root, setNodeAttribute
-
-
-
-
Method Detail
-
getDescription
String getDescription()
-
setDescription
void setDescription(String value)
-
isRequired
Boolean isRequired()
-
setRequired
void setRequired(Boolean value)
-
createMediaType
OpenApiMediaType createMediaType()
-
getContent
Map<String,OpenApiMediaType> getContent()
-
addContent
void addContent(String name, OpenApiMediaType value)
-
clearContent
void clearContent()
-
removeContent
void removeContent(String name)
-
insertContent
void insertContent(String name, OpenApiMediaType value, int atIndex)
-
-