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