public ApiListingBuilder consumes ( Set < String > mediaTypes ) { if ( mediaTypes != null ) { this . consumes = new HashSet <> ( mediaTypes ) ; } return this ; }
Replaces the existing media types with new entries that this documentation consumes