public interface RequestBody extends Constructible, Extensible<RequestBody>, Reference<RequestBody>
Modifier and Type | Method and Description |
---|---|
default 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.
|
default 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.
|
default 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, extensions, getExtensions, removeExtension, setExtensions
java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the brief description of the RequestBodydefault RequestBody description(java.lang.String description)
description
- the brief description of the RequestBodyContent getContent()
void setContent(Content content)
content
- the content that describes the RequestBodydefault RequestBody 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 otherwisedefault RequestBody required(java.lang.Boolean required)
required
- true iff the RequestBody is required, false otherwise