Class Callback
The Callback Object is a map of possible out-of-band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the callback object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.
OpenAPI Specification:
The Callback Object is composed of the following fields:
- callbacks (map of- PathItem) - A map of possible out-of-band callbacks related to the parent operation
Example:
   
   
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddCallback(String expression, PathItem pathItem) Adds a callback.copy()Creates a copy of this object.<T> TGeneric property getter.Returns the callbacks map.keySet()Returns all the keys on this element.Generic property setter.setCallbacks(Map<String, PathItem> value) Sets the callbacks map.strict()Sets strict mode on this bean.Sets strict mode on this bean.
- 
Constructor Details- 
Callbackpublic Callback()Default constructor.
- 
CallbackCopy constructor.- Parameters:
- copyFrom- The object to copy.
 
 
- 
- 
Method Details- 
getCallbacksReturns the callbacks map.- Returns:
- The callbacks map.
 
- 
setCallbacksSets the callbacks map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
addCallbackAdds a callback.- Parameters:
- expression- The callback expression. Must not be- null .
- pathItem- The path item for the callback. Must not be- null .
- Returns:
- This object.
 
- 
copyCreates a copy of this object.- Returns:
- A copy of 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 .
 
- 
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
 
 
-