Class BusinessUnitAssociateModeChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitAssociateModeChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAssociateModeChangedMessagePayload>
public class BusinessUnitAssociateModeChangedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitAssociateModeChangedMessagePayload>
BusinessUnitAssociateModeChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAssociateModeChangedMessagePayload businessUnitAssociateModeChangedMessagePayload = BusinessUnitAssociateModeChangedMessagePayload.builder()
.associateMode(BusinessUnitAssociateMode.EXPLICIT)
.oldAssociateMode(BusinessUnitAssociateMode.EXPLICIT)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociateMode
(BusinessUnitAssociateMode associateMode) BusinessUnitAssociateMode of the Business Unit after the Change Associate Mode update action.build()
builds BusinessUnitAssociateModeChangedMessagePayload with checking for non-null required valuesbuilds BusinessUnitAssociateModeChangedMessagePayload without checking for non-null required valuesBusinessUnitAssociateMode of the Business Unit after the Change Associate Mode update action.BusinessUnitAssociateMode of the Business Unit before the Change Associate Mode update action.of()
factory method for an instance of BusinessUnitAssociateModeChangedMessagePayloadBuildercreate builder for BusinessUnitAssociateModeChangedMessagePayload instanceoldAssociateMode
(BusinessUnitAssociateMode oldAssociateMode) BusinessUnitAssociateMode of the Business Unit before the Change Associate Mode update action.
-
Constructor Details
-
BusinessUnitAssociateModeChangedMessagePayloadBuilder
public BusinessUnitAssociateModeChangedMessagePayloadBuilder()
-
-
Method Details
-
associateMode
public BusinessUnitAssociateModeChangedMessagePayloadBuilder associateMode(BusinessUnitAssociateMode associateMode) BusinessUnitAssociateMode of the Business Unit after the Change Associate Mode update action.
- Parameters:
associateMode
- value to be set- Returns:
- Builder
-
oldAssociateMode
public BusinessUnitAssociateModeChangedMessagePayloadBuilder oldAssociateMode(BusinessUnitAssociateMode oldAssociateMode) BusinessUnitAssociateMode of the Business Unit before the Change Associate Mode update action.
- Parameters:
oldAssociateMode
- value to be set- Returns:
- Builder
-
getAssociateMode
BusinessUnitAssociateMode of the Business Unit after the Change Associate Mode update action.
- Returns:
- associateMode
-
getOldAssociateMode
BusinessUnitAssociateMode of the Business Unit before the Change Associate Mode update action.
- Returns:
- oldAssociateMode
-
build
builds BusinessUnitAssociateModeChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAssociateModeChangedMessagePayload>
- Returns:
- BusinessUnitAssociateModeChangedMessagePayload
-
buildUnchecked
builds BusinessUnitAssociateModeChangedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitAssociateModeChangedMessagePayload
-
of
factory method for an instance of BusinessUnitAssociateModeChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitAssociateModeChangedMessagePayloadBuilder of(BusinessUnitAssociateModeChangedMessagePayload template) create builder for BusinessUnitAssociateModeChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-