Package com.commercetools.api.models.me
Class MyCartSetCustomTypeActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<MyCartSetCustomTypeAction>
public class MyCartSetCustomTypeActionBuilder
extends Object
implements Builder<MyCartSetCustomTypeAction>
MyCartSetCustomTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetCustomTypeAction myCartSetCustomTypeAction = MyCartSetCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyCartSetCustomTypeAction with checking for non-null required valuesbuilds MyCartSetCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Cart.Sets the Custom Fields fields for the Cart.Sets the Custom Fields fields for the Cart.getType()
Defines the Type that extends the Cart with Custom Fields.of()
factory method for an instance of MyCartSetCustomTypeActionBuilderof
(MyCartSetCustomTypeAction template) create builder for MyCartSetCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Cart with Custom Fields.Defines the Type that extends the Cart with Custom Fields.Sets the Custom Fields fields for the Cart.Defines the Type that extends the Cart with Custom Fields.
-
Constructor Details
-
MyCartSetCustomTypeActionBuilder
public MyCartSetCustomTypeActionBuilder()
-
-
Method Details
-
type
public MyCartSetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public MyCartSetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public MyCartSetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Cart.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public MyCartSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Cart.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Cart.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Cart.
- Returns:
- fields
-
build
builds MyCartSetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartSetCustomTypeAction>
- Returns:
- MyCartSetCustomTypeAction
-
buildUnchecked
builds MyCartSetCustomTypeAction without checking for non-null required values- Returns:
- MyCartSetCustomTypeAction
-
of
factory method for an instance of MyCartSetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for MyCartSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-