interface in java.lang.annotation" class="external-link">Annotation</a>[]&nbsp;annotations,
 <a href="../MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;mediaType)</code></div>
<div class="col-last even-row-color">
<div class="block">Set a new message entity, including the attached annotations and the media type.</div>
</div>
</div>
</section>
</li>
<li>
<section class="detail" id="jakarta.ws.rs.container">
<h2>Uses of <a href="../MediaType.html" title="class in jakarta.ws.rs.core">Me