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