Interface ParcelTrackingData


public interface ParcelTrackingData
ParcelTrackingData
Example to create an instance using the builder pattern

     ParcelTrackingData parcelTrackingData = ParcelTrackingData.builder()
             .parcelId("{parcelId}")
             .build()
 
  • Method Details

    • getParcelId

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

      @Valid @Valid TrackingData getTrackingData()
      Returns:
      trackingData
    • setParcelId

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

      void setTrackingData(TrackingData trackingData)
      set trackingData
      Parameters:
      trackingData - value to be set
    • of

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

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

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

      static ParcelTrackingDataBuilder builder()
      builder factory method for ParcelTrackingData
      Returns:
      builder
    • builder

      static ParcelTrackingDataBuilder builder(ParcelTrackingData template)
      create builder for ParcelTrackingData instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withParcelTrackingData

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