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(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.
|
String |
getDescription()
Returns the description of this instance of RequestBody.
|
Boolean |
getRequired()
Returns whether this instance of RequestBody is required for the operation.
|
RequestBody |
required(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(String description)
Sets the description of this instance of RequestBody.
|
void |
setRequired(Boolean required)
Sets whether this instance of RequestBody is required or not.
|
addExtension, getExtensions, setExtensionsString getDescription()
void setDescription(String description)
description - the brief description of the RequestBodyRequestBody description(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 RequestBodyBoolean getRequired()
void setRequired(Boolean required)
required - true iff the RequestBody is required, false otherwiseRequestBody required(Boolean required)
required - true iff the RequestBody is required, false otherwiseCopyright © 2018. All rights reserved.