Interface ParcelMeasurementDraft
- All Superinterfaces:
Draft<ParcelMeasurementDraft>
ParcelMeasurementDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelMeasurementDraft parcelMeasurementDraft = ParcelMeasurementDraft.builder()
.parcelId("{parcelId}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ParcelMeasurementDraftbuilder
(ParcelMeasurementDraft template) create builder for ParcelMeasurementDraft instancestatic ParcelMeasurementDraft
deepCopy
(ParcelMeasurementDraft template) factory method to create a deep copy of ParcelMeasurementDraft@Valid ParcelMeasurements
@NotNull String
static ParcelMeasurementDraft
of()
factory methodstatic ParcelMeasurementDraft
of
(ParcelMeasurementDraft template) factory method to create a shallow copy ParcelMeasurementDraftvoid
setMeasurements
(ParcelMeasurements measurements) set measurementsvoid
setParcelId
(String parcelId) set parcelIdstatic com.fasterxml.jackson.core.type.TypeReference<ParcelMeasurementDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getParcelId
- Returns:
- parcelId
-
getMeasurements
- Returns:
- measurements
-
setParcelId
set parcelId- Parameters:
parcelId
- value to be set
-
setMeasurements
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
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
-