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