Interface MyOrderFromQuoteDraft

All Superinterfaces:
Draft<MyOrderFromQuoteDraft>

public interface MyOrderFromQuoteDraft extends Draft<MyOrderFromQuoteDraft>
MyOrderFromQuoteDraft
Example to create an instance using the builder pattern

     MyOrderFromQuoteDraft myOrderFromQuoteDraft = MyOrderFromQuoteDraft.builder()
             .id("{id}")
             .version(0.3)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      id of the Quote from which the Order is created.

      Returns:
      id
    • getVersion

      @NotNull @NotNull Long getVersion()

      Current version of the Quote from which the Order is created.

      Returns:
      version
    • getQuoteStateToAccepted

      Boolean getQuoteStateToAccepted()

      Set to true, if the quoteState of the referenced Quote should be set to Accepted.

      Returns:
      quoteStateToAccepted
    • setId

      void setId(String id)

      id of the Quote from which the Order is created.

      Parameters:
      id - value to be set
    • setVersion

      void setVersion(Long version)

      Current version of the Quote from which the Order is created.

      Parameters:
      version - value to be set
    • setQuoteStateToAccepted

      void setQuoteStateToAccepted(Boolean quoteStateToAccepted)

      Set to true, if the quoteState of the referenced Quote should be set to Accepted.

      Parameters:
      quoteStateToAccepted - value to be set
    • of

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

      factory method to create a shallow copy MyOrderFromQuoteDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of MyOrderFromQuoteDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static MyOrderFromQuoteDraftBuilder builder()
      builder factory method for MyOrderFromQuoteDraft
      Returns:
      builder
    • builder

      create builder for MyOrderFromQuoteDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyOrderFromQuoteDraft

      default <T> T withMyOrderFromQuoteDraft(Function<MyOrderFromQuoteDraft,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<MyOrderFromQuoteDraft> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference