public class RequestBodyObjectBuilder extends Object
Constructor and Description |
---|
RequestBodyObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
RequestBodyObject |
build() |
static RequestBodyObjectBuilder |
requestBodyObject()
Creates a builder for a
RequestBodyObject |
RequestBodyObjectBuilder |
withContent(Map<String,MediaTypeObject> content) |
RequestBodyObjectBuilder |
withDescription(String description) |
RequestBodyObjectBuilder |
withRequired(boolean required) |
public RequestBodyObjectBuilder withDescription(String description)
description
- A brief description of the request body. This could contain examples of use.
CommonMark syntax MAY be used for rich text representation.public RequestBodyObjectBuilder withContent(Map<String,MediaTypeObject> content)
content
- REQUIRED. The content of the request body. The key is a media type or
media type range and the value describes it.
For requests that match multiple keys, only the most specific key is applicable. e.g. text/plain overrides text/*public RequestBodyObjectBuilder withRequired(boolean required)
required
- Determines if the request body is required in the request. Defaults to false
.public RequestBodyObject build()
public static RequestBodyObjectBuilder requestBodyObject()
RequestBodyObject
Copyright © 2017–2019. All rights reserved.