Interface CustomerGroupAssignment
public interface CustomerGroupAssignment
Represents an individual Customer Group assignment as a Reference to a CustomerGroup.
Example to create an instance using the builder pattern
CustomerGroupAssignment customerGroupAssignment = CustomerGroupAssignment.builder()
.customerGroup(customerGroupBuilder -> customerGroupBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerGroupAssignmentbuilder
(CustomerGroupAssignment template) create builder for CustomerGroupAssignment instancestatic CustomerGroupAssignment
deepCopy
(CustomerGroupAssignment template) factory method to create a deep copy of CustomerGroupAssignment@NotNull @Valid CustomerGroupReference
Reference to a Customer Group.static CustomerGroupAssignment
of()
factory methodstatic CustomerGroupAssignment
of
(CustomerGroupAssignment template) factory method to create a shallow copy CustomerGroupAssignmentvoid
setCustomerGroup
(CustomerGroupReference customerGroup) Reference to a Customer Group.static com.fasterxml.jackson.core.type.TypeReference<CustomerGroupAssignment>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getCustomerGroup
Reference to a Customer Group.
- Returns:
- customerGroup
-
setCustomerGroup
Reference to a Customer Group.
- Parameters:
customerGroup
- value to be set
-
of
factory method- Returns:
- instance of CustomerGroupAssignment
-
of
factory method to create a shallow copy CustomerGroupAssignment- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerGroupAssignment- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerGroupAssignment- Returns:
- builder
-
builder
create builder for CustomerGroupAssignment instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerGroupAssignment
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-