public interface Content extends Constructible, java.util.Map<java.lang.String,MediaType>
A map to assist describing the media types for an operation's parameter or response.
Modifier and Type | Method and Description |
---|---|
Content |
addMediaType(java.lang.String name,
MediaType mediaType)
Adds the MediaType for this Content, where the key is the name of the MediaType and the value is the object that describes the content passed
into or returned from an operation.
|
Content addMediaType(java.lang.String name, MediaType mediaType)
name
- the name of a media type e.g. application/json.mediaType
- an object that describes the content passed into or returned from an operation.