public MessageProtocol withContentType ( String contentType ) { return new MessageProtocol ( Optional . ofNullable ( contentType ) , charset , version ) ; }
Return a copy of this message protocol with the content type set to the given content type .