Interface CartLockedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface CartLockedMessage extends Message

Generated after a successful Lock Cart update action.


Example to create an instance using the builder pattern

     CartLockedMessage cartLockedMessage = CartLockedMessage.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)
             .build()
 
  • Field Details

  • Method Details

    • of

      static CartLockedMessage of()
      factory method
      Returns:
      instance of CartLockedMessage
    • of

      static CartLockedMessage of(CartLockedMessage template)
      factory method to create a shallow copy CartLockedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      CartLockedMessage copyDeep()
      Specified by:
      copyDeep in interface BaseResource
      Specified by:
      copyDeep in interface Message
    • deepCopy

      @Nullable static CartLockedMessage deepCopy(@Nullable CartLockedMessage template)
      factory method to create a deep copy of CartLockedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartLockedMessageBuilder builder()
      builder factory method for CartLockedMessage
      Returns:
      builder
    • builder

      static CartLockedMessageBuilder builder(CartLockedMessage template)
      create builder for CartLockedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartLockedMessage

      default <T> T withCartLockedMessage(Function<CartLockedMessage,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<CartLockedMessage> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference