Interface BusinessUnitCustomerGroupAssignmentAddedMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<Message>
Generated after a successful Add CustomerGroupAssignment update action.
Example to create an instance using the builder pattern
BusinessUnitCustomerGroupAssignmentAddedMessage businessUnitCustomerGroupAssignmentAddedMessage = BusinessUnitCustomerGroupAssignmentAddedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitCustomerGroupAssignmentAddedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitCustomerGroupAssignmentAddedMessagecreate builder for BusinessUnitCustomerGroupAssignmentAddedMessage instancecopyDeep()factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentAddedMessage@NotNull @Valid CustomerGroupAssignmentCustomer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.of()factory methodfactory method to create a shallow copy BusinessUnitCustomerGroupAssignmentAddedMessagevoidsetCustomerGroupAssignment(CustomerGroupAssignment customerGroupAssignment) Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitCustomerGroupAssignmentAddedMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBusinessUnitCustomerGroupAssignmentAddedMessage(Function<BusinessUnitCustomerGroupAssignmentAddedMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_ADDED
discriminator value for BusinessUnitCustomerGroupAssignmentAddedMessage- See Also:
-
-
Method Details
-
getCustomerGroupAssignment
Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.
- Returns:
- customerGroupAssignment
-
setCustomerGroupAssignment
Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.
- Parameters:
customerGroupAssignment- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitCustomerGroupAssignmentAddedMessage
-
of
static BusinessUnitCustomerGroupAssignmentAddedMessage of(BusinessUnitCustomerGroupAssignmentAddedMessage template) factory method to create a shallow copy BusinessUnitCustomerGroupAssignmentAddedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
@Nullable static BusinessUnitCustomerGroupAssignmentAddedMessage deepCopy(@Nullable BusinessUnitCustomerGroupAssignmentAddedMessage template) factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentAddedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitCustomerGroupAssignmentAddedMessage- Returns:
- builder
-
builder
static BusinessUnitCustomerGroupAssignmentAddedMessageBuilder builder(BusinessUnitCustomerGroupAssignmentAddedMessage template) create builder for BusinessUnitCustomerGroupAssignmentAddedMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitCustomerGroupAssignmentAddedMessage
default <T> T withBusinessUnitCustomerGroupAssignmentAddedMessage(Function<BusinessUnitCustomerGroupAssignmentAddedMessage, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitCustomerGroupAssignmentAddedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-