Class RequestBodyInfo
The Request Body Object describes a single request body that can be sent to an API operation. It includes a description, whether the request body is required, and the content (media types) that the request body can contain.
OpenAPI Specification:
The Request Body Object is composed of the following fields:
- description (string) - A brief description of the request body (CommonMark syntax may be used)
- content (map of- MediaType, REQUIRED) - The content of the request body (keys are media types)
- required (boolean) - Determines if the request body is required in the request (default is- false )
Example:
   
See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.RequestBodyInfo(RequestBodyInfo copyFrom) Copy constructor.
- 
Method SummaryModifier and TypeMethodDescriptionaddContent(String key, MediaType value) Adds one or more values to thecontent property.copy()Make a deep copy of this object.<T> TGeneric property getter.Bean property getter:content .Bean property getter:contentType .Bean property getter:required .keySet()Returns all the keys on this element.Generic property setter.setContent(Map<String, MediaType> value) Bean property setter:content .setDescription(String value) Bean property setter:url .setRequired(Boolean value) Bean property setter:explode .protected RequestBodyInfostrict()Sets strict mode on this bean.Sets strict mode on this bean.
- 
Constructor Details- 
RequestBodyInfopublic RequestBodyInfo()Default constructor.
- 
RequestBodyInfoCopy constructor.- Parameters:
- copyFrom- The object to copy.
 
 
- 
- 
Method Details- 
copyMake a deep copy of this object.- Returns:
- A deep copy of this object.
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Returns:
- This object
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Parameters:
- value- The new value for this property.
 Non-boolean values will be converted to boolean using- Boolean..- valueOf (value.toString())
 Can be- null (interpreted as- false ).
- Returns:
- This object
 
- 
getDescriptionBean property getter:contentType .The URL pointing to the contact information. - Returns:
- The property value, or null if it is not set.
 
- 
setDescriptionBean property setter:url .The value can be of any of the following types: URI,URL,String.
 Strings must be valid URIs.URIs defined by UriResolvercan be used for values.- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getContentBean property getter:content .- Returns:
- The property value, or null if it is not set.
 
- 
setContentBean property setter:content .- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
addContentAdds one or more values to thecontent property.- Parameters:
- key- The mapping key. Must not be- null .
- value- The values to add to this property.
 Must not be- null .
 Ignored if- null .
- Returns:
- This object
 
- 
getRequiredBean property getter:required .The type of the object. - Returns:
- The property value, or null if it is not set.
 
- 
setRequiredBean property setter:explode .The type of the object. - Parameters:
- value- The new value for this property.
 Property value is required.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getDescription copied from class:OpenApiElementGeneric property getter.Can be used to retrieve non-standard Swagger fields such as "$ref" .- Overrides:
- getin class- OpenApiElement
- Type Parameters:
- T- The datatype to cast the value to.
- Parameters:
- property- The property name to retrieve.
- type- The datatype to cast the value to.
- Returns:
- The property value, or null if the property does not exist or is not set.
 
- 
setDescription copied from class:OpenApiElementGeneric property setter.Can be used to set non-standard Swagger fields such as "$ref" .- Overrides:
- setin class- OpenApiElement
- Parameters:
- property- The property name to set. Must not be- null .
- value- The new value for the property.
- Returns:
- This object
 
- 
keySetDescription copied from class:OpenApiElementReturns all the keys on this element.- Overrides:
- keySetin class- OpenApiElement
- Returns:
- All the keys on this element.
   
 Nevernull .
 
 
-