Class ExtensionInputBuilder
- All Implemented Interfaces:
Builder<ExtensionInput>
Example to create an instance using the builder pattern
ExtensionInput extensionInput = ExtensionInput.builder()
.action(ExtensionAction.CREATE)
.resource(resourceBuilder -> resourceBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(ExtensionAction action) CreateorUpdaterequest.build()builds ExtensionInput with checking for non-null required valuesbuilds ExtensionInput without checking for non-null required valuesCreateorUpdaterequest.Expanded reference to the resource as it was before the update.Expanded reference to the resource that triggered the Extension.static ExtensionInputBuilderof()factory method for an instance of ExtensionInputBuilderstatic ExtensionInputBuilderof(ExtensionInput template) create builder for ExtensionInput instanceoldResource(Reference oldResource) Expanded reference to the resource as it was before the update.oldResource(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Expanded reference to the resource as it was before the update.Expanded reference to the resource that triggered the Extension.resource(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Expanded reference to the resource that triggered the Extension.
-
Constructor Details
-
ExtensionInputBuilder
public ExtensionInputBuilder()
-
-
Method Details
-
action
CreateorUpdaterequest.- Parameters:
action- value to be set- Returns:
- Builder
-
resource
Expanded reference to the resource that triggered the Extension.
- Parameters:
resource- value to be set- Returns:
- Builder
-
resource
public ExtensionInputBuilder resource(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Expanded reference to the resource that triggered the Extension.
- Parameters:
builder- function to build the resource value- Returns:
- Builder
-
oldResource
Expanded reference to the resource as it was before the update. Only included when
additionalContext.includeOldResourceistrueon the Extension and theactionisUpdate.- Parameters:
oldResource- value to be set- Returns:
- Builder
-
oldResource
public ExtensionInputBuilder oldResource(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Expanded reference to the resource as it was before the update. Only included when
additionalContext.includeOldResourceistrueon the Extension and theactionisUpdate.- Parameters:
builder- function to build the oldResource value- Returns:
- Builder
-
getAction
CreateorUpdaterequest.- Returns:
- action
-
getResource
Expanded reference to the resource that triggered the Extension.
- Returns:
- resource
-
getOldResource
Expanded reference to the resource as it was before the update. Only included when
additionalContext.includeOldResourceistrueon the Extension and theactionisUpdate.- Returns:
- oldResource
-
build
builds ExtensionInput with checking for non-null required values- Specified by:
buildin interfaceBuilder<ExtensionInput>- Returns:
- ExtensionInput
-
buildUnchecked
builds ExtensionInput without checking for non-null required values- Returns:
- ExtensionInput
-
of
factory method for an instance of ExtensionInputBuilder- Returns:
- builder
-
of
create builder for ExtensionInput instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-