Interface CustomerCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create Customer request.
Example to create an instance using the builder pattern
CustomerCreatedMessagePayload customerCreatedMessagePayload = CustomerCreatedMessagePayload.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerCreatedMessagePayloadbuilder
(CustomerCreatedMessagePayload template) create builder for CustomerCreatedMessagePayload instancedeepCopy
(CustomerCreatedMessagePayload template) factory method to create a deep copy of CustomerCreatedMessagePayload@NotNull @Valid Customer
Customer that was created.of()
factory methodof
(CustomerCreatedMessagePayload template) factory method to create a shallow copy CustomerCreatedMessagePayloadvoid
setCustomer
(Customer customer) Customer that was created.static com.fasterxml.jackson.core.type.TypeReference<CustomerCreatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_CREATED
discriminator value for CustomerCreatedMessagePayload- See Also:
-
-
Method Details
-
getCustomer
Customer that was created.
- Returns:
- customer
-
setCustomer
Customer that was created.
- Parameters:
customer
- value to be set
-
of
factory method- Returns:
- instance of CustomerCreatedMessagePayload
-
of
factory method to create a shallow copy CustomerCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerCreatedMessagePayload deepCopy(@Nullable CustomerCreatedMessagePayload template) factory method to create a deep copy of CustomerCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerCreatedMessagePayload- Returns:
- builder
-
builder
create builder for CustomerCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerCreatedMessagePayload
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
-