Interface ParcelTrackingData
public interface ParcelTrackingData
ParcelTrackingData
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelTrackingData parcelTrackingData = ParcelTrackingData.builder()
.parcelId("{parcelId}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParcelTrackingDataBuilder
builder()
builder factory method for ParcelTrackingDatastatic ParcelTrackingDataBuilder
builder
(ParcelTrackingData template) create builder for ParcelTrackingData instancestatic ParcelTrackingData
deepCopy
(ParcelTrackingData template) factory method to create a deep copy of ParcelTrackingData@NotNull String
@Valid TrackingData
static ParcelTrackingData
of()
factory methodstatic ParcelTrackingData
of
(ParcelTrackingData template) factory method to create a shallow copy ParcelTrackingDatavoid
setParcelId
(String parcelId) set parcelIdvoid
setTrackingData
(TrackingData trackingData) set trackingDatastatic com.fasterxml.jackson.core.type.TypeReference<ParcelTrackingData>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withParcelTrackingData
(Function<ParcelTrackingData, T> helper) accessor map function
-
Method Details
-
getParcelId
- Returns:
- parcelId
-
getTrackingData
- Returns:
- trackingData
-
setParcelId
set parcelId- Parameters:
parcelId
- value to be set
-
setTrackingData
set trackingData- Parameters:
trackingData
- value to be set
-
of
factory method- Returns:
- instance of ParcelTrackingData
-
of
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
builder factory method for ParcelTrackingData- Returns:
- builder
-
builder
create builder for ParcelTrackingData instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withParcelTrackingData
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-