Package com.commercetools.api.models.me
Class MyBusinessUnitChangeAssociateActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitChangeAssociateActionBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitChangeAssociateAction>
public class MyBusinessUnitChangeAssociateActionBuilder
extends Object
implements Builder<MyBusinessUnitChangeAssociateAction>
MyBusinessUnitChangeAssociateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitChangeAssociateAction myBusinessUnitChangeAssociateAction = MyBusinessUnitChangeAssociateAction.builder()
.associate(associateBuilder -> associateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociate
(AssociateDraft associate) The Associate to add.The Associate to add.build()
builds MyBusinessUnitChangeAssociateAction with checking for non-null required valuesbuilds MyBusinessUnitChangeAssociateAction without checking for non-null required valuesThe Associate to add.of()
factory method for an instance of MyBusinessUnitChangeAssociateActionBuilderof
(MyBusinessUnitChangeAssociateAction template) create builder for MyBusinessUnitChangeAssociateAction instanceThe Associate to add.
-
Constructor Details
-
MyBusinessUnitChangeAssociateActionBuilder
public MyBusinessUnitChangeAssociateActionBuilder()
-
-
Method Details
-
associate
public MyBusinessUnitChangeAssociateActionBuilder associate(Function<AssociateDraftBuilder, AssociateDraftBuilder> builder) The Associate to add.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
withAssociate
public MyBusinessUnitChangeAssociateActionBuilder 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 MyBusinessUnitChangeAssociateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitChangeAssociateAction>
- Returns:
- MyBusinessUnitChangeAssociateAction
-
buildUnchecked
builds MyBusinessUnitChangeAssociateAction without checking for non-null required values- Returns:
- MyBusinessUnitChangeAssociateAction
-
of
factory method for an instance of MyBusinessUnitChangeAssociateActionBuilder- Returns:
- builder
-
of
public static MyBusinessUnitChangeAssociateActionBuilder of(MyBusinessUnitChangeAssociateAction template) create builder for MyBusinessUnitChangeAssociateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-