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