Class BusinessUnitSetAssociatesActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetAssociatesActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSetAssociatesAction>
public class BusinessUnitSetAssociatesActionBuilder
extends Object
implements Builder<BusinessUnitSetAssociatesAction>
BusinessUnitSetAssociatesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitSetAssociatesAction businessUnitSetAssociatesAction = BusinessUnitSetAssociatesAction.builder()
.plusAssociates(associatesBuilder -> associatesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe new list of Associates.associates
(AssociateDraft... associates) The new list of Associates.associates
(List<AssociateDraft> associates) The new list of Associates.build()
builds BusinessUnitSetAssociatesAction with checking for non-null required valuesbuilds BusinessUnitSetAssociatesAction without checking for non-null required valuesThe new list of Associates.of()
factory method for an instance of BusinessUnitSetAssociatesActionBuilderof
(BusinessUnitSetAssociatesAction template) create builder for BusinessUnitSetAssociatesAction instanceplusAssociates
(AssociateDraft... associates) The new list of Associates.The new list of Associates.The new list of Associates.The new list of Associates.
-
Constructor Details
-
BusinessUnitSetAssociatesActionBuilder
public BusinessUnitSetAssociatesActionBuilder()
-
-
Method Details
-
associates
The new list of Associates. If empty, existing values will be removed.
- Parameters:
associates
- value to be set- Returns:
- Builder
-
associates
The new list of Associates. If empty, existing values will be removed.
- Parameters:
associates
- value to be set- Returns:
- Builder
-
plusAssociates
The new list of Associates. If empty, existing values will be removed.
- Parameters:
associates
- value to be set- Returns:
- Builder
-
plusAssociates
public BusinessUnitSetAssociatesActionBuilder plusAssociates(Function<AssociateDraftBuilder, AssociateDraftBuilder> builder) The new list of Associates. If empty, existing values will be removed.
- Parameters:
builder
- function to build the associates value- Returns:
- Builder
-
withAssociates
public BusinessUnitSetAssociatesActionBuilder withAssociates(Function<AssociateDraftBuilder, AssociateDraftBuilder> builder) The new list of Associates. If empty, existing values will be removed.
- Parameters:
builder
- function to build the associates value- Returns:
- Builder
-
addAssociates
public BusinessUnitSetAssociatesActionBuilder addAssociates(Function<AssociateDraftBuilder, AssociateDraft> builder) The new list of Associates. If empty, existing values will be removed.
- Parameters:
builder
- function to build the associates value- Returns:
- Builder
-
setAssociates
public BusinessUnitSetAssociatesActionBuilder setAssociates(Function<AssociateDraftBuilder, AssociateDraft> builder) The new list of Associates. If empty, existing values will be removed.
- Parameters:
builder
- function to build the associates value- Returns:
- Builder
-
getAssociates
The new list of Associates. If empty, existing values will be removed.
- Returns:
- associates
-
build
builds BusinessUnitSetAssociatesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSetAssociatesAction>
- Returns:
- BusinessUnitSetAssociatesAction
-
buildUnchecked
builds BusinessUnitSetAssociatesAction without checking for non-null required values- Returns:
- BusinessUnitSetAssociatesAction
-
of
factory method for an instance of BusinessUnitSetAssociatesActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitSetAssociatesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-