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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerCreatedMessagePayloadbuilder(CustomerCreatedMessagePayload template) create builder for CustomerCreatedMessagePayload instancecopyDeep()deepCopy(CustomerCreatedMessagePayload template) factory method to create a deep copy of CustomerCreatedMessagePayload@NotNull @Valid CustomerCustomer that was created.of()factory methodof(CustomerCreatedMessagePayload template) factory method to create a shallow copy CustomerCreatedMessagePayloadvoidsetCustomer(Customer customer) Customer that was created.static com.fasterxml.jackson.core.type.TypeReference<CustomerCreatedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods 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
-
copyDeep
CustomerCreatedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-