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(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.
|
default 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, extensions, getExtensions, removeExtension, setExtensions
String getDescription()
void setDescription(String description)
description
- the brief description of the RequestBodydefault RequestBody description(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 RequestBodyBoolean getRequired()
void setRequired(Boolean required)
required
- true iff the RequestBody is required, false otherwisedefault RequestBody required(Boolean required)
required
- true iff the RequestBody is required, false otherwiseCopyright © 2017 – 2020 Eclipse Foundation. All rights reserved.
Use is subject to license terms.