Class OrderSetLocaleActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetLocaleActionBuilder
- All Implemented Interfaces:
Builder<OrderSetLocaleAction>
OrderSetLocaleActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetLocaleAction orderSetLocaleAction = OrderSetLocaleAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetLocaleAction with checking for non-null required valuesbuilds OrderSetLocaleAction without checking for non-null required valuesValue to set.Value to set.static OrderSetLocaleActionBuilder
of()
factory method for an instance of OrderSetLocaleActionBuilderstatic OrderSetLocaleActionBuilder
of
(OrderSetLocaleAction template) create builder for OrderSetLocaleAction instance
-
Constructor Details
-
OrderSetLocaleActionBuilder
public OrderSetLocaleActionBuilder()
-
-
Method Details
-
locale
Value to set. Must be one of the Project's languages. If empty, any existing value is removed.
- Parameters:
locale
- value to be set- Returns:
- Builder
-
getLocale
Value to set. Must be one of the Project's languages. If empty, any existing value is removed.
- Returns:
- locale
-
build
builds OrderSetLocaleAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetLocaleAction>
- Returns:
- OrderSetLocaleAction
-
buildUnchecked
builds OrderSetLocaleAction without checking for non-null required values- Returns:
- OrderSetLocaleAction
-
of
factory method for an instance of OrderSetLocaleActionBuilder- Returns:
- builder
-
of
create builder for OrderSetLocaleAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-