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