public java.nio.ByteBuffer getBody() {
        return this.body;
    }
<p>
Inference response from the model in the format specified in the <code>contentType</code> header. To see the
format and content of the request and response bodies for different models, refer to <a
href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.
</p>
<p>
{@code ByteBuffer}s are stateful. Calling their {@code get} methods changes their {@code position}. We recommend
using {@link java.nio.ByteBuffer#asReadOnlyBuffer()} to create a read-only view of the buffer with an independent
{@code position}, and calling {@code get} methods on this rather than directly on the returned {@code ByteBuffer}.
Doing so will ensure that anyone else using the {@code ByteBuffer} will not be affected by changes to the
{@code position}.
</p>

@return Inference response from the model in the format specified in the <code>contentType</code> header. To see
        the format and content of the request and response bodies for different models, refer to <a
        href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference
        parameters</a>.
aws-java-sdk-bedrockruntime/src/main/java/com/amazonaws/services/bedrockruntime/model/InvokeModelResult.java