Interface QuoteCustomerChangedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Change Customer update action.
Example to create an instance using the builder pattern
QuoteCustomerChangedMessage quoteCustomerChangedMessage = QuoteCustomerChangedMessage.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)
.customer(customerBuilder -> customerBuilder)
.previousCustomer(previousCustomerBuilder -> previousCustomerBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteCustomerChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteCustomerChangedMessagebuilder
(QuoteCustomerChangedMessage template) create builder for QuoteCustomerChangedMessage instancestatic QuoteCustomerChangedMessage
deepCopy
(QuoteCustomerChangedMessage template) factory method to create a deep copy of QuoteCustomerChangedMessage@NotNull @Valid CustomerReference
The Buyer who now owns the Quote.@NotNull @Valid CustomerReference
The previous Buyer.static QuoteCustomerChangedMessage
of()
factory methodstatic QuoteCustomerChangedMessage
of
(QuoteCustomerChangedMessage template) factory method to create a shallow copy QuoteCustomerChangedMessagevoid
setCustomer
(CustomerReference customer) The Buyer who now owns the Quote.void
setPreviousCustomer
(CustomerReference previousCustomer) The previous Buyer.static com.fasterxml.jackson.core.type.TypeReference<QuoteCustomerChangedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods 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
-
QUOTE_CUSTOMER_CHANGED
discriminator value for QuoteCustomerChangedMessage- See Also:
-
-
Method Details
-
getCustomer
The Buyer who now owns the Quote.
- Returns:
- customer
-
getPreviousCustomer
The previous Buyer.
- Returns:
- previousCustomer
-
setCustomer
The Buyer who now owns the Quote.
- Parameters:
customer
- value to be set
-
setPreviousCustomer
The previous Buyer.
- Parameters:
previousCustomer
- value to be set
-
of
factory method- Returns:
- instance of QuoteCustomerChangedMessage
-
of
factory method to create a shallow copy QuoteCustomerChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteCustomerChangedMessage deepCopy(@Nullable QuoteCustomerChangedMessage template) factory method to create a deep copy of QuoteCustomerChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteCustomerChangedMessage- Returns:
- builder
-
builder
create builder for QuoteCustomerChangedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteCustomerChangedMessage
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
-