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