Class BusinessUnitAddAssociateActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitAddAssociateActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAddAssociateAction>
public class BusinessUnitAddAssociateActionBuilder
extends Object
implements Builder<BusinessUnitAddAssociateAction>
BusinessUnitAddAssociateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAddAssociateAction businessUnitAddAssociateAction = BusinessUnitAddAssociateAction.builder()
.associate(associateBuilder -> associateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociate
(AssociateDraft associate) The Associate to add.The Associate to add.build()
builds BusinessUnitAddAssociateAction with checking for non-null required valuesbuilds BusinessUnitAddAssociateAction without checking for non-null required valuesThe Associate to add.of()
factory method for an instance of BusinessUnitAddAssociateActionBuilderof
(BusinessUnitAddAssociateAction template) create builder for BusinessUnitAddAssociateAction instanceThe Associate to add.
-
Constructor Details
-
BusinessUnitAddAssociateActionBuilder
public BusinessUnitAddAssociateActionBuilder()
-
-
Method Details
-
associate
public BusinessUnitAddAssociateActionBuilder associate(Function<AssociateDraftBuilder, AssociateDraftBuilder> builder) The Associate to add.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
withAssociate
public BusinessUnitAddAssociateActionBuilder withAssociate(Function<AssociateDraftBuilder, AssociateDraft> builder) The Associate to add.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
associate
The Associate to add.
- Parameters:
associate
- value to be set- Returns:
- Builder
-
getAssociate
The Associate to add.
- Returns:
- associate
-
build
builds BusinessUnitAddAssociateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAddAssociateAction>
- Returns:
- BusinessUnitAddAssociateAction
-
buildUnchecked
builds BusinessUnitAddAssociateAction without checking for non-null required values- Returns:
- BusinessUnitAddAssociateAction
-
of
factory method for an instance of BusinessUnitAddAssociateActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitAddAssociateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-