Class BusinessUnitAssociatesSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitAssociatesSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAssociatesSetMessagePayload>
public class BusinessUnitAssociatesSetMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitAssociatesSetMessagePayload>
BusinessUnitAssociatesSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAssociatesSetMessagePayload businessUnitAssociatesSetMessagePayload = BusinessUnitAssociatesSetMessagePayload.builder()
.plusAssociates(associatesBuilder -> associatesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssociates(Function<AssociateBuilder, Associate> builder) The list of Associates that was updated on the Business Unit.associates(Associate... associates) The list of Associates that was updated on the Business Unit.associates(List<Associate> associates) The list of Associates that was updated on the Business Unit.build()builds BusinessUnitAssociatesSetMessagePayload with checking for non-null required valuesbuilds BusinessUnitAssociatesSetMessagePayload without checking for non-null required valuesThe list of Associates that was updated on the Business Unit.of()factory method for an instance of BusinessUnitAssociatesSetMessagePayloadBuilderof(BusinessUnitAssociatesSetMessagePayload template) create builder for BusinessUnitAssociatesSetMessagePayload instanceplusAssociates(Associate... associates) The list of Associates that was updated on the Business Unit.The list of Associates that was updated on the Business Unit.setAssociates(Function<AssociateBuilder, Associate> builder) The list of Associates that was updated on the Business Unit.The list of Associates that was updated on the Business Unit.
-
Constructor Details
-
BusinessUnitAssociatesSetMessagePayloadBuilder
public BusinessUnitAssociatesSetMessagePayloadBuilder()
-
-
Method Details
-
associates
The list of Associates that was updated on the Business Unit.
- Parameters:
associates- value to be set- Returns:
- Builder
-
associates
The list of Associates that was updated on the Business Unit.
- Parameters:
associates- value to be set- Returns:
- Builder
-
plusAssociates
The list of Associates that was updated on the Business Unit.
- Parameters:
associates- value to be set- Returns:
- Builder
-
plusAssociates
public BusinessUnitAssociatesSetMessagePayloadBuilder plusAssociates(Function<AssociateBuilder, AssociateBuilder> builder) The list of Associates that was updated on the Business Unit.
- Parameters:
builder- function to build the associates value- Returns:
- Builder
-
withAssociates
public BusinessUnitAssociatesSetMessagePayloadBuilder withAssociates(Function<AssociateBuilder, AssociateBuilder> builder) The list of Associates that was updated on the Business Unit.
- Parameters:
builder- function to build the associates value- Returns:
- Builder
-
addAssociates
public BusinessUnitAssociatesSetMessagePayloadBuilder addAssociates(Function<AssociateBuilder, Associate> builder) The list of Associates that was updated on the Business Unit.
- Parameters:
builder- function to build the associates value- Returns:
- Builder
-
setAssociates
public BusinessUnitAssociatesSetMessagePayloadBuilder setAssociates(Function<AssociateBuilder, Associate> builder) The list of Associates that was updated on the Business Unit.
- Parameters:
builder- function to build the associates value- Returns:
- Builder
-
getAssociates
The list of Associates that was updated on the Business Unit.
- Returns:
- associates
-
build
builds BusinessUnitAssociatesSetMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<BusinessUnitAssociatesSetMessagePayload>- Returns:
- BusinessUnitAssociatesSetMessagePayload
-
buildUnchecked
builds BusinessUnitAssociatesSetMessagePayload without checking for non-null required values- Returns:
- BusinessUnitAssociatesSetMessagePayload
-
of
factory method for an instance of BusinessUnitAssociatesSetMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitAssociatesSetMessagePayloadBuilder of(BusinessUnitAssociatesSetMessagePayload template) create builder for BusinessUnitAssociatesSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-