Class BusinessUnitRemoveAssociateActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitRemoveAssociateActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitRemoveAssociateAction>
public class BusinessUnitRemoveAssociateActionBuilder
extends Object
implements Builder<BusinessUnitRemoveAssociateAction>
BusinessUnitRemoveAssociateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitRemoveAssociateAction businessUnitRemoveAssociateAction = BusinessUnitRemoveAssociateAction.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitRemoveAssociateAction with checking for non-null required valuesbuilds BusinessUnitRemoveAssociateAction without checking for non-null required valuescustomer
(CustomerResourceIdentifier customer) Associate to remove.Associate to remove.Associate to remove.of()
factory method for an instance of BusinessUnitRemoveAssociateActionBuilderof
(BusinessUnitRemoveAssociateAction template) create builder for BusinessUnitRemoveAssociateAction instanceAssociate to remove.
-
Constructor Details
-
BusinessUnitRemoveAssociateActionBuilder
public BusinessUnitRemoveAssociateActionBuilder()
-
-
Method Details
-
customer
public BusinessUnitRemoveAssociateActionBuilder customer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifierBuilder> builder) Associate to remove.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public BusinessUnitRemoveAssociateActionBuilder withCustomer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifier> builder) Associate to remove.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
Associate to remove.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
getCustomer
Associate to remove.
- Returns:
- customer
-
build
builds BusinessUnitRemoveAssociateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitRemoveAssociateAction>
- Returns:
- BusinessUnitRemoveAssociateAction
-
buildUnchecked
builds BusinessUnitRemoveAssociateAction without checking for non-null required values- Returns:
- BusinessUnitRemoveAssociateAction
-
of
factory method for an instance of BusinessUnitRemoveAssociateActionBuilder- Returns:
- builder
-
of
public static BusinessUnitRemoveAssociateActionBuilder of(BusinessUnitRemoveAssociateAction template) create builder for BusinessUnitRemoveAssociateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-