Interface ShippingMethodReference
- All Superinterfaces:
Reference
Reference to a ShippingMethod.
Example to create an instance using the builder pattern
ShippingMethodReference shippingMethodReference = ShippingMethodReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodReferencebuilder(ShippingMethodReference template) create builder for ShippingMethodReference instancecopyDeep()static ShippingMethodReferencedeepCopy(ShippingMethodReference template) factory method to create a deep copy of ShippingMethodReference@NotNull StringgetId()Unique identifier of the referenced ShippingMethod.static ShippingMethodReferenceof()factory methodstatic ShippingMethodReferenceof(ShippingMethodReference template) factory method to create a shallow copy ShippingMethodReferencevoidUnique identifier of the referenced ShippingMethod.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.history.models.common.Reference
getTypeId, withReference
-
Field Details
-
SHIPPING_METHOD
discriminator value for ShippingMethodReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced ShippingMethod.
-
setId
Unique identifier of the referenced ShippingMethod.
-
of
factory method- Returns:
- instance of ShippingMethodReference
-
of
factory method to create a shallow copy ShippingMethodReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodReference copyDeep() -
deepCopy
factory method to create a deep copy of ShippingMethodReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodReference- Returns:
- builder
-
builder
create builder for ShippingMethodReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodReference
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
-