Interface ParcelMeasurementDraft

All Superinterfaces:
Draft<ParcelMeasurementDraft>

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

     ParcelMeasurementDraft parcelMeasurementDraft = ParcelMeasurementDraft.builder()
             .parcelId("{parcelId}")
             .build()
 
  • Method Details

    • getParcelId

      @NotNull @NotNull String getParcelId()
      Returns:
      parcelId
    • getMeasurements

      @Valid @Valid ParcelMeasurements getMeasurements()
      Returns:
      measurements
    • setParcelId

      void setParcelId(String parcelId)
      set parcelId
      Parameters:
      parcelId - value to be set
    • setMeasurements

      void setMeasurements(ParcelMeasurements measurements)
      set measurements
      Parameters:
      measurements - value to be set
    • of

      factory method
      Returns:
      instance of ParcelMeasurementDraft
    • of

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

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

      builder factory method for ParcelMeasurementDraft
      Returns:
      builder
    • builder

      create builder for ParcelMeasurementDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withParcelMeasurementDraft

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