public interface RequestBody extends Constructible, Extensible, Reference<RequestBody>
Modifier and Type | Method and Description |
---|---|
RequestBody |
content(Content content)
Sets the content of this instance of RequestBody, where the keys in content are media type names and the values describe it.
|
RequestBody |
description(java.lang.String description)
Sets the description of this RequestBody and return this instance of RequestBody
|
Content |
getContent()
Returns the content of this instance of RequestBody, where the keys in content are media type names and the values describe it.
|
java.lang.String |
getDescription()
Returns the description of this instance of RequestBody.
|
java.lang.Boolean |
getRequired()
Returns whether this instance of RequestBody is required for the operation.
|
RequestBody |
required(java.lang.Boolean required)
Sets whether this instance of RequestBody is required or not and returns this instance of RequestBody
|
void |
setContent(Content content)
Sets the content of this instance of RequestBody, where the keys in content are media type names and the values describe it.
|
void |
setDescription(java.lang.String description)
Sets the description of this instance of RequestBody.
|
void |
setRequired(java.lang.Boolean required)
Sets whether this instance of RequestBody is required or not.
|
addExtension, getExtensions, setExtensions
java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the brief description of the RequestBodyRequestBody description(java.lang.String description)
description
- the brief description of the RequestBodyContent getContent()
void setContent(Content content)
content
- the content that describes the RequestBodyRequestBody content(Content content)
content
- the content that describes the RequestBodyjava.lang.Boolean getRequired()
void setRequired(java.lang.Boolean required)
required
- true iff the RequestBody is required, false otherwiseRequestBody required(java.lang.Boolean required)
required
- true iff the RequestBody is required, false otherwise