Class BusinessUnitStatusChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitStatusChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitStatusChangedMessagePayload>
public class BusinessUnitStatusChangedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitStatusChangedMessagePayload>
BusinessUnitStatusChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitStatusChangedMessagePayload businessUnitStatusChangedMessagePayload = BusinessUnitStatusChangedMessagePayload.builder()
.active(BusinessUnitStatus.ACTIVE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactive
(BusinessUnitStatus active) Updated status of the Business Unit.build()
builds BusinessUnitStatusChangedMessagePayload with checking for non-null required valuesbuilds BusinessUnitStatusChangedMessagePayload without checking for non-null required valuesUpdated status of the Business Unit.of()
factory method for an instance of BusinessUnitStatusChangedMessagePayloadBuilderof
(BusinessUnitStatusChangedMessagePayload template) create builder for BusinessUnitStatusChangedMessagePayload instance
-
Constructor Details
-
BusinessUnitStatusChangedMessagePayloadBuilder
public BusinessUnitStatusChangedMessagePayloadBuilder()
-
-
Method Details
-
active
Updated status of the Business Unit.
- Parameters:
active
- value to be set- Returns:
- Builder
-
getActive
Updated status of the Business Unit.
- Returns:
- active
-
build
builds BusinessUnitStatusChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitStatusChangedMessagePayload>
- Returns:
- BusinessUnitStatusChangedMessagePayload
-
buildUnchecked
builds BusinessUnitStatusChangedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitStatusChangedMessagePayload
-
of
factory method for an instance of BusinessUnitStatusChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitStatusChangedMessagePayloadBuilder of(BusinessUnitStatusChangedMessagePayload template) create builder for BusinessUnitStatusChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-