Class BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitCustomerGroupAssignmentRemovedMessagePayload>
public class BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitCustomerGroupAssignmentRemovedMessagePayload>
BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitCustomerGroupAssignmentRemovedMessagePayload businessUnitCustomerGroupAssignmentRemovedMessagePayload = BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.builder()
.customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds BusinessUnitCustomerGroupAssignmentRemovedMessagePayload with checking for non-null required valuesbuilds BusinessUnitCustomerGroupAssignmentRemovedMessagePayload without checking for non-null required valuescustomerGroupAssignment(CustomerGroupAssignment customerGroupAssignment) Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.customerGroupAssignment(Function<CustomerGroupAssignmentBuilder, CustomerGroupAssignmentBuilder> builder) Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.of()factory method for an instance of BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuildercreate builder for BusinessUnitCustomerGroupAssignmentRemovedMessagePayload instancewithCustomerGroupAssignment(Function<CustomerGroupAssignmentBuilder, CustomerGroupAssignment> builder) Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.
-
Constructor Details
-
BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder
public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder()
-
-
Method Details
-
customerGroupAssignment
public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignment(Function<CustomerGroupAssignmentBuilder, CustomerGroupAssignmentBuilder> builder) Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.
- Parameters:
builder- function to build the customerGroupAssignment value- Returns:
- Builder
-
withCustomerGroupAssignment
public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder withCustomerGroupAssignment(Function<CustomerGroupAssignmentBuilder, CustomerGroupAssignment> builder) Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.
- Parameters:
builder- function to build the customerGroupAssignment value- Returns:
- Builder
-
customerGroupAssignment
public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignment(CustomerGroupAssignment customerGroupAssignment) Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.
- Parameters:
customerGroupAssignment- value to be set- Returns:
- Builder
-
getCustomerGroupAssignment
Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.
- Returns:
- customerGroupAssignment
-
build
builds BusinessUnitCustomerGroupAssignmentRemovedMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<BusinessUnitCustomerGroupAssignmentRemovedMessagePayload>- Returns:
- BusinessUnitCustomerGroupAssignmentRemovedMessagePayload
-
buildUnchecked
builds BusinessUnitCustomerGroupAssignmentRemovedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitCustomerGroupAssignmentRemovedMessagePayload
-
of
factory method for an instance of BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder of(BusinessUnitCustomerGroupAssignmentRemovedMessagePayload template) create builder for BusinessUnitCustomerGroupAssignmentRemovedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-