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