Interface OrderShipmentStateChangedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,OrderMessage
,Versioned<Message>
Generated after a successful Change ShipmentState update action.
Example to create an instance using the builder pattern
OrderShipmentStateChangedMessage orderShipmentStateChangedMessage = OrderShipmentStateChangedMessage.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)
.shipmentState(ShipmentState.SHIPPED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderShipmentStateChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderShipmentStateChangedMessagebuilder
(OrderShipmentStateChangedMessage template) create builder for OrderShipmentStateChangedMessage instancedeepCopy
(OrderShipmentStateChangedMessage template) factory method to create a deep copy of OrderShipmentStateChangedMessageShipmentState before the Change Shipment State update action.@NotNull ShipmentState
ShipmentState after the Change Shipment State update action.of()
factory methodof
(OrderShipmentStateChangedMessage template) factory method to create a shallow copy OrderShipmentStateChangedMessagevoid
setOldShipmentState
(ShipmentState oldShipmentState) ShipmentState before the Change Shipment State update action.void
setShipmentState
(ShipmentState shipmentState) ShipmentState after the Change Shipment State update action.static com.fasterxml.jackson.core.type.TypeReference<OrderShipmentStateChangedMessage>
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
Methods inherited from interface com.commercetools.api.models.message.OrderMessage
withOrderMessage
-
Field Details
-
ORDER_SHIPMENT_STATE_CHANGED
discriminator value for OrderShipmentStateChangedMessage- See Also:
-
-
Method Details
-
getShipmentState
ShipmentState after the Change Shipment State update action.
- Returns:
- shipmentState
-
getOldShipmentState
ShipmentState getOldShipmentState()ShipmentState before the Change Shipment State update action.
- Returns:
- oldShipmentState
-
setShipmentState
ShipmentState after the Change Shipment State update action.
- Parameters:
shipmentState
- value to be set
-
setOldShipmentState
ShipmentState before the Change Shipment State update action.
- Parameters:
oldShipmentState
- value to be set
-
of
factory method- Returns:
- instance of OrderShipmentStateChangedMessage
-
of
factory method to create a shallow copy OrderShipmentStateChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderShipmentStateChangedMessage deepCopy(@Nullable OrderShipmentStateChangedMessage template) factory method to create a deep copy of OrderShipmentStateChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderShipmentStateChangedMessage- Returns:
- builder
-
builder
create builder for OrderShipmentStateChangedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderShipmentStateChangedMessage
default <T> T withOrderShipmentStateChangedMessage(Function<OrderShipmentStateChangedMessage, 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<OrderShipmentStateChangedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-