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