Package com.commercetools.api.models.me
Class MyQuoteRequestUpdateBuilder
java.lang.Object
com.commercetools.api.models.me.MyQuoteRequestUpdateBuilder
- All Implemented Interfaces:
Builder<MyQuoteRequestUpdate>
MyQuoteRequestUpdateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyQuoteRequestUpdate myQuoteRequestUpdate = MyQuoteRequestUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(MyQuoteRequestUpdateAction... actions) set values to the actionsactions
(List<MyQuoteRequestUpdateAction> actions) set value to the actionsbuild()
builds MyQuoteRequestUpdate with checking for non-null required valuesbuilds MyQuoteRequestUpdate without checking for non-null required valuesvalue of actions}value of version}static MyQuoteRequestUpdateBuilder
of()
factory method for an instance of MyQuoteRequestUpdateBuilderstatic MyQuoteRequestUpdateBuilder
of
(MyQuoteRequestUpdate template) create builder for MyQuoteRequestUpdate instanceplusActions
(MyQuoteRequestUpdateAction... actions) add values to the actionsplusActions
(Function<MyQuoteRequestUpdateActionBuilder, Builder<? extends MyQuoteRequestUpdateAction>> builder) add a value to the actions using the builder functionset the value to the versionwithActions
(Function<MyQuoteRequestUpdateActionBuilder, Builder<? extends MyQuoteRequestUpdateAction>> builder) set the value to the actions using the builder function
-
Constructor Details
-
MyQuoteRequestUpdateBuilder
public MyQuoteRequestUpdateBuilder()
-
-
Method Details
-
version
set the value to the version- Parameters:
version
- value to be set- Returns:
- Builder
-
actions
set values to the actions- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
set value to the actions- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
add values to the actions- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public MyQuoteRequestUpdateBuilder plusActions(Function<MyQuoteRequestUpdateActionBuilder, Builder<? extends MyQuoteRequestUpdateAction>> builder) add a value to the actions using the builder function- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public MyQuoteRequestUpdateBuilder withActions(Function<MyQuoteRequestUpdateActionBuilder, Builder<? extends MyQuoteRequestUpdateAction>> builder) set the value to the actions using the builder function- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
getVersion
value of version}- Returns:
- version
-
getActions
value of actions}- Returns:
- actions
-
build
builds MyQuoteRequestUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyQuoteRequestUpdate>
- Returns:
- MyQuoteRequestUpdate
-
buildUnchecked
builds MyQuoteRequestUpdate without checking for non-null required values- Returns:
- MyQuoteRequestUpdate
-
of
factory method for an instance of MyQuoteRequestUpdateBuilder- Returns:
- builder
-
of
create builder for MyQuoteRequestUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-