Class BusinessUnitAssociateAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitAssociateAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAssociateAddedMessagePayload>
public class BusinessUnitAssociateAddedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitAssociateAddedMessagePayload>
BusinessUnitAssociateAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAssociateAddedMessagePayload businessUnitAssociateAddedMessagePayload = BusinessUnitAssociateAddedMessagePayload.builder()
.associate(associateBuilder -> associateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe Associate that was added to the Business Unit.associate
(Function<AssociateBuilder, AssociateBuilder> builder) The Associate that was added to the Business Unit.build()
builds BusinessUnitAssociateAddedMessagePayload with checking for non-null required valuesbuilds BusinessUnitAssociateAddedMessagePayload without checking for non-null required valuesThe Associate that was added to the Business Unit.of()
factory method for an instance of BusinessUnitAssociateAddedMessagePayloadBuilderof
(BusinessUnitAssociateAddedMessagePayload template) create builder for BusinessUnitAssociateAddedMessagePayload instancewithAssociate
(Function<AssociateBuilder, Associate> builder) The Associate that was added to the Business Unit.
-
Constructor Details
-
BusinessUnitAssociateAddedMessagePayloadBuilder
public BusinessUnitAssociateAddedMessagePayloadBuilder()
-
-
Method Details
-
associate
public BusinessUnitAssociateAddedMessagePayloadBuilder associate(Function<AssociateBuilder, AssociateBuilder> builder) The Associate that was added to the Business Unit.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
withAssociate
public BusinessUnitAssociateAddedMessagePayloadBuilder withAssociate(Function<AssociateBuilder, Associate> builder) The Associate that was added to the Business Unit.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
associate
The Associate that was added to the Business Unit.
- Parameters:
associate
- value to be set- Returns:
- Builder
-
getAssociate
The Associate that was added to the Business Unit.
- Returns:
- associate
-
build
builds BusinessUnitAssociateAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAssociateAddedMessagePayload>
- Returns:
- BusinessUnitAssociateAddedMessagePayload
-
buildUnchecked
builds BusinessUnitAssociateAddedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitAssociateAddedMessagePayload
-
of
factory method for an instance of BusinessUnitAssociateAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitAssociateAddedMessagePayloadBuilder of(BusinessUnitAssociateAddedMessagePayload template) create builder for BusinessUnitAssociateAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-