private Optional<RequestBodyObject> createRequestPayload(
            String mediaTypeRange,
            Context<T> context,
            HttpBinding binding,
            OperationShape operation
    ) {
        // API Gateway validation requires that in-line schemas must be objects
        // or arrays. These schemas are synthesized as references so that
        // any schemas with string types will pass validation.
        Schema schema = context.inlineOrReferenceSchema(binding.getMember());
        MediaTypeObject mediaTypeObject = getMediaTypeObject(context, schema, operation, shape -> {
            String shapeName = context.getService().getContextualName(shape.getId());
            return shapeName + "InputPayload";
        }).toBuilder()
                .examples(createExamplesForMembersWithHttpTraits(
                        operation,
                        binding,
                        MessageType.REQUEST,
                        null))
                .build();
        RequestBodyObject requestBodyObject = RequestBodyObject.builder()
                .putContent(Objects.requireNonNull(mediaTypeRange), mediaTypeObject)
                .required(binding.getMember().isRequired())
                .build();
        return Optional.of(requestBodyObject);
    }
Gets the media type of an event stream for the protocol.

<p>By default, this method returns the binary AWS event stream
media type, {@code application/vnd.amazon.eventstream}.

@param context Conversion context.
@param info Event stream info to provide the media type for.
@return Returns the media type of the event stream.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/protocols/AbstractRestProtocol.java