Class UpdateActionBuilder
java.lang.Object
com.commercetools.api.models.common.UpdateActionBuilder
- All Implemented Interfaces:
Builder<UpdateAction>
UpdateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
UpdateAction updateAction = UpdateAction.builder()
.action("{action}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the actionbuild()
builds UpdateAction with checking for non-null required valuesbuilds UpdateAction without checking for non-null required valuesvalue of action}static UpdateActionBuilder
of()
factory method for an instance of UpdateActionBuilderstatic UpdateActionBuilder
of
(UpdateAction template) create builder for UpdateAction instance
-
Constructor Details
-
UpdateActionBuilder
public UpdateActionBuilder()
-
-
Method Details
-
action
set the value to the action- Parameters:
action
- value to be set- Returns:
- Builder
-
getAction
value of action}- Returns:
- action
-
build
builds UpdateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<UpdateAction>
- Returns:
- UpdateAction
-
buildUnchecked
builds UpdateAction without checking for non-null required values- Returns:
- UpdateAction
-
of
factory method for an instance of UpdateActionBuilder- Returns:
- builder
-
of
create builder for UpdateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-