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