Interface ExtensionAdditionalContext
public interface ExtensionAdditionalContext
Configures additional information included in the payload sent to the API Extension.
Example to create an instance using the builder pattern
ExtensionAdditionalContext extensionAdditionalContext = ExtensionAdditionalContext.builder()
.includeOldResource(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ExtensionAdditionalContextbuilder(ExtensionAdditionalContext template) create builder for ExtensionAdditionalContext instancecopyDeep()static ExtensionAdditionalContextdeepCopy(ExtensionAdditionalContext template) factory method to create a deep copy of ExtensionAdditionalContext@NotNull BooleanSet totrue, if the payload sent to the API Extension should include anoldResourcefield with the state of the resource before the update.static ExtensionAdditionalContextof()factory methodstatic ExtensionAdditionalContextof(ExtensionAdditionalContext template) factory method to create a shallow copy ExtensionAdditionalContextvoidsetIncludeOldResource(Boolean includeOldResource) Set totrue, if the payload sent to the API Extension should include anoldResourcefield with the state of the resource before the update.static com.fasterxml.jackson.core.type.TypeReference<ExtensionAdditionalContext>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getIncludeOldResource
Set to
true, if the payload sent to the API Extension should include anoldResourcefield with the state of the resource before the update. This only applies toUpdateactions. ForCreateactions,oldResourceis not included.- Returns:
- includeOldResource
-
setIncludeOldResource
Set to
true, if the payload sent to the API Extension should include anoldResourcefield with the state of the resource before the update. This only applies toUpdateactions. ForCreateactions,oldResourceis not included.- Parameters:
includeOldResource- value to be set
-
of
factory method- Returns:
- instance of ExtensionAdditionalContext
-
of
factory method to create a shallow copy ExtensionAdditionalContext- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ExtensionAdditionalContext copyDeep() -
deepCopy
factory method to create a deep copy of ExtensionAdditionalContext- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExtensionAdditionalContext- Returns:
- builder
-
builder
create builder for ExtensionAdditionalContext instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withExtensionAdditionalContext
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-