Interface ExtensionInput
public interface ExtensionInput
ExtensionInput
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionInput extensionInput = ExtensionInput.builder()
.action(ExtensionAction.CREATE)
.resource(resourceBuilder -> resourceBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionInputBuilder
builder()
builder factory method for ExtensionInputstatic ExtensionInputBuilder
builder
(ExtensionInput template) create builder for ExtensionInput instancestatic ExtensionInput
deepCopy
(ExtensionInput template) factory method to create a deep copy of ExtensionInput@NotNull ExtensionAction
Create
orUpdate
request.@NotNull @Valid Reference
Expanded reference to the resource that triggered the Extension.static ExtensionInput
of()
factory methodstatic ExtensionInput
of
(ExtensionInput template) factory method to create a shallow copy ExtensionInputvoid
setAction
(ExtensionAction action) Create
orUpdate
request.void
setResource
(Reference resource) Expanded reference to the resource that triggered the Extension.static com.fasterxml.jackson.core.type.TypeReference<ExtensionInput>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withExtensionInput
(Function<ExtensionInput, T> helper) accessor map function
-
Method Details
-
getAction
Create
orUpdate
request.- Returns:
- action
-
getResource
Expanded reference to the resource that triggered the Extension.
- Returns:
- resource
-
setAction
Create
orUpdate
request.- Parameters:
action
- value to be set
-
setResource
Expanded reference to the resource that triggered the Extension.
- Parameters:
resource
- value to be set
-
of
factory method- Returns:
- instance of ExtensionInput
-
of
factory method to create a shallow copy ExtensionInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ExtensionInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExtensionInput- Returns:
- builder
-
builder
create builder for ExtensionInput instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withExtensionInput
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
-