Top Description Methods
org.eclipse.microprofile.openapi.models.parameters

public Interface RequestBody

extends Constructible, Extensible<RequestBody>, Reference<RequestBody>
Imports
org.eclipse.microprofile.openapi.models.Constructible, .Extensible, .Reference, org.eclipse.microprofile.openapi.models.media.Content

This interface represents the request body of an operation in which body parameters can be specified.
See Also
OpenAPI Specification Request Body Object

Method Summary

Modifier and TypeMethod and Description
public default RequestBody

Returns:

RequestBody instance with the modified content property
content
(Content
the content that describes the RequestBody
content
)

Sets the content of this instance of RequestBody, where the keys in content are media type names and the values describe it.

public default RequestBody

Returns:

this RequestBody instance
description
(String
the brief description of the RequestBody
description
)

Sets the description of this RequestBody and return this instance of RequestBody

public Content

Returns:

the content of this RequestBody
getContent
()

Returns the content of this instance of RequestBody, where the keys in content are media type names and the values describe it.

public String

Returns:

a brief description of the RequestBody
getDescription
()

Returns the description of this instance of RequestBody.

public Boolean

Returns:

true iff the RequestBody is required, false otherwise
getRequired
()

Returns whether this instance of RequestBody is required for the operation.

public default RequestBody

Returns:

this RequestBody instance
required
(Boolean
true iff the RequestBody is required, false otherwise
required
)

Sets whether this instance of RequestBody is required or not and returns this instance of RequestBody

public void
setContent(Content
the content that describes the RequestBody
content
)

Sets the content of this instance of RequestBody, where the keys in content are media type names and the values describe it.

public void
setDescription(String
the brief description of the RequestBody
description
)

Sets the description of this instance of RequestBody.

public void
setRequired(Boolean
true iff the RequestBody is required, false otherwise
required
)

Sets whether this instance of RequestBody is required or not.

Inherited from org.eclipse.microprofile.openapi.models.Extensible:
addExtensionextensionsgetExtensionsremoveExtensionsetExtensions
Inherited from org.eclipse.microprofile.openapi.models.Reference:
getRefrefsetRef

Method Detail

contentback to summary
public 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.

Parameters
content:Content

the content that describes the RequestBody

Returns:RequestBody

RequestBody instance with the modified content property

descriptionback to summary
public default RequestBody description(String description)

Sets the description of this RequestBody and return this instance of RequestBody

Parameters
description:String

the brief description of the RequestBody

Returns:RequestBody

this RequestBody instance

getContentback to summary
public Content getContent()

Returns the content of this instance of RequestBody, where the keys in content are media type names and the values describe it.

Returns:Content

the content of this RequestBody

getDescriptionback to summary
public String getDescription()

Returns the description of this instance of RequestBody.

Returns:String

a brief description of the RequestBody

getRequiredback to summary
public Boolean getRequired()

Returns whether this instance of RequestBody is required for the operation.

Returns:Boolean

true iff the RequestBody is required, false otherwise

requiredback to summary
public default RequestBody required(Boolean required)

Sets whether this instance of RequestBody is required or not and returns this instance of RequestBody

Parameters
required:Boolean

true iff the RequestBody is required, false otherwise

Returns:RequestBody

this RequestBody instance

setContentback to summary
public 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.

Parameters
content:Content

the content that describes the RequestBody

setDescriptionback to summary
public void setDescription(String description)

Sets the description of this instance of RequestBody. to the parameter.

Parameters
description:String

the brief description of the RequestBody

setRequiredback to summary
public void setRequired(Boolean required)

Sets whether this instance of RequestBody is required or not.

Parameters
required:Boolean

true iff the RequestBody is required, false otherwise